Skip to main content

A simple VAT based price calculator

Project description

vatcalc

Few very basic functions to work with prices in VAT based countries:

  • net_to_gross
  • gross_to_net
  • vat_amount_from_net
  • vat_amount_from_gross
  • discount_percent
  • discount_amount

Too many times have I copied one or more of these from one project to another. Enough is enough.

Installation

uv add vatcalc

License

MIT

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

vatcalc-1.0.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

vatcalc-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file vatcalc-1.0.0.tar.gz.

File metadata

  • Download URL: vatcalc-1.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for vatcalc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 70d4428cb027bc543d889500a296a773f0bd73683b31cc6608a555b5896ce7ae
MD5 9d92829f132cb6f125f2580660026191
BLAKE2b-256 15de73e2e7cdfad3ae8940c2b8e703343f0a6d806de43d2d2cfc3477260b1433

See more details on using hashes here.

Provenance

The following attestation bundles were made for vatcalc-1.0.0.tar.gz:

Publisher: python-publish.yml on selectnull/python-vatcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vatcalc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vatcalc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for vatcalc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc84bc357d87997081f4514a06ff9a2df83f85c0f54ae47a5d488a2567338655
MD5 37e1565a8dbfead39e85c4f4a23eee0f
BLAKE2b-256 a9e67eee0dfe04404f2bf29ff418c99cc49abcfae244654775948c2f61bb02b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for vatcalc-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on selectnull/python-vatcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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