-
Notifications
You must be signed in to change notification settings - Fork 12
Release v0.3.0 #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Release v0.3.0 #12
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For code related to "contribuyente" (tax payer). Just constants for the moment.
For code related to "dte" (Documento Tributario Electrónico). Just an enum and constants for the moment.
"World timezone definitions, modern and historical". https://pythonhosted.org/pytz/ https://launchpad.net/pytz https://github.com/stub42/pytz
Utils for dealing with timezone-aware datetime objects. Test have not been implemented.
Custom marshmallow field `CustomMarshmallowDateField`. Test have not been implemented.
Useful for dealing with SII RCV ("Registro de Compras y Ventas").
Its main feature is the function `process_rcv_csv_file`.
Test have not been implemented.
add sub-package `rcv`
"lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API." https://lxml.de/ https://github.com/lxml/lxml
"XML bomb protection for Python stdlib modules". https://github.com/tiran/defusedxml
Add helper functions (plus some related exception classes). - `parse_untrusted_xml`: handles the numerous issues and concerns related to parsing untrusted XML data. - `read_xml_schema`: instantiate an XML schema object from a file. - `validate_xml_doc`: validate an XML document against an XML schema. Sources of files in 'test_data/xml/attacks': - https://en.wikipedia.org/wiki/Billion_laughs_attack#Code_example - https://pypi.org/project/defusedxml/#billion-laughs-exponential-entity-expansion - https://pypi.org/project/defusedxml/#external-entity-expansion-remote - https://pypi.org/project/defusedxml/#quadratic-blowup-entity-expansion Some tests have not been implemented.
libs: add module `xml_utils`
Include the following 'dataclasses' (and some related validators): - `DteNaturalKey` - `DteDataL0` - `DteDataL1` - `DteDataL2` Tests have not been implemented.
dte: add module `data_models`
Code for parsing DTE data from representation as XML document (support for other representations may be added later on). Main function is `parse_dte_xml`, and the helpers are `clean_dte_xml` and `validate_dte_xml`. Tests have not been implemented.
dte: add module `parse`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
parse#11, 2019-04-05) dte: add moduleparsedata_models#10, 2019-04-05) dte: add moduledata_modelsxml_utils#9, 2019-04-05) libs: add modulexml_utilsrcv#8, 2019-04-05) add sub-packagercv