# 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`
Raw data
{
"_id": null,
"home_page": "https://github.com/jcharistech/health-indices",
"name": "ezzat223_health_indices",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.11",
"maintainer_email": null,
"keywords": "health-indices, health-indicators, bmi, bodymass index, bai, birth-rate, jcharistech",
"author": "ezzat223",
"author_email": "ezzat22hegazy@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/71/e9/72fdaf82ede219c7f8a857be196469fe9a5fecfcc1637da16fd485e5c1dc/ezzat223_health_indices-0.0.1.tar.gz",
"platform": null,
"description": "# No more Dependency hell!\n- Creates virtual environments.\n- Manages dependencies.\n- Publish packages to PyPI.\n\n- You define everything in the pyproject.toml file.\n\n## Commands\n----------------\n- To create a new project using it: >`poetry new <project-name>`\n- Create a new project with the src directory: >`poetry new <project-name> --src`\n- To init the pyproject.toml only: >`poetry init`\n- Check everything is correct: >`poetry check`\n\n***Packages***\n- Add new package from cli (This will add it to current pyproject.toml file) and installs it in the venv:\n>`poetry add <package-name>`\n- Specify the version of the package: >`poetry add <package-name>@<version>`\n- Add a package for dev only: >`poetry add <package-name> --group=dev`\n- If you changed any package's version from the file not cli (update lock): >`poetry update`\n\n- Show all packages: >`poetry show`\n- Show a specific package: >`poetry show <package-name>`\n- Remove a package: >`poetry remove <package-name>`\n\n- Now to create a venv and install all specified packages: >`poetry install`\n- Install without dev dependencies: >`poetry install --without dev`\n- Install ONLY dev dependencies: >`poetry install --with dev`\n\n------------\n***VENV***\n- To make your venv be in current working directory: >`poetry config virtualenvs.in-project true`\n- Open a shell or activate the venv: >`poetry shell`\n- Exit the shell: >`exit`\n- Deactivate the virtualenv: >`deactivate`\n- Get env info: >`poetry env info`\n- List envs: >`poetry env list`\n- Remove a venv: >`poetry env remove <venv-name>`\n- Select a specific python version (You must have that version's exe): >`poetry env use <version>`\n\n- If you're not in the venv and wanna execute a command using it: >`poetry run <command`\n\n-----------------\n***Versioning***\n- Pump major version: >`poetry version major`\n- Pump minor version: >`poetry version minor`\n- Pump patch version: >`poetry version patch`\n\n---------------------------\n***Publish the package***\n- First configure it: >`poetry config repositories.test-pypi https://test.pypi.org/legacy`\n- Get a token and add it to the configurations: >`poetry config pypi-token.<token-name> <token>`\n- Build: >`poetry build`\n- Publish: >`poetry publish -r <token-name>`\n\n---------------\n***export***\n- Export packages to a requirements.txt file: >`poetry export -f requirements.txt --output requirements.txt`\n- Include dev or any group packages too:\n>`poetry export -f requirements.txt --output requirements.txt --with <group-name>`\n- By default, Poetry exports dependencies with hashes for security. If you want to exclude hashes:\n>`poetry export -f requirements.txt --without-hashes --output requirements.txt`",
"bugtrack_url": null,
"license": null,
"summary": "A unified collection of health indices and indicators eg: bmi, bai ...",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/jcharistech/health-indices",
"Repository": "https://github.com/jcharistech/health-indices"
},
"split_keywords": [
"health-indices",
" health-indicators",
" bmi",
" bodymass index",
" bai",
" birth-rate",
" jcharistech"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7a6b8e219444a1b198cd4a28f0e90324fa1cf3c1d16769628d88b003ce6143d5",
"md5": "964985b368fb3c38175d73196612ed6c",
"sha256": "cf60a736b1c3bf81946052aa17090a8447c8449b1f6002ce86d06814c82383af"
},
"downloads": -1,
"filename": "ezzat223_health_indices-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "964985b368fb3c38175d73196612ed6c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.11",
"size": 4844,
"upload_time": "2024-12-12T17:01:11",
"upload_time_iso_8601": "2024-12-12T17:01:11.535696Z",
"url": "https://files.pythonhosted.org/packages/7a/6b/8e219444a1b198cd4a28f0e90324fa1cf3c1d16769628d88b003ce6143d5/ezzat223_health_indices-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "71e972fdaf82ede219c7f8a857be196469fe9a5fecfcc1637da16fd485e5c1dc",
"md5": "38eb9abf57f11c85777939a19c4e4bdc",
"sha256": "d226ef5e2ae08608fad64794af9e56d3301431dea783c0cd0fff6a8ccbdcca6c"
},
"downloads": -1,
"filename": "ezzat223_health_indices-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "38eb9abf57f11c85777939a19c4e4bdc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.11",
"size": 4416,
"upload_time": "2024-12-12T17:01:14",
"upload_time_iso_8601": "2024-12-12T17:01:14.167960Z",
"url": "https://files.pythonhosted.org/packages/71/e9/72fdaf82ede219c7f8a857be196469fe9a5fecfcc1637da16fd485e5c1dc/ezzat223_health_indices-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-12 17:01:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jcharistech",
"github_project": "health-indices",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ezzat223_health_indices"
}