Skip to main content

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

Project description

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

Changelog

1.3.1 (2023-06-09)

  • (PR #68, 2023-03-13) chore: bump mypy from 0.991 to 1.0.1
  • (PR #71, 2023-03-13) chore: bump actions/cache from 3.2.5 to 3.2.6
  • (PR #74, 2023-03-14) chore: bump tox from 4.4.5 to 4.4.7
  • (PR #72, 2023-03-14) chore: bump coverage from 7.1.0 to 7.2.1
  • (PR #76, 2023-03-29) Decrease Dependabot's open pull request limit to 5
  • (PR #75, 2023-03-30) Update GitHub Actions Linux runner to Ubuntu 22.04
  • (PR #85, 2023-04-05) Update code owners for Python dependencies
  • (PR #82, 2023-04-05) chore(deps): Bump black from 23.1.0 to 23.3.0
  • (PR #79, 2023-04-14) chore: bump actions/dependency-review-action from 3.0.3 to 3.0.4
  • (PR #77, 2023-04-14) chore: bump actions/cache from 3.2.6 to 3.3.1
  • (PR #83, 2023-04-17) chore: bump mypy from 1.0.1 to 1.1.1
  • (PR #57, 2023-04-26) chore(deps): Bump ipython from 7.34.0 to 8.10.0
  • (PR #87, 2023-05-05) chore: bump actions/checkout from 3.3.0 to 3.5.2
  • (PR #94, 2023-05-15) chore: Bump coverage from 7.2.1 to 7.2.5
  • (PR #93, 2023-05-16) chore: Bump tox from 4.4.7 to 4.5.1
  • (PR #98, 2023-05-26) Add Codecov to CI workflow

1.3.0 (2023-02-27)

  • (PR #44, 2023-02-08) chore: bump tox from 3.27.1 to 4.4.4
  • (PR #46, 2023-02-08) chore: bump isort from 5.10.1 to 5.12.0
  • (PR #45, 2023-02-08) chore: bump black from 22.12.0 to 23.1.0
  • (PR #56, 2023-02-08) chore: bump cryptography from 38.0.3 to 39.0.1
  • (PR #43, 2023-02-09) chore: bump flake8 from 4.0.1 to 6.0.0
  • (PR #58, 2023-02-13) Improve Super-Linter GitHub Actions workflow
  • (PR #59, 2023-02-13) Add Make files to cache key used for Python dependencies in CI/CD
  • (PR #60, 2023-02-13) Get PyPI username from GitHub Actions variable instead of secret
  • (PR #61, 2023-02-13) Fix deprecation of GitHub Actions set-output
  • (PR #62, 2023-02-13) Pin versions of actions used in GitHub Actions workflows
  • (PR #63, 2023-02-13) Remove unnecessary permissions from GitHub Actions workflows
  • (PR #66, 2023-02-13) Update CI/CD information in readme
  • (PR #65, 2023-02-17) chore: bump tox from 4.4.4 to 4.4.5
  • (PR #67, 2023-02-19) Change cache key of release & deploy workflows to match CI workflow

1.2.1 (2023-02-07)

  • (PR #31, 2023-01-26) chore: bump certifi from 2022.6.15 to 2022.12.7
  • (PR #40, 2023-01-26) Add GitHub Dependency Review
  • (PR #34, 2023-01-26) chore: bump black from 22.10.0 to 22.12.0
  • (PR #41, 2023-01-26) Improve GitHub Dependency Review
  • (PR #42, 2023-01-27) Update Markdownlint configuration
  • (PR #39, 2023-02-03) chore: bump coverage from 6.5.0 to 7.1.0
  • (PR #47, 2023-02-03) Enable Python dependency sync check for Python 3.8
  • (PR #48, 2023-02-06) Refactor CI/CD workflows
  • (PR #49, 2023-02-06) fix: Add missing permissions to CI/CD workflow
  • (PR #50, 2023-02-07) Improve selection of deployment environment in CI/CD workflow
  • (PR #51, 2023-02-07) Add missing parameter to CI/CD workflow
  • (PR #52, 2023-02-07) Create GitHub release from CI/CD workflow
  • (PR #53, 2023-02-07) Add GitHub environment to CI/CD workflow

1.2.0 (2023-01-05)

  • (PR #15, 2022-08-09) chore: Improve Git commit linter
  • (PR #16, 2022-08-11) chore: Add code owners
  • (PR #17, 2022-08-29) Add information dashboard to readme
  • (PR #18, 2022-09-06) chore: bump black from 22.6.0 to 22.8.0
  • (PR #19, 2022-09-08) chore: bump coverage from 6.4.2 to 6.4.4
  • (PR #22, 2022-10-19) chore: bump mypy from 0.971 to 0.981
  • (PR #21, 2022-10-19) chore: bump tox from 3.25.1 to 3.26.0
  • (PR #20, 2022-10-21) chore: bump coverage from 6.4.4 to 6.5.0
  • (PR #23, 2022-11-02) chore: bump mypy from 0.981 to 0.982
  • (PR #24, 2022-11-02) chore: bump black from 22.8.0 to 22.10.0
  • (PR #25, 2022-11-02) chore: bump tox from 3.26.0 to 3.27.0
  • (PR #26, 2022-11-23) fix: Fix Dependabot error pip.….Error: Constraints cannot have extras
  • (PR #27, 2022-11-23) chore: bump cryptography from 37.0.4 to 38.0.3
  • (PR #30, 2022-12-05) chore: bump twine from 4.0.1 to 4.0.2
  • (PR #29, 2022-12-05) chore: bump mypy from 0.982 to 0.991
  • (PR #28, 2022-12-06) chore: bump tox from 3.27.0 to 3.27.1
  • (PR #36, 2023-01-04) chore: Add support for Python 3.10

1.1.0 (2022-07-28)

  • (PR #12, 2022-07-28) fix: Do not ignore environment variable TOXENV in Makefile
  • (PR #9, 2022-07-28) Add entity 'RUC' (“Registro Único de Contribuyente”)

1.0.0 (2022-07-28)

  • (PR #1, 2022-07-27) chore: Add Editor Configuration
  • (PR #3, 2022-07-27) chore: Add CI workflows
  • (PR #4, 2022-07-27) chore: Add Git Ignore
  • (PR #5, 2022-07-27) chore: Manage Python dependencies with Pip Tools
  • (PR #2, 2022-07-27) chore: Add software license
  • (PR #6, 2022-07-27) chore: Add base Make tasks
  • (PR #7, 2022-07-27) fix: Add missing base Make tasks
  • (PR #8, 2022-07-28) Set up base project
  • (PR #10, 2022-07-28) chore: Set package version in variable cordada.pe_sunat.__version__

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

pe-sunat-1.3.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pe_sunat-1.3.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pe-sunat-1.3.1.tar.gz.

File metadata

  • Download URL: pe-sunat-1.3.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for pe-sunat-1.3.1.tar.gz
Algorithm Hash digest
SHA256 44e2e746061191251037a91f8055c585cab6c68ca8b26421d277aea7693024fc
MD5 2b8ea36fe87d1078aaa4e863436fba8e
BLAKE2b-256 87b86c11492f99a31a2804e2fe7bca57d4f251b620c44b06e094be4431453a65

See more details on using hashes here.

File details

Details for the file pe_sunat-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: pe_sunat-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for pe_sunat-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 474e391caba350aa8ac8c64160afe9c87c7eb53ce927965b3b06b6a4e8c02cc0
MD5 161dfda1501b72d6f747c036e1410498
BLAKE2b-256 d17c89a24a6855ea306704ddaaee787193739eca1008304c4b4ecc64d39e5278

See more details on using hashes here.

Supported by

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