tributus-engine 0.5.1__tar.gz → 0.5.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tributus-engine
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Tributus Engine - Brazilian Tax Engine and Calculator Library
5
5
  Author-email: Mackilem Van der Laan <mack.vdl@gmail.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
 
22
22
  Pacote Python da biblioteca **Tributus Engine** para cálculo tributário brasileiro.
23
23
 
24
- **Versão:** 0.5.1
24
+ **Versão:** 0.5.2
25
25
  **Requer:** Python ≥ 3.10, Pydantic ≥ 2.13.4
26
26
  **Licença:** AGPL v3
27
27
 
@@ -96,13 +96,10 @@ payload = {
96
96
  result = engine.calculate_from_dict(payload)
97
97
 
98
98
  # Retorno simplificado (detailed=False)
99
- print(result.to_dict())
100
99
  # {'amounts': {'ipi': '108.00', 'icms': '184.96', 'pis': '9.54', 'cofins': '42.93'},
101
100
  # 'messages': [],
102
101
  # 'total': '345.43'}
103
102
 
104
- # Retorno completo (detailed=True)
105
- print(result.to_dict(detailed=True))
106
103
  ```
107
104
 
108
105
  ### 2) Estrutura de `taxes` suportada
@@ -2,7 +2,7 @@
2
2
 
3
3
  Pacote Python da biblioteca **Tributus Engine** para cálculo tributário brasileiro.
4
4
 
5
- **Versão:** 0.5.1
5
+ **Versão:** 0.5.2
6
6
  **Requer:** Python ≥ 3.10, Pydantic ≥ 2.13.4
7
7
  **Licença:** AGPL v3
8
8
 
@@ -77,13 +77,10 @@ payload = {
77
77
  result = engine.calculate_from_dict(payload)
78
78
 
79
79
  # Retorno simplificado (detailed=False)
80
- print(result.to_dict())
81
80
  # {'amounts': {'ipi': '108.00', 'icms': '184.96', 'pis': '9.54', 'cofins': '42.93'},
82
81
  # 'messages': [],
83
82
  # 'total': '345.43'}
84
83
 
85
- # Retorno completo (detailed=True)
86
- print(result.to_dict(detailed=True))
87
84
  ```
88
85
 
89
86
  ### 2) Estrutura de `taxes` suportada
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tributus-engine"
7
- version = "0.5.1"
7
+ version = "0.5.2"
8
8
  description = "Tributus Engine - Brazilian Tax Engine and Calculator Library"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tributus-engine
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Tributus Engine - Brazilian Tax Engine and Calculator Library
5
5
  Author-email: Mackilem Van der Laan <mack.vdl@gmail.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
 
22
22
  Pacote Python da biblioteca **Tributus Engine** para cálculo tributário brasileiro.
23
23
 
24
- **Versão:** 0.5.1
24
+ **Versão:** 0.5.2
25
25
  **Requer:** Python ≥ 3.10, Pydantic ≥ 2.13.4
26
26
  **Licença:** AGPL v3
27
27
 
@@ -96,13 +96,10 @@ payload = {
96
96
  result = engine.calculate_from_dict(payload)
97
97
 
98
98
  # Retorno simplificado (detailed=False)
99
- print(result.to_dict())
100
99
  # {'amounts': {'ipi': '108.00', 'icms': '184.96', 'pis': '9.54', 'cofins': '42.93'},
101
100
  # 'messages': [],
102
101
  # 'total': '345.43'}
103
102
 
104
- # Retorno completo (detailed=True)
105
- print(result.to_dict(detailed=True))
106
103
  ```
107
104
 
108
105
  ### 2) Estrutura de `taxes` suportada
File without changes