Generate valid UK NHS number for testing
Project description
uk_national_health_service_number
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
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 uk_national_health_service_number-0.1.3.tar.gz.
File metadata
- Download URL: uk_national_health_service_number-0.1.3.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.13.1 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f66f7c2c50098e24d532271db45d0e10d0a956b9d2195f79628e4db394cf852
|
|
| MD5 |
22ce3bbe40794817cd9dc9afdde09d60
|
|
| BLAKE2b-256 |
957d1c28489b1685e7a3ab66cc36c600ef10e63a3d379704943057d0da3bb4de
|
File details
Details for the file uk_national_health_service_number-0.1.3-py3-none-any.whl.
File metadata
- Download URL: uk_national_health_service_number-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.13.1 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81120f505b558be5fc8061e59a053ca36847a69ed79eea85b9cccc899f3dda14
|
|
| MD5 |
7419f45f2f03af80de11109f20364066
|
|
| BLAKE2b-256 |
e10c7af2c5f57186b1f88bf82d9f0ec115fb7ded49e6fb3cb88f395b65629e20
|