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

Uploaded Python 3

File details

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

File metadata

  • Download URL: directory_validators-9.2.2-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.9.6 requests/2.28.2 setuptools/65.7.0 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.9.9

File hashes

Hashes for directory_validators-9.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e2662bb7a683b370d01ccbf59ddf465aaace94c56f9ff28ce30c05abd73aa26
MD5 763c14fb5d1414cca116c8458d9a9c83
BLAKE2b-256 6ba6ea2cf395a2cd06891c6ed8fb8bdca1d6cf5aacf14317130a1f0907e8901c

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