Django validators for Export Directory.
Project description
# directory-validators
[Directory of UK Exporters validators](https://www.directory.exportingisgreat.gov.uk/)
[![code-climate-image]][code-climate]
[![circle-ci-image]][circle-ci]
[![codecov-image]][codecov]
[![gemnasium-image]][gemnasium]
---
## Requirements
## Installation
```shell
pip install directory_validators
```
## Usage
```python
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
[code-climate-image]: https://codeclimate.com/github/uktrade/directory-validators/badges/issue_count.svg
[code-climate]: https://codeclimate.com/github/uktrade/directory-validators
[circle-ci-image]: https://circleci.com/gh/uktrade/directory-validators/tree/master.svg?style=svg
[circle-ci]: https://circleci.com/gh/uktrade/directory-validators/tree/master
[codecov-image]: https://codecov.io/gh/uktrade/directory-validators/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/uktrade/directory-validators
[gemnasium-image]: https://gemnasium.com/badges/github.com/uktrade/directory-validators.svg
[gemnasium]: https://gemnasium.com/github.com/uktrade/directory-validators
[Directory of UK Exporters validators](https://www.directory.exportingisgreat.gov.uk/)
[![code-climate-image]][code-climate]
[![circle-ci-image]][circle-ci]
[![codecov-image]][codecov]
[![gemnasium-image]][gemnasium]
---
## Requirements
## Installation
```shell
pip install directory_validators
```
## Usage
```python
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
[code-climate-image]: https://codeclimate.com/github/uktrade/directory-validators/badges/issue_count.svg
[code-climate]: https://codeclimate.com/github/uktrade/directory-validators
[circle-ci-image]: https://circleci.com/gh/uktrade/directory-validators/tree/master.svg?style=svg
[circle-ci]: https://circleci.com/gh/uktrade/directory-validators/tree/master
[codecov-image]: https://codecov.io/gh/uktrade/directory-validators/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/uktrade/directory-validators
[gemnasium-image]: https://gemnasium.com/badges/github.com/uktrade/directory-validators.svg
[gemnasium]: https://gemnasium.com/github.com/uktrade/directory-validators
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
Close
Hashes for directory_validators-4.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72edfab51972a53cba62552b341066017400b034b316d7f23cc45840c3a8fad0 |
|
MD5 | 6a0b7eef4982ef9cf12c9e6916cb1f7c |
|
BLAKE2b-256 | 69281a369c625935b4f5e66de65dcc98f9a77a7900b00d5c92a6f10b90bd991b |