paquete python
1. Create files:
__init__.py setup.py README.md LICENSE
2. Check for setuptools and wheel:
pip install --user --upgrade setuptools wheel
3. Generate package:
py setup.py sdist bdist_wheel
4. Upload to pip:
twine upload dist/*
módulo python
Simply, a module is a file consisting of Python code. A module can
define functions, classes and variables. A module can also include
runnable code that you can call with abitrary names attached to them.
importación de módulos con paquete en python
from pakage_name.module_name import function_name
# now we can directly use function
################################## OR ########################################
from pakage_name import module_name
# now we have to use module_name.function_name
crear paquete python
python3 setup.py sdist bdist_wheel
paquete en python
A package is basically a directory with Python files and a file with the name __init__.py
descarga del paquete python
python -m pip install <package>
#Download Selenium
python -m pip install selenium