Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Bill Ward / AdminTome: Data Pipeline: Send logs from Kafka to Cassandra

Link: http://www.admintome.com/blog/data-pipeline-send-logs-from-kafka-to-cassandra/

In this post, I will outline how I created a big data pipeline for my web server logs using Apache Kafka, Python, and Apache Cassandra.

In past articles I described how to install and configure Apach
Djangostars: How to Build a Unique Technology for Your Fintech Product with Python

Link: https://djangostars.com/blog/how-to-build-a-unique-technology-for-your-fintech-product-with-python/

Fintech is a maze. It’s a thrilling and extremely complex industry for software development. There are state level regulations, integrations with different services and institutions, bank API connecti
Stack Abuse: Association Rule Mining via Apriori Algorithm in Python

Link: https://stackabuse.com/association-rule-mining-via-apriori-algorithm-in-python/

Association rule mining is a technique to identify underlying relations between different items. Take an example of a Super Market where customers can buy variety of items. Usually, there is a pattern
Hynek Schlawack: Hardening Your Web Server’s SSL Ciphers

Link: https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/

There are many wordy articles on configuring your web server’s TLS ciphers. This is not one of them. Instead I will share a configuration which is both compatible enough for today’s needs and scores a
Not Invented Here: CPython vs PyPy Memory Usage

Link: https://dev.nextthought.com/blog/2018/08/cpython-vs-pypy-memory-usage.html

If you have lots of "small" objects in a Python program (objects which
have few instance attributes), you may find that the object overhead
starts to become considerable. The common wisdom says that
PyCharm: PyCharm 2018.2.2 RC

Link: http://feedproxy.google.com/~r/Pycharm/~3/MRFOXLtLuw0/

PyCharm 2018.2.2 Release Candidate is now available, with some small improvements. Get it now from our Confluence page
New in This Version

Some improvements to our pipenv support: if the pipfile spec
Artem Golubin: How Python saves memory when storing strings

Link: http://rushter.com/blog/python-strings-and-memory/

Since Python 3, the str type uses Unicode representation. Unicode strings can take up to 4 bytes per character depending on the encoding, which sometimes can be expensive from a memory perspective.
T
Peter Bengtsson: Quick dog-piling (aka stampeding herd) URL stresstest

Link: https://www.peterbe.com/plog/quick-dog-piling-url-stresstest

Whenever you want to quickly bombard a URL with some concurrent traffic, you can use this:

import random
import time
import requests
import concurrent.futures


def _get_size(url):
sleep = rand
Kay Hayen: Nuitka this week #3

Link: http://nuitka.net/posts/nuitka-this-week-3.html


Contents

New Series Rationale
Twitter
Goto Generators
Hotfixes
Plans



New Series Rationale
This is working out well so far. I think driving more attention at the things
that are going on can only
Weekly Python StackOverflow Report: (cxxxviii) stackoverflow python report

Link: http://python-weekly.blogspot.com/2018/08/cxxxviii-stackoverflow-python-report.html

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2018-08-11 16:23:07 GMTIs there a way to "fork" a list in two based on