Skip to main content

Generate valid UK NHS number for testing

Project description

uk_national_health_service_number

PyPI Python

A Python package to generate valid UK NHS numbers using the official modulus-11 checksum algorithm.


✨ Features

  • ✅ Generate one or more valid NHS numbers
  • 📦 Easy-to-use Python API
  • 🔢 Optionally use from the command line (nhs-gen)
  • 🧪 Includes unit tests

🚀 Installation

Install from PyPI:

pip install uk_national_health_service_number

---
## 🧪 Usage

### ▶️ In Python

Generate NHS numbers programmatically:

```python
from uk_national_health_service_number import NHSNumberGenerator

# Generate 3 NHS numbers
gen = NHSNumberGenerator(num_records=3)
numbers = gen.generate_uk_national_health_service_number()

for number in numbers:
    print(number)

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

uk_national_health_service_number-0.1.2.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file uk_national_health_service_number-0.1.2.tar.gz.

File metadata

File hashes

Hashes for uk_national_health_service_number-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5c7115265ae44e5e1cb96f66a7c63a0e76c11351f6a9b7b152cd1fc4e3b84600
MD5 ccada8f98847c2a34df7b8df681d5daa
BLAKE2b-256 2f5483d731115ed3b3d04dfd2b2d4aa4e8c867a0a7b19b60c4710ea92f18eddf

See more details on using hashes here.

File details

Details for the file uk_national_health_service_number-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for uk_national_health_service_number-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9492e8d6c375e17de8606ad4bc69690c18317c990678587fd1d266823300197
MD5 bc48a6dbf5de9b75fe1c20b6040c0410
BLAKE2b-256 2a40d32b98ab6dc9c13cb305fa9eb61c379c6e1dfb88b63fd54e62296780cf24

See more details on using hashes here.

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