Skip to main content

Validators for different russian banking values

Project description

vitya

Validators for different russian banking values.
Values you can validate:

  • ИНН validate_inn
  • КПП validate_kpp
  • БИК validate_bic
  • ОГРН validate_ogrn

You should pass value as str, otherwise exception will be raised.
If passed value is wrong, all functions will raise ValidationError.

Examples:

validate_inn("3664069397")

try:
    validate_inn("770708389")
except ValidationError as e:
    print(f"wrong inn: {e}")
validate_kpp("616401001")
validate_bic("044525901")
validate_ogrn("1027700132195")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vitya-0.0.4.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

vitya-0.0.4-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page