PYTHON: mudanças entre as edições
Ir para navegação
Ir para pesquisar
(→Python) |
(→PIP) |
||
Linha 3: | Linha 3: | ||
*[https://www.fullstackpython.com/object-relational-mappers-orms.html Object-relational Mappers (ORMs)] | *[https://www.fullstackpython.com/object-relational-mappers-orms.html Object-relational Mappers (ORMs)] | ||
==PIP== | ==PIP== | ||
venv/pip.conf | |||
<pre> | <pre> | ||
[global] | [global] | ||
index-url=https://username:password|PAT@pkgs.somewhere.com/something/xxxxxxxxxx/ | index-url=https://username:password|PAT@pkgs.somewhere.com/something/xxxxxxxxxx/ | ||
</pre> | </pre> | ||
==Reference== | ==Reference== | ||
*[https://docs.python.org/3.7/reference/index.html 3.7] | *[https://docs.python.org/3.7/reference/index.html 3.7] |
Edição das 14h09min de 26 de abril de 2023
Python
DATA
PIP
venv/pip.conf
[global] index-url=https://username:password|PAT@pkgs.somewhere.com/something/xxxxxxxxxx/
Reference
Frameworks
Mirroring a repository
Making a mirror of the docker-py package and using it on another machine without internet access.
virtualenv -p $(which python3) pypi-mirror
source pypi-mirror/bin/activate
mkdir data
pip install python-pypi-mirror
pypi-mirror download -d data docker-py
pypi-mirror create -d data/ -m simple
WEB server
- python2.7 -m SimpleHTTPServer 8383
- python3 -m http.server 8383
Codificação de terminal
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
Ansible em WSL
apt install python-txwinrm python3-winrm -y pip install "pywinrm>=0.2.2"
Articles
- OpenCV Histogram
- OpenCV Histogram Calculation
- Structuring Your Project
- https://realpython.com/intro-to-python-threading/
- https://www.tutorialspoint.com/python/python_multithreading.htm
- https://docs.python.org/3/library/threading.html