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.3.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.3.tar.gz.

File metadata

File hashes

Hashes for uk_national_health_service_number-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9f66f7c2c50098e24d532271db45d0e10d0a956b9d2195f79628e4db394cf852
MD5 22ce3bbe40794817cd9dc9afdde09d60
BLAKE2b-256 957d1c28489b1685e7a3ab66cc36c600ef10e63a3d379704943057d0da3bb4de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uk_national_health_service_number-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 81120f505b558be5fc8061e59a053ca36847a69ed79eea85b9cccc899f3dda14
MD5 7419f45f2f03af80de11109f20364066
BLAKE2b-256 e10c7af2c5f57186b1f88bf82d9f0ec115fb7ded49e6fb3cb88f395b65629e20

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