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

Uploaded Python 3

File details

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

File metadata

  • Download URL: directory_validators-9.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.28.1 setuptools/65.3.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.9

File hashes

Hashes for directory_validators-9.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf144f56270e2de1025648e7ac1c955f2b3b0fce0362bf71f9cb0f38a1e3bd2
MD5 1bc6dfd7d830dfa97f00a1e23744e7b6
BLAKE2b-256 02950444caa89ffd9e6081fbbbb1984c3bdbe7bb4b3462f0e9c074d6c53d66c2

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