Convert XML file from SII (http://home.sii.cl) to PDF, HTML or JSON.
Page: https://us-central1-slack-services.cloudfunctions.net/sii_beautify
Options:
xml
: file path you want to convertformat
:html
pdf
json
Example HTML
curl --request POST \
-F format=html \
-F xml=@/xml/file.xml \
https://us-central1-slack-services.cloudfunctions.net/sii_beautify
**Example PDF **
curl --request POST \
-F format=pdf \
-F xml=@/xml/file.xml \
-o file.pdf
https://us-central1-slack-services.cloudfunctions.net/sii_beautify
Example JSON
curl --request POST \
-F format=json \
-F xml=@/xml/file.xml \
https://us-central1-slack-services.cloudfunctions.net/sii_beautify
You need install pre-commit
- MacOs
brew install pre-commit
docker-compose build
pre-commit install
docker-compose run --rm app pipenv run pytest
Coverage
# coverage 100%
docker-compose run --rm app pipenv run pytest --cov --cov-fail-under=100
# Report HTML
docker-compose run --rm app pipenv run pytest --cov --cov-report=html
docker-compose run --rm app pipenv install flask
Quickstart https://cloud.google.com/functions/docs/quickstart-python
gcloud functions deploy sii_beautify --runtime python37 --trigger-http --memory 128MB
This package was created with Cookiecutter and the sourceryai/python-best-practices-cookiecutter project template.