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 | |
master |
Production | GitHub |
Code Climate | Project Analysis |
---|---|
Open Source Insights |
Code Coverage |
---|
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
Changelog
1.4.0 (2024-02-26)
- (PR #137, 2023-09-27) Add missing blank line between sections to changelog
- (PR #138, 2023-09-27) Add Codecov repository upload token to CI/CD
- (PR #142, 2023-10-25) Change Python project structure from Flat layout to Src layout
- (PR #143, 2023-10-25) Add Python project configuration
- (PR #145, 2023-10-25) Improve CI/CD workflows
- (PR #147, 2023-11-02) chore: Bump the development-dependencies group with 4 updates
- (PR #148, 2023-11-07) chore: Bump pip from 23.2.1 to 23.3
- (PR #141, 2023-11-07) chore: Bump urllib3 from 1.26.11 to 1.26.18
- (PR #152, 2024-01-03) chore: Bump the production-dependencies group with 5 updates
- (PR #149, 2024-01-03) chore: Bump cryptography from 41.0.4 to 41.0.6
- (PR #153, 2024-01-03) chore: Bump the development-dependencies group with 5 updates
- (PR #155, 2024-02-01) chore: Bump the production-dependencies group with 5 updates
- (PR #157, 2024-02-19) chore: Bump cryptography from 41.0.6 to 42.0.2
- (PR #158, 2024-02-21) chore: Bump the development-dependencies group with 6 updates
- (PR #159, 2024-02-26) chore: Bump cryptography from 42.0.2 to 42.0.4
1.3.2 (2023-09-26)
- (PR #101, 2023-07-13) chore: Bump codecov/codecov-action from 3.1.2 to 3.1.4
- (PR #110, 2023-07-13) chore: Bump actions/checkout from 3.5.2 to 3.5.3
- (PR #111, 2023-07-13) chore: Bump actions/setup-python from 4.5.0 to 4.7.0
- (PR #100, 2023-07-13) chore: Bump actions/dependency-review-action from 3.0.4 to 3.0.6
- (PR #115, 2023-07-20) chore(deps): Update
pip
from 22.1.2 to 23.1.2 - (PR #113, 2023-07-20) chore(deps): Update
pip-tools
from 6.8.0 to 6.14.0 - (PR #107, 2023-07-20) chore: Bump mypy from 1.1.1 to 1.4.1
- (PR #122, 2023-09-04) chore: Bump actions/dependency-review-action from 3.0.6 to 3.0.8
- (PR #125, 2023-09-14) Update each Python Version for GitHub Actions
- (PR #126, 2023-09-14) Update pip-tools from 6.14.0 to 7.3.0
- (PR #129, 2023-09-14) chore(deps): Add argument
--allow-unsafe
topip-compile
- (PR #131, 2023-09-26) chore: Bump actions/checkout from 3.5.3 to 4.1.0
- (PR #132, 2023-09-26) Add dependency groups to Dependabot configuration
- (PR #133, 2023-09-26) chore: Bump the production-dependencies group with 3 updates
- (PR #134, 2023-09-26) chore: Bump the development-dependencies group with 6 updates
- (PR #130, 2023-09-26) chore: Bump cryptography from 39.0.1 to 41.0.4
- (PR #97, 2023-09-26) chore: Bump requests from 2.28.1 to 2.31.0
- (PR #114, 2023-09-26) chore: Bump pygments from 2.12.0 to 2.15.0
- (PR #117, 2023-09-26) chore: Bump certifi from 2022.12.7 to 2023.7.22
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.4.0.tar.gz
(10.6 kB
view details)
Built Distribution
pe_sunat-1.4.0-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file pe-sunat-1.4.0.tar.gz
.
File metadata
- Download URL: pe-sunat-1.4.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5acbd2929208fc6c841c8eee079db9d33c6f6a7fbc1d7fbb8f4bffe12d25e224 |
|
MD5 | bfce708116a47c76ad755d61312c0103 |
|
BLAKE2b-256 | 6120aebeee32cd0e5cb15b07d76029ee21aa4c2e8323ad33e8186229012d6c7b |
File details
Details for the file pe_sunat-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: pe_sunat-1.4.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c9be646e22c3976b340adbbc32f78ca2df0a6ace33108febdd5a6bc4aee3a82 |
|
MD5 | 5ecc90bcd7eff38e170aab6952adcff6 |
|
BLAKE2b-256 | 86f7df7945d035ff2c31a83966b11ce4f7d70accc73804ffc4b75360964602a7 |