
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Python library to connect with Alanube API
To install the Alanube library, you can use pip:
pip install alanube
# Import the Alanube class specific to the country,
# in this case from `alanube.do` for the Dominican Republic
from alanube.do import Alanube
# Connect to the API
Alanube.connect("[TOKEN]")
payload = {...}
data = Alanube.send_document(encf_type=31, payload)
Now you can easily and efficiently use the Alanube API with this Python library!
do
: Implementation for the Dominican Republic (DGII). This is the only fully developed directory and contains all the necessary structure and logic to work with the Alanube API for this country.pa
: Implementation for Panama (future). If you need to develop for Panama, create a directory named pa
at the same level as do
within alanube
and replicate the internal structure of do
.cr
: Implementation for Costa Rica (future). Similarly, create a cr
directory following the same structure as do
.bo
: Implementation for Bolivia (future). The bo
directory should also follow the structure of do
.For the missing countries, you can use the do
directory as a reference to build the required implementations, adapting the logic to meet the specific local requirements of each country.
If you're contributing to the development of this library, here are the steps to set up your environment and run the tests:
Clone the repository:
git clone https://github.com/wilmerm/alanube-python-api.git
cd alanube-python-api
Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install the required dependencies:
pip install -r requirements.txt
pip install -r requirements-dev.txt
Install the library in editable mode:
pip install -e .
Code Style. We follow PEP 8 for coding standards. Please ensure your code is formatted accordingly before submitting a pull request.
flake8 alanube
Navigate to the project root directory.
Execute the tests with unittest:
python -m unittest discover -s alanube/tests -p "*.py"
To compile and upload the library to PyPI, follow these steps:
Ensure you have the necessary dependencies:
pip install build twine
Build the package:
python -m build
(Optional) Verify the package:
twine check dist/*
Upload the package to PyPI:
python -m twine upload dist/*
This project is licensed under the MIT License.
This project is under development
If you find value in this project and would like to show your support, please consider making a donation via PayPal:
Your generosity helps us to continue improving and maintaining this project. We appreciate every contribution, however small. Thanks for being part of our community!
FAQs
Python library to connect with Alanube API
We found that alanube demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.