Django validators for GREAT.
Project description
directory-validators
Directory of UK Exporters validators
Requirements
Installation
pip install directory_validators
Usage
from directory_validators import enrolment
enrolment.validate_company_number('12345678')
enrolment.validate_email('test@example.com')
Development
$ git clone https://github.com/uktrade/directory-validators
$ cd directory-validators
$ make
Testing
$ py.test .
Publish to PyPI
The package should be published to PyPI on merge to master. If you need to do it locally then get the credentials from rattic and add the environment variables to your host machine:
Setting |
---|
DIRECTORY_PYPI_USERNAME |
DIRECTORY_PYPI_PASSWORD |
Then run the following command:
make publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file directory_validators-9.3.4-py3-none-any.whl
.
File metadata
- Download URL: directory_validators-9.3.4-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.10.0 requests/2.30.0 setuptools/38.7.0 requests-toolbelt/0.8.0 tqdm/4.66.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 657eeae5ef78e0cd58cd732517ce5ec4a217a600e5a2f7129853dd4a6b4ccc48 |
|
MD5 | 079efc75dc7fe9693e529f4829c20351 |
|
BLAKE2b-256 | c5dfd08bf7ee8a5bc199e2c243ca18c78c6a42b755ffdfbc0a3e4a4485ffb570 |