Lessons about Python (page 19)
The links, tools and tips our engineers and designers share with each other, one “today I learned” at a time.
- lessons shared
- 353
- people sharing
- 27
- database started in
- 2016










Tech Insights· github.com
A tool for moving Python code between files:
Shared by
Read on github.com- Python
- Refactoring


Tech Insights· aeracode.org
Python & Async Simplified by Andrew Godwin
Shared by
Read on aeracode.org- Python

github.com
Pydash is the Lodash for Python
The kitchen sink of Python utility libraries for doing "stuff" in a functional way. Based on the Lo-Dash Javascript library. - dgilland/pydash
Filipe Ximenes

Tech Insights· github.com
Pydash is the Lodash for Python
From github.com
The kitchen sink of Python utility libraries for doing "stuff" in a functional way. Based on the Lo-Dash Javascript library. - dgilland/pydash
Shared by
Read on github.com- Python

github.com
A command line utility to display dependency tree of the installed Python packages
A command line utility to display dependency tree of the installed Python packages - tox-dev/pipdeptree
Rebeca Sarai

Tech Insights· github.com
A command line utility to display dependency tree of the installed Python packages
From github.com
A command line utility to display dependency tree of the installed Python packages - tox-dev/pipdeptree
Shared by
Read on github.com- Dependencies
- Python
- Requirements

github.com
Find packages that require updates on your python project:
Finds packages that require updates on a python environment - nezhar/updatable
Rebeca Sarai

Tech Insights· github.com
Find packages that require updates on your python project:
From github.com
Finds packages that require updates on a python environment - nezhar/updatable
Shared by
Read on github.com- Python


Tech Insights· jakevdp.github.io
XKCD-style plots in Matplotlib:
Shared by
Read on jakevdp.github.io- Chart
- Plot
- Python
stackoverflow.com
Mocking image downloads for libs that actually check the file's contents, like Fleep
Luca Bezerra
Tech Insights· stackoverflow.com
Mocking image downloads for libs that actually check the file's contents, like Fleep
Shared by
Read on stackoverflow.com- Fleep
- Image
- Mock
- Python
- Requests
- Test
Tech Insights· stackoverflow.com
Downloading files via a requests library (i.e. python Requests) may throw HTTP 403 due to lack of user-agent param on headers
Shared by
Read on stackoverflow.com- 403
- Python
- Requests
Tech Insights
Share a directory locally with python 3
python -m http.serverShared by
- Python

github.com
Trio – Pythonic async I/O for humans and snake people 🐍
Trio – a friendly Python library for async concurrency and I/O - python-trio/trio
Flávio Juvenal

Tech Insights· github.com
Trio – Pythonic async I/O for humans and snake people 🐍
From github.com
Trio – a friendly Python library for async concurrency and I/O - python-trio/trio
Shared by
Read on github.com- Async
- Asyncio
- Python


Tech Insights· thenewstack.io
Instagram Makes a Smooth Move to Python 3:
Shared by
Read on thenewstack.io- Python
- Python3

github.com
MonkeyType is a great lib that helps you type an untyped codebase
A Python library that generates static type annotations by collecting runtime types - Instagram/MonkeyType
Carlos Coelho

Tech Insights· github.com
MonkeyType is a great lib that helps you type an untyped codebase
From github.com
A Python library that generates static type annotations by collecting runtime types - Instagram/MonkeyType
Shared by
Read on github.com- Monkeytype
- Mypy
- Python
- Type Hint

docs.celeryproject.org
To list the current Celery tasks names in Redis queue, use:
import json import base64 from redis import StrictRedis redis_client = StrictRedis.from_url(BROKER_URL) default_queue = redis_client.lrange('celery', 0, -1) print({json.loads(base64.b64decode(json.loads(message.decode('utf-8'))['body']).decode('utf-8'))['task'] for message in default_queue}) For reserved and active, use app.control.inspect(): #inspecting-workers
Lais Varejão

Tech Insights· docs.celeryproject.org
To list the current Celery tasks names in Redis queue, use:
import json import base64 from redis import StrictRedis redis_client = StrictRedis.from_url(BROKER_URL) default_queue = redis_client.lrange('celery', 0, -1) print({json.loads(base64.b64decode(json.loads(message.decode('utf-8'))['body']).decode('utf-8'))['task'] for message in default_queue})For reserved and active, useapp.control.inspect(): #inspecting-workersShared by
Read on docs.celeryproject.org- Celery
- Python
Today I learned
If you have pure functions called multiple times you should try it functools.lru_cache
Anderson Resende
Tech Insights
If you have pure functions called multiple times you should try it functools.lru_cache
Shared by
- Functional
- Python

github.com
An instant JSON API for your SQLite databases:
An open source multi-tool for exploring and publishing data - simonw/datasette
Flávio Juvenal

Tech Insights· github.com
An instant JSON API for your SQLite databases:
From github.com
An open source multi-tool for exploring and publishing data - simonw/datasette
Shared by
Read on github.com- Python
- SQL
- Sqlite
Book a call
Found it useful?
Let’s put it to work.
Tell us about your product and the problem in front of you. We’ll bring what we’ve learned on real projects.
Tell us about your product, and we’ll bring what we’ve learned.
Still prefer the good old email? Contact us



