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:htmlpdfjson
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_beautifyExample JSON
curl --request POST \
-F format=json \
-F xml=@/xml/file.xml \
https://us-central1-slack-services.cloudfunctions.net/sii_beautifyYou need install pre-commit
- MacOs
brew install pre-commit
docker-compose build
pre-commit installdocker-compose run --rm app pipenv run pytestCoverage
# 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=htmldocker-compose run --rm app pipenv install flaskQuickstart https://cloud.google.com/functions/docs/quickstart-python
gcloud functions deploy sii_beautify --runtime python37 --trigger-http --memory 128MBThis package was created with Cookiecutter and the sourceryai/python-best-practices-cookiecutter project template.