A unified collection of health indices and indicators eg: bmi, bai ...
Project description
No more Dependency hell!
-
Creates virtual environments.
-
Manages dependencies.
-
Publish packages to PyPI.
-
You define everything in the pyproject.toml file.
Commands
- To create a new project using it: >
poetry new <project-name> - Create a new project with the src directory: >
poetry new <project-name> --src - To init the pyproject.toml only: >
poetry init - Check everything is correct: >
poetry check
Packages
- Add new package from cli (This will add it to current pyproject.toml file) and installs it in the venv:
poetry add <package-name>
-
Specify the version of the package: >
poetry add <package-name>@<version> -
Add a package for dev only: >
poetry add <package-name> --group=dev -
If you changed any package's version from the file not cli (update lock): >
poetry update -
Show all packages: >
poetry show -
Show a specific package: >
poetry show <package-name> -
Remove a package: >
poetry remove <package-name> -
Now to create a venv and install all specified packages: >
poetry install -
Install without dev dependencies: >
poetry install --without dev -
Install ONLY dev dependencies: >
poetry install --with dev
VENV
-
To make your venv be in current working directory: >
poetry config virtualenvs.in-project true -
Open a shell or activate the venv: >
poetry shell -
Exit the shell: >
exit -
Deactivate the virtualenv: >
deactivate -
Get env info: >
poetry env info -
List envs: >
poetry env list -
Remove a venv: >
poetry env remove <venv-name> -
Select a specific python version (You must have that version's exe): >
poetry env use <version> -
If you're not in the venv and wanna execute a command using it: >
poetry run <command
Versioning
- Pump major version: >
poetry version major - Pump minor version: >
poetry version minor - Pump patch version: >
poetry version patch
Publish the package
- First configure it: >
poetry config repositories.test-pypi https://test.pypi.org/legacy - Get a token and add it to the configurations: >
poetry config pypi-token.<token-name> <token> - Build: >
poetry build - Publish: >
poetry publish -r <token-name>
export
- Export packages to a requirements.txt file: >
poetry export -f requirements.txt --output requirements.txt - Include dev or any group packages too:
poetry export -f requirements.txt --output requirements.txt --with <group-name>
- By default, Poetry exports dependencies with hashes for security. If you want to exclude hashes:
poetry export -f requirements.txt --without-hashes --output requirements.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ezzat223_health_indices-0.0.1.tar.gz.
File metadata
- Download URL: ezzat223_health_indices-0.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d226ef5e2ae08608fad64794af9e56d3301431dea783c0cd0fff6a8ccbdcca6c
|
|
| MD5 |
38eb9abf57f11c85777939a19c4e4bdc
|
|
| BLAKE2b-256 |
71e972fdaf82ede219c7f8a857be196469fe9a5fecfcc1637da16fd485e5c1dc
|
File details
Details for the file ezzat223_health_indices-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ezzat223_health_indices-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf60a736b1c3bf81946052aa17090a8447c8449b1f6002ce86d06814c82383af
|
|
| MD5 |
964985b368fb3c38175d73196612ed6c
|
|
| BLAKE2b-256 |
7a6b8e219444a1b198cd4a28f0e90324fa1cf3c1d16769628d88b003ce6143d5
|