Skip to main content

No project description provided

Project description

TODO

  1. add tox, ruff, formating
  2. experiment with black flake8 isort mypy pylint

installation

  1. pyenv
  2. poetry
  3. poetry plugin add poetry-plugin-shell

References

  1. pyenv:
  2. poetry intro: https://realpython.com/dependency-management-python-poetry/
  3. poetry doc: https://python-poetry.org/docs/cli/
  4. poetry and pytest and coverage: https://dev.to/iamibi/add-coverage-report-with-pytest-and-gitlab-ci-3e9p
  5. pytest conf: https://docs.pytest.org/en/stable/reference/reference.html#ini-options-ref
  6. coverage conf: https://coverage.readthedocs.io/en/6.4.3/cmd.html#cmd
  7. make: https://github.com/mapsa/makefile-examples (or use poetry shell)

Commands

  1. poetry new --src (or poetry new )
  2. poetry env remove --all (delete virtual env)
  3. poetry install (or 'poetry install --sync' to create virtual env & sync deps)
  4. poetry env list
  5. poetry env info --path
  6. poetry env activate (and source the output)
  7. source "$(poetry env info --path)/bin/activate"
  8. deactivate
  9. poetry config --list
  10. poetry add requests (or requests==2.25.1 "beautifulsoup4<4.10")
  11. poetry add pytest coverage --dev
  12. poetry remove requests
  13. poetry lock (or poetry lock --no-update if no updating deps to latest versions)
  14. poetry show --latest --top-level (or poetry show --tree)
  15. poetry export --output requirements.txt
  16. poetry run which python
  17. poetry run xyz2 (run script defined in toml, need to do 'poetry install' first)
  18. poetry run uvicorn --factory poetry102.main:app (xxxxxx not working all of a sudden)
  19. poetry run fastapi src/poetry102/main.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry102-0.1.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poetry102-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file poetry102-0.1.1.tar.gz.

File metadata

  • Download URL: poetry102-0.1.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/23.5.0

File hashes

Hashes for poetry102-0.1.1.tar.gz
Algorithm Hash digest
SHA256 67aaaef8cecc776aa0e4ae2672105d99d6a42def18bf458e49c2a8d2669dc2aa
MD5 bfc3ba614e31c47a2a12583249ac81c4
BLAKE2b-256 2f699648d70c96784f48322eec1c420313123fe05e87573fb695ec4e891e4b8a

See more details on using hashes here.

File details

Details for the file poetry102-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: poetry102-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/23.5.0

File hashes

Hashes for poetry102-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d07f187aa7cd1c81ad241dec553efe8c7f3baa7a68ada4e8eb7ffed9d6bcda69
MD5 5b24ed808a36af3d2bd364a43f6a141c
BLAKE2b-256 c8834501a82cae1a76a18c481608b3cf582f9c4e41921fd5446028f1557d6b8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page