Skip to main content

Django validators for GREAT.

Project description

directory-validators

Directory of UK Exporters validators

code-climate-image circle-ci-image codecov-image pypi-image semver-image


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


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

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

directory_validators-9.4.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file directory_validators-9.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for directory_validators-9.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0aae988584bcb7e41b32396bf402198073a6a18a70218ed996f0c681fbf904b
MD5 87ccfce7ad24bf8e294e4edd6b9f4a95
BLAKE2b-256 87ea351c8c82837f86f6e24d9476148e309647f568b254888b52bd5acfe648b0

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