Показать страницуИстория страницыСсылки сюдаCopy this pageExport to MarkdownODT преобразованиеНаверх Вы загрузили старую версию документа! Сохранив её, вы создадите новую текущую версию с этим содержимым. Медиафайлы{{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 * easy_install pip ===== Установка 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 ==== Ключи: ==== * -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 ==== * https://github.com/benoitc/gunicorn - WSGI HTTP Server for UNIX, fast clients and sleepy applications. * celery - https://github.com/celery/celery - ASGI Application. Distributed Task Queue (development branch) * https://github.com/django/django - The Web framework for perfectionists with deadlines. * https://github.com/encode/starlette - The little ASGI framework that shines. * https://github.com/encode/uvicorn - An ASGI web server, for Python. * https://github.com/geopandas/geopandas - Python tools for geographic data * https://github.com/jonashaag/bjoern - A screamingly fast Python 2/3 WSGI server written in C. * https://github.com/kvesteri/sqlalchemy-utils - Various utility functions and datatypes for SQLAlchemy. * https://github.com/microsoft/debugpy - An implementation of the Debug Adapter Protocol for Python * https://github.com/pallets/flask - The Python micro framework for building web applications * https://github.com/pydantic/pydantic - Data validation using Python type hints * https://github.com/python-poetry/poetry - Python packaging and dependency management made easy * https://github.com/sqlalchemy/alembic - A database migrations tool for SQLAlchemy. * [[alembic]] * https://github.com/sqlalchemy/sqlalchemy - The Database Toolkit for Python * https://github.com/tiangolo/fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production * https://github.com/Toblerity/Fiona - Fiona reads and writes geographic data files * https://github.com/Pylons/pyramid - Pyramid - A Python web framework ==== Быстрый старт / boilerplate ==== * https://github.com/igorbenav/FastAPI-boilerplate ==== 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 ===== Ссылки ===== {{topic>[python]}}СохранитьПросмотрРазличияОтменить Сводка изменений Примечание: редактируя эту страницу, вы соглашаетесь на использование своего вклада на условиях следующей лицензии: CC0 1.0 Universal