Skip to main content

A Python toolbox of validators, parsers, and datasets for Moroccan-specific data formats and regions.

Project description

Moroccan Atlas

A Python toolbox of validators, parsers, and datasets for Moroccan-specific data formats and regions.

Note: This project is under heavy development. Features and functionality may and will change over time.

Installation

pip install moroccan_atlas

Usage

from moroccan_atlas import is_valid_cin, is_valid_ice, is_valid_phone

print(is_valid_cin("AB123456"))          # True
print(is_valid_ice("001234567000084"))   # True
print(is_valid_phone("0600123456"))      # True

Validators Available

is_valid_XYZ, return True or False

  • is_valid_cin(value) — 8-character alphanumeric CIN, must start with letters.

Extractors

Do not perform validation. Just extract data directly.

Parsers

Parsers perform validation + extraction of data. If it's invalid, they raise a ValidationError exception.

Data

Compressed CSVs or JSONs

Load with importlib.resources (modern & zip-safe way)

Check size of package: python -m build du -sh dist/*

License

A commercial license is required for any organization with more than 10 employees or annual revenue over $500,000 USD, or using this software as part of a product or service offered for a fee.

See LICENSE, or contact the author, for more details.

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

moroccan_atlas-0.1.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

moroccan_atlas-0.1.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file moroccan_atlas-0.1.3.tar.gz.

File metadata

  • Download URL: moroccan_atlas-0.1.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.14 Linux/6.8.0-57-generic

File hashes

Hashes for moroccan_atlas-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6317c377d1047cf0c939a5232c518cc67c284783da1c02892ff9327217764b65
MD5 399443f33764e291b0911d3f7b6dbe7e
BLAKE2b-256 2270b52c6241576277fdfd2e3d397b87383a92276edc937834ee77a11150e192

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moroccan_atlas-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.14 Linux/6.8.0-57-generic

File hashes

Hashes for moroccan_atlas-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f1892919ae0a65b2371e6e1f28a3e170ec7bc3b6a4de650bf1434972e0bfa14
MD5 8cf286d5bdf5121725b67276cdb44300
BLAKE2b-256 5146e29220fdfac0d15ba3305bb7620efccf41738583efb7aae04a9c8964f910

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