Skip to main content

organisationsnummer Build Status

Validate Swedish organization numbers. Follows version 1.1 of the specification.

Installation

pip install organisationsnummer

or

pip3 install organisationsnummer

Examples

  • All examples that uses organisationsnummer.Organisationsnummer([params]), can be replaced with organisationsnummer.parse([params]).

Validation

from organisationsnummer import organisationsnummer

organisationsnummer.valid("8507099805")
# => True

organisationsnummer.valid("198507099805")
# => True

Format

from organisationsnummer import organisationsnummer

# Short format
pn = organisationsnummer.Organisationsnummer(8507099805)
pn.format()
# => '8507099805'

# Long format
pn = organisationsnummer.Organisationsnummer('8507099805')
pn.format(True)
# => '850709-9805'

See organisationsnummer/tests/test_organisationsnummer.py for more examples.

License

MIT

Metadata

Release files for organisationsnummer 1.0.1

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

Source distribution (sdist)

Source distribution for organisationsnummer 1.0.1
File Size Uploaded Provenance Actions
organisationsnummer-1.0.1.tar.gz 5.1 kB Without provenance Details for organisationsnummer-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 11.9 kB

Release files / organisationsnummer-1.0.1.tar.gz

Download URL organisationsnummer-1.0.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1382bf8fa434dd4067a40a6b5ae3df1c1146b28a8565b78aeeeb3c0f20598591
BLAKE2b-256 checksum
How to use checksums
72a859deebbfb6b779f31a51b72e4fe43e4d669751e8a166c642d2e26f182e1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / organisationsnummer-1.0.1-py3-none-any.whl

Download URL organisationsnummer-1.0.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ed6a5b6a0757774b89d01a945463f944c995d173c83a2d820005165b1b99f75
BLAKE2b-256 checksum
How to use checksums
ada70d6463f4f92ddc242307d5de35230315f2165b2e6061974d842b68b39f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for organisationsnummer 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No 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