PYTHON: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Linha 8: | Linha 8: | ||
=Mirroring a repository= | =Mirroring a repository= | ||
*[https://pypi.org/project/python-pypi-mirror/ python-pypi-mirror 4.0.2] | *[https://pypi.org/project/python-pypi-mirror/ python-pypi-mirror 4.0.2] | ||
Making a mirror of the docker-py package and using it on another machine without internet access. | |||
<syntaxhighlight lang=bash> | |||
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 | |||
</syntaxhighlight> | |||
=WEB server= | =WEB server= |
Edição das 22h13min de 31 de janeiro de 2020
Python
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"