Skip to main content

DJANGO REST CNPJ OR CPF VALIDATOR

Examples:

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

Metadata

Release files for drf-cpf-cnpj-validator 1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drf-cpf-cnpj-validator 1.6
File Size Uploaded Provenance Actions
drf_cpf_cnpj_validator-1.6.tar.gz 2.0 kB Without provenance Details for drf_cpf_cnpj_validator-1.6.tar.gz

Release files / drf_cpf_cnpj_validator-1.6.tar.gz

Download URL drf_cpf_cnpj_validator-1.6.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3eeee06f859787d109036ced24f16ba8cf2dd7c7dad73935c2f8cce251296493
BLAKE2b-256 checksum
How to use checksums
a4bc6677321116c62c593be37b2c7892b953e4c96e444c3944429bfbb26298c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for drf-cpf-cnpj-validator 1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.6 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page