{{tag>languages python book pip python-setuptools easy_install}}

====== Python ======

  * https://docs.python.org/3/
  * [[docs]]

===== Debian - установка =====

  * apt-get install python python-dev python-support python-lxml, python-gevent openssl python-gevent-socketio python-psutil python-reconfigure python-daemon python-passlib python-requests python-dbus python-imaging stunnel apt-show-versions python-catcher python-exconsole


===== Установка pip =====

  * http://habrahabr.ru/post/112332/
  * apt-get install python-setuptools
  * easy_install pip

===== Установка pip пакетов (зависимостей) =====


  * pip install -r ./requirements.txt
  * pip install libxml
  * pip install -I m2crypto==0.24.0 - С указанием необходимой версии (если указать версию неверно, будет выведет весь список доступных версий)
  * pip install 'stevedore>=1.3.0,<1.4.0'
  * pip install 'xkcdpass==1.2.5' --force-reinstall
  * pip install -Iv http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.2/MySQL-python-1.2.2.tar.gz/download

===== Установка poetry пакетов (зависимостей) =====

  * pip install poetry
  * poetry add fastapi alchemy celery uvicorn sqlalchemy-utils debugpy pydantic alembic loguru
==== Ключи: ====

  * -v - 
  * -I, --ignore-installed - игнорирует предыдущую версию
===== Установка пакетов из разных источников =====

==== REPO ====

<code bash>$ pip install csvkit</code>
<code bash>$ poetry install csvkit</code>

==== GIT ====

<code bash>$ pip install git+https://github.com/wireservice/csvkit.git</code>

==== ZIP ====

<code bash>pip install git+https://github.com/wireservice/csvkit/archive/master.zip</code>

===== Обновление pip пакетов =====

==== Обновление пакета ====

<code bash>$ pip install -U csvkit</code>


==== Обновление всех пакетов ====

<code bash>
$ pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install -U
</code>

<code bash>
$ pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install --upgrade
</code>

===== Отладка =====

  * http://adw0rd.com/2012/3/24/python-django-pudb/#.UiYQiTloxko
  * [[http://pydev.org/manual_adv_remote_debugger.html|Remote Debugger]]
  * http://blueprintforge.com/blog/2012/01/16/remote-debugging-django-mod-wsgi-applications/
  * http://wiki.xbmc.org/index.php?title=How-to:Debug_Python_Scripts_with_Eclipse
  * [[python:remote-debug|Удаленная отладка]]


===== FrameWork/Библиотеки/Компоненты =====

==== Repositories ====

  * **fastapi** - https://github.com/tiangolo/fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
  * **flask** - https://github.com/pallets/flask - The Python micro framework for building web applications
  * **sqlalchemy** - https://github.com/sqlalchemy/sqlalchemy - The Database Toolkit for Python
  * **[[alembic]]** - https://github.com/sqlalchemy/alembic - A database migrations tool for SQLAlchemy.
  * **pydantic** - https://github.com/pydantic/pydantic - Data validation using Python type hints
  * **celery** - https://github.com/celery/celery - ASGI Application. Distributed Task Queue (development branch)
  * **httpx** - https://github.com/encode/httpx - HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.
  * **uvicorn** - https://github.com/encode/uvicorn - An ASGI web server, for Python.
  * gunicorn - https://github.com/benoitc/gunicorn - WSGI HTTP Server for UNIX, fast clients and sleepy applications.
  * django - https://github.com/django/django - The Web framework for perfectionists with deadlines.
  * starlette - https://github.com/encode/starlette - The little ASGI framework that shines. 
  * geopandas - https://github.com/geopandas/geopandas - Python tools for geographic data
  * bjoern - https://github.com/jonashaag/bjoern - A screamingly fast Python 2/3 WSGI server written in C.
  * sqlalchemy-utils - https://github.com/kvesteri/sqlalchemy-utils - Various utility functions and datatypes for SQLAlchemy.
  * debugpy - https://github.com/microsoft/debugpy - An implementation of the Debug Adapter Protocol for Python
  * poetry - https://github.com/python-poetry/poetry - Python packaging and dependency management made easy
  * fiona - https://github.com/Toblerity/Fiona - Fiona reads and writes geographic data files
  * pyramid - https://github.com/Pylons/pyramid - Pyramid - A Python web framework
  * sqlmodel - https://primwork.cc/fastapi/sqlmodel
  * faststream - https://github.com/airtai/faststream - FastStream is a powerful and easy-to-use Python framework for building asynchronous services interacting with event streams such as Apache Kafka, RabbitMQ, NATS and Redis.
  * click - Creating beautiful command line interfaces - https://click.palletsprojects.com/en/stable/
  * typer - Typer, build great CLIs. Easy to code. Based on Python type hints. - https://github.com/fastapi/typer

==== Проекты ====

  * https://github.com/taskiq-python/taskiq-faststream


==== Template ====

  * https://github.com/airtai/faststream-gen-template
  * https://github.com/airtai/faststream-gen
  * https://github.com/airtai/faststream-template

==== Быстрый старт / boilerplate ====

  * https://github.com/igorbenav/FastAPI-boilerplate
  * https://github.com/marcieltorres/python-boilerplate-project
    * https://github.com/marcieltorres/fast-api-boilerplate-project
  * https://github.com/nb-programmer/python-sample-fastapi
  * https://github.com/Donnype/fastapi-template.git
  * https://github.com/tiangolo/full-stack-fastapi-template
  * https://github.com/teamhide/fastapi-boilerplate
  * https://github.com/sanjit-sinha/TelegramBot-Boilerplate
  * https://github.com/mansotra99/Fast-api-Boilerplate
  * https://github.com/johnnymillergh/python_boilerplate
  * https://github.com/4GeeksAcademy/flask-rest-hello
  * https://github.com/gregory-lebl/python-mistral-fastapi-template
  * https://github.com/deepmancer/microservice-docker-example
  * https://github.com/Mindinventory/flask-boilerplate-structure
  * https://github.com/ivozzo/ivozzo-pyBoilerplate
  * https://github.com/Shahzayb/python-devtools-boilerplate
  * https://github.com/dugite-code/python-boilerplates
  * https://github.com/s3rius/FastAPI-template
  * https://github.com/teamhide/fastapi-boilerplate
  * https://github.com/jonra1993/fastapi-alembic-sqlmodel-async
  * https://github.com/fastapi-mvc/fastapi-mvc
  * https://github.com/igorbenav/SQLModel-boilerplate
  * https://github.com/alexk1919/fastapi-motor-mongo-template
  * https://github.com/jonasrenault/fastapi-react-mongodb-docker
  * https://github.com/Donnype/fastapi-template
  * https://github.com/uriyyo/fastapi-async-safe-dependencies
  * https://github.com/fastapi-mvc/fastapi-mvc
  * https://github.com/Steinbeck-Lab/cheminformatics-microservice
  * https://github.com/artiz/beobachter
  * https://github.com/marcieltorres/fast-api-boilerplate-project
  * https://github.com/jpcadena/fastapi-graphql
  * https://github.com/fastapi/fastapi-cli
  * https://github.com/marcieltorres/python-boilerplate-project
  * https://github.com/iam-abbas/FastAPI-Production-Boilerplate
  * https://github.com/ankushjain2001/fastapi-react-mongodb
  * https://github.com/allient/create-fastapi-project
  * https://github.com/rafsaf/minimal-fastapi-postgres-template
  * https://github.com/welel/fastapi-scaffold
  * https://github.com/priyanshu-panwar/fastapi-utilities
  * https://github.com/scraiber/fastapi-db-example
  * https://github.com/suriya-mca/faststart.io
  * https://github.com/bibektimilsina00/FastAPI-PgStarterKit
  * https://github.com/jonasrenault/fastapi-react-mongodb-docker
  * https://github.com/YeonwooSung/FastAPI_Templates
  * https://github.com/fastapi/typer
  * https://github.com/gaganpreet/fastapi-starter
  * https://github.com/gaganpreet/fastapi-starter
  * https://github.com/mongodb-labs/full-stack-fastapi-mongodb
  * https://github.com/arthurhenrique/cookiecutter-fastapi
  * https://github.com/hebertcisco/deploy-python-fastapi-in-vercel
  * https://github.com/pog7x/fastapi-arch-tmpl
  * https://github.com/chinmayshah99/fastapi-multitenant
  * https://github.com/Sayanc2000/fastapi-multitenant
  * https://git.homegu.com/rafsaf/minimal-fastapi-postgres-template
  * https://git.homegu.com/alexpacio/python-webapp-boilerplate
  * https://primwork.cc/fastapi/asyncer
  * https://github.com/airtai/faststream-template



==== Sites ====

  * http://werkzeug.pocoo.org/ - WSGI webserver
  * http://docs.fabfile.org/en/1.7/ - удаленное выполнение команд по ssh
  * http://jinja.pocoo.org/ - template engine for Python
  * http://habrahabr.ru/post/192610/ - Jedi — библиотека автодополнения для Python
  * http://gunicorn.org/ - WSGI HTTP Server for UNIX
  * http://supervisord.org/ - Supervisor: A Process Control System
  * http://flask.pocoo.org/ - Flask is a microframework for Python
  * http://www.python-excel.org/ - Excel
    * [[https://pypi.python.org/pypi/xlrd|xlrd]] – дает возможность читать файлы Excel
    * [[https://pypi.python.org/pypi/xlwt|xlwt]] – создание и заполнение файлов Excel
    * https://github.com/pyexcel/pyexcel
    * https://xlsxwriter.readthedocs.io/
  * xlutils – набор утилит для расширения возможности предыдущих двух библиотек

===== Софт =====

  * [[:rhodecode|rhodecode]]
  * [[python:Ajenti|Ajenti]] - Панель администрирования

==== PHP2Python ====

  * https://github.com/viraptor/phply

===== Сообщества =====

  * [[https://plus.google.com/u/0/communities/103624658452637344893|Python-RU]]
  * [[https://plus.google.com/u/0/communities/107328406287050920928|SPb Python]]
  * [[https://plus.google.com/u/0/communities/117214719409220938543|Тур в язык программирования Python]]

===== Документация / Книги / Статьи / Инструменты для изучения языка =====

  * [[pages]]
  * https://docs.python.org/3 :!:
  * https://docs.python.org/2.7 :!:
  * https://pythonworld.ru (Python 3)
  * [[https://pythondigest.ru/issues/|Самое интересное в интернете]]
  * [[http://www.php2python.com/|от PHP к Python]] :!:
  * https://pythlife.blogspot.ru/
  * https://pythonworld.ru/samouchitel-python :!:
  * http://ru.diveintopython.net/toc.html
  * http://pythonz.net/books/
  * http://pythonicway.com/python-data-types
  * https://vk.com/page-54530371_48786262
  * http://www.python.org/dev/peps/pep-0008/ - стиль
  * http://habrahabr.ru/post/179271/
  * http://www.pylint.org/ - Контроль написания
  * http://habrahabr.ru/company/netangels/blog/183236/
  * http://xgu.ru/wiki/Python_%D0%B4%D0%BB%D1%8F_%D1%81%D0%B5%D1%82%D0%B5%D0%B2%D1%8B%D1%85_%D0%B8%D0%BD%D0%B6%D0%B5%D0%BD%D0%B5%D1%80%D0%BE%D0%B2
  * https://habrahabr.ru/post/207988/
  * https://pythonru.com/osnovy
  * https://pythonru.com/primery
  * https://pythonru.com/biblioteki
  * https://pythonru.com/baza-znanij

===== Видеоуроки =====

==== RUS ====

  * https://www.youtube.com/playlist?list=PLY4rE9dstrJwmHGhM-IA98GZf6I--4hKi
  * http://pythonz.net/videos/
  * https://www.youtube.com/playlist?list=PLQAt0m1f9OHvv2wxPGSCWjgy1qER_FvB6
  * [[https://www.youtube.com/playlist?list=PLThir7bWH6DCO701N3QCqfpsq9BUi7niB|Мини-Курс Visual Studio Code для Python]]
  * [[https://www.youtube.com/playlist?list=PLV0FNhq3XMOISm0bY1MIx5wCEtzgcQWNM|Python Pro - Fast Course / Быстрый Курс]]

===== Ссылки =====

{{topic>[python]}}