libredte 4.4.0__tar.gz → 5.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- libredte-4.4.0/README.rst → libredte-5.0.0/PKG-INFO +27 -54
- libredte-5.0.0/README.rst +40 -0
- {libredte-4.4.0 → libredte-5.0.0}/libredte/__init__.py +2 -0
- libredte-5.0.0/libredte/api_client/__init__.py +773 -0
- {libredte-4.4.0 → libredte-5.0.0}/libredte/api_client/cobros.py +73 -32
- {libredte-4.4.0 → libredte-5.0.0}/libredte/api_client/contribuyentes.py +12 -5
- libredte-5.0.0/libredte/api_client/dte.py +436 -0
- {libredte-4.4.0 → libredte-5.0.0}/libredte/api_client/sistema.py +28 -9
- libredte-5.0.0/libredte/py.typed +0 -0
- {libredte-4.4.0 → libredte-5.0.0/libredte.egg-info}/PKG-INFO +19 -66
- {libredte-4.4.0 → libredte-5.0.0}/libredte.egg-info/SOURCES.txt +2 -1
- libredte-5.0.0/libredte.egg-info/requires.txt +5 -0
- libredte-5.0.0/pyproject.toml +226 -0
- libredte-4.4.0/libredte/api_client/__init__.py +0 -383
- libredte-4.4.0/libredte/api_client/dte.py +0 -171
- libredte-4.4.0/libredte.egg-info/PKG-INFO +0 -112
- libredte-4.4.0/libredte.egg-info/requires.txt +0 -1
- libredte-4.4.0/setup.py +0 -84
- {libredte-4.4.0 → libredte-5.0.0}/COPYING +0 -0
- {libredte-4.4.0 → libredte-5.0.0}/libredte.egg-info/dependency_links.txt +0 -0
- {libredte-4.4.0 → libredte-5.0.0}/libredte.egg-info/top_level.txt +0 -0
- {libredte-4.4.0 → libredte-5.0.0}/setup.cfg +0 -0
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: libredte
|
|
3
|
+
Version: 5.0.0
|
|
4
|
+
Summary: Cliente para realizar la integración con los servicios web de LibreDTE desde Python.
|
|
5
|
+
Author-email: LibreDTE <dev@libredte.cl>
|
|
6
|
+
License-Expression: LGPL-3.0-or-later
|
|
7
|
+
Project-URL: Homepage, https://github.com/LibreDTE/libredte-api-client-python
|
|
8
|
+
Keywords: sii,chile,facturación,electrónica
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Classifier: Typing :: Typed
|
|
16
|
+
Requires-Python: >=3.14
|
|
17
|
+
Description-Content-Type: text/x-rst
|
|
18
|
+
License-File: COPYING
|
|
19
|
+
Requires-Dist: certifi==2024.7.4
|
|
20
|
+
Requires-Dist: charset-normalizer==3.3.2
|
|
21
|
+
Requires-Dist: idna==3.7
|
|
22
|
+
Requires-Dist: requests==2.32.4
|
|
23
|
+
Requires-Dist: urllib3==2.6.3
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
1
26
|
LibreDTE: Cliente de API en Python
|
|
2
27
|
==================================
|
|
3
28
|
|
|
@@ -12,59 +37,7 @@ LibreDTE: Cliente de API en Python
|
|
|
12
37
|
|
|
13
38
|
Cliente para realizar la integración con los servicios web de `LibreDTE <https://www.libredte.cl>`_ desde Python.
|
|
14
39
|
|
|
15
|
-
|
|
16
|
-
---------------------------
|
|
17
|
-
|
|
18
|
-
Instalar usando un entorno virtual y PIP con:
|
|
19
|
-
|
|
20
|
-
.. code:: shell
|
|
21
|
-
|
|
22
|
-
python3 -m venv venv
|
|
23
|
-
source venv/bin/activate
|
|
24
|
-
pip install libredte
|
|
25
|
-
|
|
26
|
-
Actualizar usando PIP con:
|
|
27
|
-
|
|
28
|
-
.. code:: shell
|
|
29
|
-
|
|
30
|
-
pip install libredte --upgrade
|
|
31
|
-
|
|
32
|
-
Autenticación en LibreDTE
|
|
33
|
-
-------------------------
|
|
34
|
-
|
|
35
|
-
Lo más simple, y recomendado, es usar una variable de entorno con el
|
|
36
|
-
`hash del usuario <https://libredte.cl/usuarios/perfil#datos:hashField>`_,
|
|
37
|
-
la cual será reconocida automáticamente por el cliente:
|
|
38
|
-
|
|
39
|
-
.. code:: shell
|
|
40
|
-
|
|
41
|
-
export LIBREDTE_HASH="aquí-tu-hash-de-usuario"
|
|
42
|
-
|
|
43
|
-
Si no se desea usar una variable de entorno, al instanciar los objetos se
|
|
44
|
-
deberá indicar el hash del usuario. Ejemplo:
|
|
45
|
-
|
|
46
|
-
.. code:: python
|
|
47
|
-
|
|
48
|
-
import libredte
|
|
49
|
-
LIBREDTE_HASH="aquí-tu-hash-de-usuario"
|
|
50
|
-
client = libredte.api_client.ApiClient(LIBREDTE_HASH)
|
|
51
|
-
|
|
52
|
-
Si utilizas LibreDTE Edición Comunidad deberás además configurar la URL
|
|
53
|
-
de tu servidor. Ejemplo:
|
|
54
|
-
|
|
55
|
-
.. code:: shell
|
|
56
|
-
|
|
57
|
-
export LIBREDTE_URL="https://libredte.example.com"
|
|
58
|
-
|
|
59
|
-
Y si deseas hacerlo sin la variable de entorno, debes pasar la URL como
|
|
60
|
-
segundo parámetro en el constructor del cliente:
|
|
61
|
-
|
|
62
|
-
.. code:: python
|
|
63
|
-
|
|
64
|
-
import libredte
|
|
65
|
-
LIBREDTE_HASH="aquí-tu-hash-de-usuario"
|
|
66
|
-
LIBREDTE_URL="https://libredte.example.com"
|
|
67
|
-
client = libredte.api_client.ApiClient(LIBREDTE_HASH, LIBREDTE_URL)
|
|
40
|
+
Revisa la `documentación <https://api-client-python.docs.libredte.cl>`_ de la biblioteca para más información, sus características y detalles de su uso.
|
|
68
41
|
|
|
69
42
|
Licencia
|
|
70
43
|
--------
|
|
@@ -89,4 +62,4 @@ Enlaces
|
|
|
89
62
|
- `Sitio web LibreDTE <https://www.libredte.cl>`_.
|
|
90
63
|
- `Código fuente en GitHub <https://github.com/libredte/libredte-api-client-python>`_.
|
|
91
64
|
- `Paquete en PyPI <https://pypi.org/project/libredte>`_.
|
|
92
|
-
- `Documentación
|
|
65
|
+
- `Documentación <https://api-client-python.docs.libredte.cl>`_.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
LibreDTE: Cliente de API en Python
|
|
2
|
+
==================================
|
|
3
|
+
|
|
4
|
+
.. image:: https://badge.fury.io/py/libredte.svg
|
|
5
|
+
:target: https://pypi.org/project/libredte
|
|
6
|
+
.. image:: https://img.shields.io/pypi/status/libredte.svg
|
|
7
|
+
:target: https://pypi.org/project/libredte
|
|
8
|
+
.. image:: https://img.shields.io/pypi/pyversions/libredte.svg
|
|
9
|
+
:target: https://pypi.org/project/libredte
|
|
10
|
+
.. image:: https://img.shields.io/pypi/l/libredte.svg
|
|
11
|
+
:target: https://raw.githubusercontent.com/LibreDTE/libredte-api-client-python/master/COPYING
|
|
12
|
+
|
|
13
|
+
Cliente para realizar la integración con los servicios web de `LibreDTE <https://www.libredte.cl>`_ desde Python.
|
|
14
|
+
|
|
15
|
+
Revisa la `documentación <https://api-client-python.docs.libredte.cl>`_ de la biblioteca para más información, sus características y detalles de su uso.
|
|
16
|
+
|
|
17
|
+
Licencia
|
|
18
|
+
--------
|
|
19
|
+
|
|
20
|
+
Este programa es software libre: usted puede redistribuirlo y/o modificarlo
|
|
21
|
+
bajo los términos de la GNU Lesser General Public License (LGPL) publicada
|
|
22
|
+
por la Fundación para el Software Libre, ya sea la versión 3 de la Licencia,
|
|
23
|
+
o (a su elección) cualquier versión posterior de la misma.
|
|
24
|
+
|
|
25
|
+
Este programa se distribuye con la esperanza de que sea útil, pero SIN
|
|
26
|
+
GARANTÍA ALGUNA; ni siquiera la garantía implícita MERCANTIL o de APTITUD
|
|
27
|
+
PARA UN PROPÓSITO DETERMINADO. Consulte los detalles de la GNU Lesser General
|
|
28
|
+
Public License (LGPL) para obtener una información más detallada.
|
|
29
|
+
|
|
30
|
+
Debería haber recibido una copia de la GNU Lesser General Public License
|
|
31
|
+
(LGPL) junto a este programa. En caso contrario, consulte
|
|
32
|
+
`GNU Lesser General Public License <http://www.gnu.org/licenses/lgpl.html>`_.
|
|
33
|
+
|
|
34
|
+
Enlaces
|
|
35
|
+
-------
|
|
36
|
+
|
|
37
|
+
- `Sitio web LibreDTE <https://www.libredte.cl>`_.
|
|
38
|
+
- `Código fuente en GitHub <https://github.com/libredte/libredte-api-client-python>`_.
|
|
39
|
+
- `Paquete en PyPI <https://pypi.org/project/libredte>`_.
|
|
40
|
+
- `Documentación <https://api-client-python.docs.libredte.cl>`_.
|