/lib-pe-sunat-python

Python library for Superintendencia Nacional de Aduanas y de Administración Tributaria (SUNAT) of Peru

Primary LanguagePythonMIT LicenseMIT

PE-SUNAT Python Library

This is a Python library for the Superintendencia Nacional de Aduanas y de Administración Tributaria (SUNAT) of Perú.

Dashboard

Development

VCS Branch Deployment Environment VCS Repository CI/CD Status
develop Staging GitHub GitHub Actions
master Production GitHub GitHub Actions
Code Climate Project Analysis
Maintainability Open Source Insights
Code Coverage
Codecov

Hosting

Deployment Environment Python Package Registry
Production PyPI

Installation

Install Python package:

pip install pe-sunat

Usage

from cordada.pe_sunat.ruc.entities import Ruc


example_valid_ruc = Ruc('20131312955')
print(example_valid_ruc.digits, example_valid_ruc.check_digit)

example_invalid_ruc = Ruc('20131312950', validate_check_digit=True)

Additional Documentation

Documentation