Skip to content

Conversation

@glarrain
Copy link
Contributor

@glarrain glarrain commented Apr 5, 2019

glarrain added 13 commits April 4, 2019 19:51
"A high-level Python Web framework that encourages rapid development
and clean, pragmatic design."

https://www.djangoproject.com
https://github.com/django/django
"[..] an ORM/ODM/framework-agnostic library for converting complex
datatypes, such as objects, to and from native Python datatypes."

https://marshmallow.readthedocs.io/
https://github.com/marshmallow-code/marshmallow
A separate field class for:

- Django model.
- DRF (Django REST Framework) serializer.
- MM (marshmallow) schema.

Some tests have not been implemented.
extras: add 'RutField' for Django models, DRF and MM
Official schemas of entities related to these domain concepts:
- DTE (Documento Tributario Electrónico)
- IECV (Información Electrónica de Libros de Compra y Venta)
- LCE (Libros Contables Electrónicos)

Includes a README file per schema set.

All the files have been preserved as they were; schemas are in their
original text encoding (ISO-8859-1) and have not been modified in the
slightest way.

Include the XML schema (`.xsd`) files in the distribution packages
(source and wheel).

Sources (2018-11-28):
http://www.sii.cl/factura_electronica/schema_dte.zip
http://www.sii.cl/factura_electronica/schema_iecv.zip
Update schemas from an unofficial source since the files available on
SII's website are outdated with respect to the regulations (and even
to the documentation PDFs published alongside).

Source: repository/project "LibreDTE" at
https://github.com/LibreDTE/libredte-lib

Specific source per file:
- 'schema_dte/DTE_v10.xsd':
  https://github.com/LibreDTE/libredte-lib/blob/c12f8845/schemas/DTE_v10.xsd
- 'schema_dte/EnvioDTE_v10.xsd':
  https://github.com/LibreDTE/libredte-lib/blob/c12f8845/schemas/EnvioDTE_v10.xsd
- 'schema_dte/SiiTypes_v10.xsd':
  https://github.com/LibreDTE/libredte-lib/blob/c12f8845/schemas/SiiTypes_v10.xsd
- 'schema_iecv/LceCal_v10.xsd'
  https://github.com/LibreDTE/libredte-lib/blob/c12f8845/schemas/LceCal_v10.xsd
- 'schema_iecv/LceCoCertif_v10.xsd'
  https://github.com/LibreDTE/libredte-lib/blob/c12f8845/schemas/LceCoCertif_v10.xsd
- 'schema_iecv/LceSiiTypes_v10.xsd'
  https://github.com/LibreDTE/libredte-lib/blob/c12f8845/schemas/LceSiiTypes_v10.xsd
- 'schema_iecv/LibroCV_v10.xsd'
  https://github.com/LibreDTE/libredte-lib/blob/c12f8845/schemas/LibroCV_v10.xsd
…ctura-electronica

data.ref: add XML schemas of "factura electrónica"
@glarrain glarrain self-assigned this Apr 5, 2019
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@fd7b377). Click here to learn what that means.
The diff coverage is 51.25%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #7   +/-   ##
=========================================
  Coverage          ?   73.46%           
=========================================
  Files             ?        5           
  Lines             ?      147           
  Branches          ?       14           
=========================================
  Hits              ?      108           
  Misses            ?       39           
  Partials          ?        0
Impacted Files Coverage Δ
cl_sii/rut/constants.py 100% <ø> (ø)
cl_sii/extras/drf_fields.py 0% <0%> (ø)
cl_sii/extras/mm_fields.py 100% <100%> (ø)
cl_sii/extras/dj_model_fields.py 47.5% <47.5%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd7b377...8e2abec. Read the comment docs.

@glarrain glarrain merged commit e5829e9 into master Apr 5, 2019
@glarrain glarrain added the kind: release Release label May 8, 2019
@glarrain glarrain changed the title Release Release v0.2.0 May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants