Metadata-Version: 2.1
Name: localizedpydantic
Version: 0.3.0
Summary: Library to validate localized data with pydantic
Home-page: https://github.com/lucasbalieiro/localizedpydantic
Author: Lucas Balieiro Matos
Author-email: lucasbalieirom@hotmail.com
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: pydantic
Requires-Dist: requests

# LocalizedPydantic - UNDER CONSTRUCTION

LocalizedPydantic is a Python library for validating localized data, such as Brazilian CEPs and CPFs. The library is designed to be extensible, so that other developers can contribute validation rules for their own countries.

## Installation

Install with pip:

```bash 
    pip install localizedpydantic
```

## Usage

Here's an example of how to use LocalizedPydantic to validate a Brazilian CEP:

```python
from localizedpydantic.models.brazil import CPF
from pydantic import ValidationError

try:
    cpf = CPF(cpf='123.456.789-00')
    print(cpf.cpf)  # '123.456.789-00'
except ValidationError as e:
    print(e)

try:
    cpf = CPF(cpf='12345678900')
    print(cpf.cpf)  # raises ValidationError
except ValidationError as e:
    print(e)

```

## Contributing
Contributions are welcome! To contribute, please submit a pull request.

## License
LocalizedPydantic is licensed under the MIT license
