Skip to main content

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

Metadata

Release files for vatcalc 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vatcalc 1.0.0
File Size Uploaded Provenance Actions
vatcalc-1.0.0.tar.gz 7.6 kB With provenance Details for vatcalc-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vatcalc 1.0.0
File Interpreter ABI Platform Actions
vatcalc-1.0.0-py3-none-any.whl Python 3 none any Details for vatcalc-1.0.0-py3-none-any.whl

Total release size: 10.5 kB

Release files / vatcalc-1.0.0.tar.gz

Download URL vatcalc-1.0.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
70d4428cb027bc543d889500a296a773f0bd73683b31cc6608a555b5896ce7ae
BLAKE2b-256 checksum
How to use checksums
15de73e2e7cdfad3ae8940c2b8e703343f0a6d806de43d2d2cfc3477260b1433
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2024.

Transparency log

Release files / vatcalc-1.0.0-py3-none-any.whl

Download URL vatcalc-1.0.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc84bc357d87997081f4514a06ff9a2df83f85c0f54ae47a5d488a2567338655
BLAKE2b-256 checksum
How to use checksums
a9e67eee0dfe04404f2bf29ff418c99cc49abcfae244654775948c2f61bb02b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2024.

Transparency log

Security for vatcalc 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vatcalc-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2024.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page