Libraries
nose packages
Pypy
PyPy is a fast, compliant alternative implementation of the Python language (2.7.13 and 3.5.3). It has several advantages and distinct features:
- Speed: thanks to its Just-in-Time compiler, Python programs often run faster on PyPy.(What is a JIT compiler?) "If you want your code to run faster, you should probably just use PyPy." - Guido van Rossum (creator of Python)
- Memory usage: memory-hungry Python programs (several hundreds of MBs or more) might end up taking less space than they do in CPython.
- Compatibility: PyPy is highly compatible with existing python code. It supports cffi and can run popular python libraries like twisted and django.
- Stackless: PyPy comes by default with support for stackless mode, providing micro-threads for massive concurrency.
Django-model-utils
- Django model mixins and utilities.
- Fields
- StatusField
- MonitorField
- SplitField
- Models
- TimeFramedModel
- TimeStampedModel
- StatusModel
- SoftDeletableModel
- Model Managers
- InheritanceManager
This manager should be attached to a base model class in a model-inheritance tree. It allows queries on that base model to return heterogenous results of the actual proper subtypes, without any additional queries.
-
QueryManager
-
SoftDeletableManager
-
Mixins
-
Miscellaneous Utilities
- Choices
- Field Tracker
-
https://django-model-utils.readthedocs.io/en/latest/managers.html
PyFlame
- https://medium.com/build-smarter/blazing-fast-python-40a2b25b0495
- https://github.com/uber-archive/pyflame
- Profiler - Diagnose slow Python code. (Feat. async/await) - YouTube
- GitHub - jjnanthakumar/django-flames: This is simple site created in Django framework.. If any issues ping me. ⭐ 2
- GitHub - blopker/djdt-flamegraph: Flamegraphs for Django Debug Toolbar ⭐ 187
- GitHub - brendangregg/FlameGraph: Stack trace visualizer ⭐ 20k
py-spy
py-spy is a sampling profiler for Python programs. It lets you visualize what your Python program is spending time on without restarting the program or modifying the code in any way. py-spy is extremely low overhead: it is written in Rust for speed and doesn't run in the same process as the profiled Python program. This means py-spy is safe to use against production Python code.
https://github.com/benfred/py-spy
FII Memory profiler
https://gitlab.com/pythonspeed/filprofiler
https://pythonspeed.com/articles/memory-profiler-data-scientists
HorusLP
HorusLP is a Python optimization library designed to help you architect algorithm development workflows. It has a simple, declarative API and very little boilerplate.
https://www.toptal.com/algorithms/horuslp-python-optimization-library
https://www.toptal.com/python/horuslp-gurobi-optimization
tqdm
A Fast, Extensible Progress Bar for Python and CLI
Pendulum
Nativedatetimeinstances are enough for basic cases but when you face more complex use-cases they often show limitations and are not so intuitive to work with.Pendulumprovides a cleaner and more easy to use API while still relying on the standard library. So it's stilldatetimebut better.
https://github.com/sdispater/pendulum
pyqt
PyQt is one of the most popular Python bindings for the Qt cross-platform C++ framework
https://wiki.python.org/moin/PyQt
https://www.tutorialspoint.com/pyqt/index.htm
Pyro
Pyro is a library that enables you to build applications in which objects can talk to each other over the network, with minimal programming effort. You can just use normal Python method calls, with almost every possible parameter and return value type, and Pyro takes care of locating the right object on the right computer to execute the method. It is designed to be very easy to use, and to generally stay out of your way. But it also provides a set of powerful features that enables you to build distributed applications rapidly and effortlessly. Pyro is a pure Python library and runs on many different platforms and Python versions.
https://github.com/irmen/Pyro4
CookieCutter
A command-line utility that creates projects fromcookiecutters(project templates), e.g. creating a Python package project from a Python package project template.
https://cookiecutter.readthedocs.io/en/1.7.2/first_steps.html
https://github.com/cookiecutter/cookiecutter
Python-magic
python-magic is a Python interface to the libmagic file type identification library. libmagic identifies file types by checking their headers according to a predefined list of file types. This functionality is exposed to the command line by the Unix commandfile.
https://pypi.org/project/python-magic