Skip to main content

Generate valid UK NHS Numbers

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.4.tar.gz (1.5 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.4.tar.gz.

File metadata

File hashes

Hashes for uk_national_health_service_number-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5e3639593e5e505a8716ebbb61d79b01fc1402de23efb8339ec70c921ebba479
MD5 c29e902de4581c7438b32722888dc40b
BLAKE2b-256 182257e63e856da636c756b7e3b913079b3349e5519848d802b8d676adfe91b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uk_national_health_service_number-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ea904e96fc4acfc72487fd241f5ec39f2f467636e63bd8dbcdfdc9474edf2be
MD5 04513c887c33e38446753ae2a605c53f
BLAKE2b-256 f864b6042379d50e77bc2ad77eaa3d406292273c9d58668e3cfc789b657458c9

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