Стандартная библиотека python и полезные ресурсы

Стандартная библиотека

Support

Date and time

Math and func

Data

Proceses and threads

Apps

Development tools

  • [pydoc]
  • [doctest]
  • [unittest]
  • [trace]
  • [traceback]
  • [cgitb]
  • [inspect]
  • [profile]
  • [timeit]
  • [pdb-python-debugger]
  • tabnanni проверка неоднозначного использования пробелов (смотри еще [flake8])
  • compileall поиск и компиляция файлов в .pyc
  • pyclbr предоставляет ограниченную информацию о функциях, классах и методах, определенных в модуле, написанном на Python. Информации достаточно для реализации обозревателя модулей. Информация извлекается из исходного кода, а не путем импорта модуля, поэтому этот модуль безопасно использовать с ненадежным кодом. Это ограничение делает невозможным использование этого модуля с модулями, не реализованными в Python, включая все стандартные и дополнительные расширения.
  • [venv]
  • [warnings]
  • [dis]
  • [python-import-tools]
  • [setuptools]

Смотри так-же python packaging user guide

Ссылки на статьи

Книги и руководства

Полезные сторонние библиотечки

Code struction

  • xdot.py is an interactive viewer for graphs written in Graphviz’s dot language
  • objgraph is a module that lets you visually explore Python object graphs
  • gprof2dot is a Python script to convert the output from many profilers into a dot graph
  • Python to PlantUML Generate PlantUML class diagrams to document your Python application

Files and objects

REPL and docks

  • Pyodide in a REPL directly in your browser (no installation needed)
  • bpython fancy interface to the Python interactive interpreter
  • ptpython is an advanced Python REPL
  • devdocs combines multiple developer documentations in a clean and organized web UI with instant search, offline support, mobile version, dark theme, keyboard shortcuts, and more
  • radon is a Python tool which computes various code metrics

Async

  • AnyIO AnyIO is an asynchronous networking and concurrency library that works on top of either asyncio or trio. It implements trio-like structured concurrency (SC) on top of asyncio, and works in harmony with the native SC of trio itself
  • asyncclick смотри [click]
  • asyncer is a small library built on top of AnyIO. It has a small number of utility functions that allow working with async, await, and concurrent code in a more convenient way
  • gevent gevent is a coroutine -based Python networking library that uses greenlet to provide a high-level synchronous API on top of the libev or libuv event loop

Profiling

  • memray is a memory profiler for Python. It can track memory allocations in Python code, in native extension modules, and in the Python interpreter itself. It can generate several different types of reports to help you analyze the captured memory usage data. While commonly used as a CLI tool, it can also be used as a library to perform more fine-grained profiling tasks.

Other

  • buildbot is a continuous integration framework written in Python
  • Twisted is an event-based framework for internet applications, supporting Python 3.6+
  • python-qrcode Pure python QR Code generator
  • WTForms is a flexible forms validation and rendering library for Python web development
  • Pipelines several tools to make functional programming composition easy, readable, pythonic, and useful
  • dotmap Dot access dictionary with dynamic hierarchy creation and ordered iteration
  • [returns] Make your functions return something meaningful, typed, and safe!
  • shedule Python job scheduling for humans.
  • [blinker]
  • [dependency-injection]
  • ruff extremely fast Python linter and formatter, written in [rust]
  • Advanced Python Scheduler
  • Testcontainers Python facilitates the use of Docker containers for functional and integration testing

[python-public-api]

Смотри еще