Skip to main content

A wrapper API of VIES VAT web service

Compatibility

Requires Python 2.7 or greater. Has been tested on 2.7, 3.4 and 3.6

Installation

$ pip install pyvieser

Usage

Python API:
from pyVies import api

try:
    vies = api.Vies()
    result = vies.request('RO2785503', 'RO', extended_info=True)

    # works as well
    # result = vies.request('RO2785503')
    # result = vies.request('RO2785503', 'RO')

except api.ViesValidationError as e:
    print (e)
except api.ViesHTTPError as e:
    print (e)
except api.ViesError as e:
    print (e)
else:
    print (result)
    print (result.vatNumber)
    print(result.valid)


# You may also use clean to extract vat number and country code
# The line bellow would print ('2785503', 'RO')

print (vies.clean('RO2785503'))
From console:
$ pyvies <vat_number>

The number should start with the country code. For python3 you might have to set python encoding for your environment (e.g. export PYTHONIOENCODING=utf-8).

Metadata

Release files for pyvieser 0.0.4

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

Source distribution (sdist)

Source distribution for pyvieser 0.0.4
File Size Uploaded Provenance Actions
pyvieser-0.0.4.tar.gz 4.2 kB Without provenance Details for pyvieser-0.0.4.tar.gz

Built distribution (wheel)

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

Total release size: 9.0 kB

Release files / pyvieser-0.0.4.tar.gz

Download URL pyvieser-0.0.4.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
999aaf7641cf1aec1f97ae9dd1d787bfddf54298f022a487afd15e05b48b13e3
BLAKE2b-256 checksum
How to use checksums
44b472c34daff825e8ffc92382506baea2b0c26eb30632d36b9658d24d61cba9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pyvieser-0.0.4-py3-none-any.whl

Download URL pyvieser-0.0.4-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5dfa1ddc7ef06caa857eeba05ec2d25659c5cf2e2b7fd59c2888c32b1addaebb
BLAKE2b-256 checksum
How to use checksums
fc7d365609e15a2bbaa51d7cedafea2094c7bd8b13101fe522c2cf8b42a67536
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for pyvieser 0.0.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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