Skip to main content

poetry-version (deprecated)

What to use instead

Now there is a better way to extract the version of the package.

Assuming your package is named mypackage:

import importlib.metadata

__version__ = importlib.metadata.version("mypackage")

This code should work as is if you are using Python >= 3.8.

For Python 3.6 and 3.7 you need to install a backport: https://pypi.org/project/importlib-metadata/

Download files

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

Source Distribution

poetry-version-0.2.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

poetry_version-0.2.0-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file poetry-version-0.2.0.tar.gz.

File metadata

  • Download URL: poetry-version-0.2.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.15.2-1-default

File hashes

Hashes for poetry-version-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1b77715b8935589be7977580ecbe454519d1c206d6f99f0d66d4832fa7ac867f
MD5 e8819e7a19aa8f39aed37985c9143cae
BLAKE2b-256 0ab168034358aef14bc53e4a942fb19510814418c380af1f1a1debd1d144a47c

See more details on using hashes here.

File details

Details for the file poetry_version-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: poetry_version-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.15.2-1-default

File hashes

Hashes for poetry_version-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 82445fe406699d84d7b5011d153bf97f2da04f94006e091dbaf302489e01b5b0
MD5 d37217222976bb02831056d39a247cd9
BLAKE2b-256 176247db245e391350100ce1459b588e015f8a8543030e193a5cc3b0cdcabab5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.5

2 files

Supported by

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