Skip to main content

NGO Hub

GitHub contributors GitHub last commit License: MPL 2.0

The romania package provides tools for working with Romania data types.

A Simple Example | Feedback | License | About Code for Romania

A Simple Example

from romania.cnp import CNP, CNPException

# Get the birth year from a Personal Identification Number
try:
    cnp = CNP("1234567890123")
    print("Birth year =", cnp.year)
except CNPException:
    print("Invalid number")

Feedback

  • Request a new feature on GitHub.
  • Vote for popular feature requests.
  • File a bug in GitHub Issues.
  • Email us with other feedback contact@code4.ro

License

This project is licensed under the MPL 2.0 License – see the LICENSE file for details

About Code for Romania

Started in 2016, Code for Romania is a civic tech NGO, official member of the Code for All network. We have a community of around 2.000 volunteers (developers, ux/ui, communications, data scientists, graphic designers, devops, it security and more) who work pro bono for developing digital solutions to solve social problems. #techforsocialgood. If you want to learn more details about our projects visit our site or if you want to talk to one of our staff members, please e-mail us at contact@code4.ro.

Last, but not least, we rely on donations to ensure the infrastructure, logistics and management of our community that is widely spread across 11 timezones, coding for social change to make Romania and the world a better place. If you want to support us, you can do it here.

Release files for romania 0.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 romania 0.0.1
File Size Uploaded
romania-0.0.1.tar.gz 8.4 kB Details

Built distribution (wheel)

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

Total release size: 16.8 kB

Release files / romania-0.0.1.tar.gz

Download URL romania-0.0.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
64729eb6f0415cf4f0b088a5537fed7c1eea8711678e636f89d1a7c04a2bc75a
BLAKE2b-256 checksum
How to use checksums
2620e40d64f7d48fc8e89b2d4f65b90c8ad8aac3158477072ccb460d1cf16676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / romania-0.0.1-py3-none-any.whl

Download URL romania-0.0.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efa8569f4f254dd494db8b281719837f8821a0ab8ea61f246c322537a899cc5d
BLAKE2b-256 checksum
How to use checksums
eef7858045fc37ebc50fe6dd1cc254d7757588c8ce747dcbae9a6b30de21034d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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