CPF generation and validation
Project description
CPF validator and generator.
How to use
- First, install pycpf:
$ pip install pycpf
- Then you can use it for generating a new CPF:
>>> from pycpf import CPF >>> CPF() CPF('53587674019')
- or to validate an existing CPF:
>>> CPF('53587674019').valid() True
- CPF objects can also be compared to strings:
>>> CPF('53587674019') == '53587674019' True
- or even converted to strings:
>>> str(CPF('53587674019')) '535.876.740-19'
License
This software is licensed through BSD 2-clause license. Please read “LICENSE” for more information.
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 Distribution
pycpf-0.1.tar.gz
(2.1 kB
view details)
File details
Details for the file pycpf-0.1.tar.gz
.
File metadata
- Download URL: pycpf-0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60098df940f2a7207fbafa243c4dff16be9a0ee051dc87bf0c6eacfaa62f2c81 |
|
MD5 | 65c4c6116d658739874d3738020ac491 |
|
BLAKE2b-256 | 2bd31b6fe32df6db72862e21b9826a75a2d3bfa8786544ef3552f89e292c2536 |