Validate German Tax-ID (Steuer-ID).
Project description
Steuer-ID
Validates the German Tax-ID (Steuerliche Identifikationsnummer, short: Steuer-ID) using Python.
Based on the official ELSTER documentation (chapter: 2).
[!NOTE] This package validates solely the syntax and check digit of the provided input. It does not confirm, that the validated Steuer-ID was assigned to a person. Please contact the Bundeszentralamt für Steuern in case you are unsure about your Steuer-ID.
Usage
An example of how it can be used:
from steuerid import SteuerId
validation_result = SteuerId.validate("02476291358")
print(validation_result) # (True, None) -> the provided input is a valid steuer id
validation_result = SteuerId.validate("x1234567890")
print(validation_result) # (False, OnlyDigitsAllowedException) -> invalid input, only digits are allowed
Test-Steuer-IDs
Support for test Steuer-IDs (starting with 0) is enabled by default. Test Steuer-IDs are typically invalid in production. It is recommended to disable them with the following environment variable:
STEUERID_PRODUCTION=true
Development
For development first clone the repo. It is recommended to create a virtual env
and activate that virtual env. Inside the venv install the dependencies using
poetry install command.
Testing
Execute pytest to run the unit tests:
pytest
Credits
License
The MIT License (MIT). Please see License File for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file steuerid-2.0.0.tar.gz.
File metadata
- Download URL: steuerid-2.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48e6e3fdcbe0ca7935ac645f35c6eec89257d174d808641e78d201c20d2e7bd1
|
|
| MD5 |
51ea1bd411a4cc93f539c7c24a259db6
|
|
| BLAKE2b-256 |
f38f2fc1590ae14de6f0d6d3ddaec0ac53ee87ffacb4c328360a0be9e3d5aac3
|
Provenance
The following attestation bundles were made for steuerid-2.0.0.tar.gz:
Publisher:
publish.yml on NumanIjaz/steuerid
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
steuerid-2.0.0.tar.gz -
Subject digest:
48e6e3fdcbe0ca7935ac645f35c6eec89257d174d808641e78d201c20d2e7bd1 - Sigstore transparency entry: 153956776
- Sigstore integration time:
-
Permalink:
NumanIjaz/steuerid@2f2559101c5481936d8200a9d7b52e075516c2e0 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/NumanIjaz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2f2559101c5481936d8200a9d7b52e075516c2e0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file steuerid-2.0.0-py3-none-any.whl.
File metadata
- Download URL: steuerid-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1501636db84e1eb48f2043bff4798f70a16004eb16174e77b0d6b2fe450c7a7
|
|
| MD5 |
c7c8c4b5093e288f9a34685147117991
|
|
| BLAKE2b-256 |
2a5149421bf842c218624b41f49873d1ff188e24fb62f5df1d875500b6ae199e
|
Provenance
The following attestation bundles were made for steuerid-2.0.0-py3-none-any.whl:
Publisher:
publish.yml on NumanIjaz/steuerid
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
steuerid-2.0.0-py3-none-any.whl -
Subject digest:
e1501636db84e1eb48f2043bff4798f70a16004eb16174e77b0d6b2fe450c7a7 - Sigstore transparency entry: 153956778
- Sigstore integration time:
-
Permalink:
NumanIjaz/steuerid@2f2559101c5481936d8200a9d7b52e075516c2e0 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/NumanIjaz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2f2559101c5481936d8200a9d7b52e075516c2e0 -
Trigger Event:
push
-
Statement type: