semvec/pypi-packages huggingface dataset:
drf-cpf-cnpj-validator 1.6
A small and quick validation plugin for CPF or CNPJ in django rest framework!
Keywords: django-rest-framework,cpf,cnpj,python,django,validation,validation-library,cpf-validation,cnpj-validation,validação-de-cpf,validação-de-cnpj,drf-validation,validação,django-rest-cpf-validation,django-rest-cnpj-validation,validação-cpf-django-rest-framework,validação-cnpj-django-rest-framework

DJANGO REST CNPJ OR CPF VALIDATOR
=================================


Examples:
^^^^^^^^^

.. code:: python

    from rest_framework import serializers 
    from drf_cpf_cnpj_validator.validadors import cpf_validator, cnpj_validator


    class PersonSerializer(serializers.ModelSerializer):
        cpf = serializers.Charfield(validators=[cpf_validator])


    class CompanySerializer(serializers.ModelSerializer):
        cnpj = serializers.Charfield(validators=[cnpj_validator])

Translations:
^^^^^^^^^^^^^

This plugin translate the messages from your **LANGUAGE\_CODE** ,
located in settings.py.

-  **Enabled translations:**

  -  en-US
  -  pt-BR
  -  es-ES