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-10.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for directory_validators-10.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d361822f3a780e95968a6a1b50d97814325c81fd4956daf732240ef95b242e
MD5 489391fc88ef0c7cf64f16796acedb10
BLAKE2b-256 67ced7a4ff912fab4285af04295861a78e48782395cef44f2ba0b6c21211101a

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