ode-alfa 0.1.0__py3-none-any.whl

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.
ode_alfa/__init__.py ADDED
@@ -0,0 +1,7 @@
1
+ """ode-alfa: offline CPF and CNPJ (numeric and alphanumeric) check-digit validation."""
2
+
3
+ from . import cnpj, cpf
4
+ from ._core import Validation
5
+
6
+ __version__ = "0.1.0"
7
+ __all__ = ["Validation", "__version__", "cnpj", "cpf"]
ode_alfa/__main__.py ADDED
@@ -0,0 +1,3 @@
1
+ from .cli import main
2
+
3
+ raise SystemExit(main())
ode_alfa/_core.py ADDED
@@ -0,0 +1,111 @@
1
+ """Local mathematical validation of Brazilian identifiers (CPF and CNPJ).
2
+
3
+ Identifiers are always handled as text: CNPJ may contain letters since July 2026 and
4
+ both documents may start with zeros. Nothing here touches the network.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import re
10
+ from collections.abc import Sequence
11
+ from dataclasses import dataclass, field
12
+ from typing import Literal
13
+
14
+ Kind = Literal["cpf", "cnpj"]
15
+
16
+ Reason = Literal[
17
+ "OK",
18
+ "MISSING",
19
+ "EXPECTED_ASCII_TEXT",
20
+ "INVALID_FORMAT",
21
+ "REPEATED_SEQUENCE",
22
+ "DV_MISMATCH",
23
+ ]
24
+
25
+ _RAW = {"cpf": re.compile(r"[0-9]{11}"), "cnpj": re.compile(r"[A-Z0-9]{12}[0-9]{2}")}
26
+ _MASK = {
27
+ "cpf": re.compile(r"[0-9]{3}\.[0-9]{3}\.[0-9]{3}-[0-9]{2}"),
28
+ "cnpj": re.compile(r"[A-Z0-9]{2}\.[A-Z0-9]{3}\.[A-Z0-9]{3}/[A-Z0-9]{4}-[0-9]{2}"),
29
+ }
30
+ _BASE = {"cpf": re.compile(r"[0-9]{9}"), "cnpj": re.compile(r"[A-Z0-9]{12}")}
31
+ _WEIGHTS: dict[Kind, tuple[Sequence[int], Sequence[int]]] = {
32
+ "cpf": (range(10, 1, -1), range(11, 1, -1)),
33
+ "cnpj": ((5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2), (6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2)),
34
+ }
35
+
36
+
37
+ @dataclass(frozen=True, slots=True)
38
+ class Validation:
39
+ """Structured result of a validation.
40
+
41
+ ``normalized`` holds the full identifier. It is left out of ``repr``/``str`` so that logging a
42
+ result does not leak a CPF; read the attribute explicitly when you need it.
43
+ """
44
+
45
+ valid: bool
46
+ normalized: str | None = field(repr=False)
47
+ reason: Reason
48
+ expected_dv: str | None = None
49
+
50
+ def __bool__(self) -> bool:
51
+ return self.valid
52
+
53
+
54
+ def _text(value: object) -> str:
55
+ if not isinstance(value, str) or not value.isascii():
56
+ raise ValueError("EXPECTED_ASCII_TEXT")
57
+ return value
58
+
59
+
60
+ def normalize(value: object, kind: Kind) -> str:
61
+ """Return the identifier without mask, upper case.
62
+
63
+ Accepts raw text or the exact official mask; anything else raises ``ValueError``.
64
+ """
65
+ s = _text(value).strip().upper()
66
+ if _RAW[kind].fullmatch(s):
67
+ return s
68
+ if _MASK[kind].fullmatch(s):
69
+ return re.sub(r"[./-]", "", s)
70
+ raise ValueError("INVALID_FORMAT")
71
+
72
+
73
+ def _digit(base: str, weights: Sequence[int]) -> str:
74
+ # CNPJ rule: character value = ASCII - 48 (0-9 keep their value, A-Z become 17-42).
75
+ r = sum((ord(c) - 48) * w for c, w in zip(base, weights, strict=True)) % 11
76
+ return str(0 if r < 2 else 11 - r)
77
+
78
+
79
+ def calculate_dv(base: object, kind: Kind) -> str:
80
+ """Return the two check digits for a 9-character CPF base or a 12-character CNPJ base."""
81
+ s = _text(base).upper()
82
+ if not _BASE[kind].fullmatch(s):
83
+ raise ValueError("INVALID_BASE")
84
+ w1, w2 = _WEIGHTS[kind]
85
+ d1 = _digit(s, w1)
86
+ return d1 + _digit(s + d1, w2)
87
+
88
+
89
+ def validate(value: object, kind: Kind) -> Validation:
90
+ """Validate format and check digits. Never raises for bad input: the reason explains it."""
91
+ if value is None:
92
+ return Validation(False, None, "MISSING")
93
+ try:
94
+ s = normalize(value, kind)
95
+ except ValueError as exc:
96
+ ascii_error = str(exc) == "EXPECTED_ASCII_TEXT"
97
+ reason: Reason = "EXPECTED_ASCII_TEXT" if ascii_error else "INVALID_FORMAT"
98
+ return Validation(False, None, reason)
99
+ dv = calculate_dv(s[:-2], kind)
100
+ if len(set(s)) == 1:
101
+ return Validation(False, s, "REPEATED_SEQUENCE", dv)
102
+ ok = s[-2:] == dv
103
+ return Validation(ok, s, "OK" if ok else "DV_MISMATCH", dv)
104
+
105
+
106
+ def format_id(value: object, kind: Kind) -> str:
107
+ """Apply the official mask. Formatting does not imply validity."""
108
+ s = normalize(value, kind)
109
+ if kind == "cpf":
110
+ return f"{s[:3]}.{s[3:6]}.{s[6:9]}-{s[9:]}"
111
+ return f"{s[:2]}.{s[2:5]}.{s[5:8]}/{s[8:12]}-{s[12:]}"
ode_alfa/cli.py ADDED
@@ -0,0 +1,55 @@
1
+ """Command line: ``ode-alfa {validate,dv,format} {cpf,cnpj} VALUE``.
2
+
3
+ With VALUE ``-`` the values are read one per line from stdin.
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ import sys
10
+ from collections.abc import Iterable, Sequence
11
+
12
+ from . import __version__, cnpj, cpf
13
+
14
+
15
+ def _values(value: str) -> Iterable[str]:
16
+ if value == "-":
17
+ for line in sys.stdin:
18
+ yield line.rstrip("\n")
19
+ else:
20
+ yield value
21
+
22
+
23
+ def main(argv: Sequence[str] | None = None) -> int:
24
+ parser = argparse.ArgumentParser(
25
+ prog="ode-alfa",
26
+ description="Validação matemática offline de CPF e CNPJ (numérico e alfanumérico).",
27
+ epilog="Use '-' como VALOR para ler um identificador por linha da entrada padrão "
28
+ "(evita expor CPF no histórico do shell).",
29
+ )
30
+ parser.add_argument("--version", action="version", version=f"ode-alfa {__version__}")
31
+ parser.add_argument("operation", choices=["validate", "dv", "format"])
32
+ parser.add_argument("kind", choices=["cpf", "cnpj"])
33
+ parser.add_argument("value", metavar="VALOR")
34
+ args = parser.parse_args(argv)
35
+ doc = cpf if args.kind == "cpf" else cnpj
36
+ status = 0
37
+ for value in _values(args.value):
38
+ try:
39
+ if args.operation == "validate":
40
+ result = doc.validate(value)
41
+ print(result.reason) # never echo the identifier itself
42
+ if not result.valid:
43
+ status = max(status, 1)
44
+ elif args.operation == "dv":
45
+ print(doc.calculate_dv(value))
46
+ else:
47
+ print(doc.format(value))
48
+ except ValueError as exc:
49
+ print(str(exc))
50
+ status = 2
51
+ return status
52
+
53
+
54
+ if __name__ == "__main__":
55
+ raise SystemExit(main())
ode_alfa/cnpj.py ADDED
@@ -0,0 +1,33 @@
1
+ """CNPJ public API."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from . import _core
6
+ from ._core import Validation
7
+
8
+ __all__ = ["calculate_dv", "format", "is_valid", "normalize", "validate"]
9
+
10
+
11
+ def calculate_dv(base: object) -> str:
12
+ """Return the two check digits of a CNPJ base. Raises ``ValueError`` for an invalid base."""
13
+ return _core.calculate_dv(base, "cnpj")
14
+
15
+
16
+ def normalize(value: object) -> str:
17
+ """Return the CNPJ without mask. Raises ``ValueError`` for invalid text or format."""
18
+ return _core.normalize(value, "cnpj")
19
+
20
+
21
+ def validate(value: object) -> Validation:
22
+ """Return a structured :class:`Validation` (never raises for bad input)."""
23
+ return _core.validate(value, "cnpj")
24
+
25
+
26
+ def is_valid(value: object) -> bool:
27
+ """``True`` only for a well-formed CNPJ with matching check digits."""
28
+ return _core.validate(value, "cnpj").valid
29
+
30
+
31
+ def format(value: object) -> str:
32
+ """Apply the official CNPJ mask. Formatting does not imply validity."""
33
+ return _core.format_id(value, "cnpj")
ode_alfa/cpf.py ADDED
@@ -0,0 +1,33 @@
1
+ """CPF public API."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from . import _core
6
+ from ._core import Validation
7
+
8
+ __all__ = ["calculate_dv", "format", "is_valid", "normalize", "validate"]
9
+
10
+
11
+ def calculate_dv(base: object) -> str:
12
+ """Return the two check digits of a CPF base. Raises ``ValueError`` for an invalid base."""
13
+ return _core.calculate_dv(base, "cpf")
14
+
15
+
16
+ def normalize(value: object) -> str:
17
+ """Return the CPF without mask. Raises ``ValueError`` for invalid text or format."""
18
+ return _core.normalize(value, "cpf")
19
+
20
+
21
+ def validate(value: object) -> Validation:
22
+ """Return a structured :class:`Validation` (never raises for bad input)."""
23
+ return _core.validate(value, "cpf")
24
+
25
+
26
+ def is_valid(value: object) -> bool:
27
+ """``True`` only for a well-formed CPF with matching check digits."""
28
+ return _core.validate(value, "cpf").valid
29
+
30
+
31
+ def format(value: object) -> str:
32
+ """Apply the official CPF mask. Formatting does not imply validity."""
33
+ return _core.format_id(value, "cpf")
ode_alfa/py.typed ADDED
File without changes
@@ -0,0 +1,141 @@
1
+ Metadata-Version: 2.4
2
+ Name: ode-alfa
3
+ Version: 0.1.0
4
+ Summary: Offline CPF and CNPJ (numeric and alphanumeric) check-digit validation
5
+ Author: Yury Cavalcante
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/YUCAVALCANTE/ode-alfa
8
+ Project-URL: Issues, https://github.com/YUCAVALCANTE/ode-alfa/issues
9
+ Project-URL: Changelog, https://github.com/YUCAVALCANTE/ode-alfa/blob/main/CHANGELOG.md
10
+ Project-URL: Toolkit, https://github.com/YUCAVALCANTE/open-data-engineering-toolkit
11
+ Keywords: cpf,cnpj,cnpj-alfanumerico,brasil,validation,data-quality
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.11
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Provides-Extra: dev
27
+ Requires-Dist: pytest>=8; extra == "dev"
28
+ Requires-Dist: ruff>=0.6; extra == "dev"
29
+ Requires-Dist: mypy>=1.11; extra == "dev"
30
+ Dynamic: license-file
31
+
32
+ # ode-alfa
33
+
34
+ [![CI](https://github.com/YUCAVALCANTE/ode-alfa/actions/workflows/ci.yml/badge.svg)](https://github.com/YUCAVALCANTE/ode-alfa/actions/workflows/ci.yml)
35
+ ![Python](https://img.shields.io/badge/python-3.11%E2%80%933.14-3776AB?logo=python&logoColor=white)
36
+ ![Licença](https://img.shields.io/badge/licen%C3%A7a-Apache--2.0-blue)
37
+ ![Status](https://img.shields.io/badge/status-em%20desenvolvimento-orange)
38
+
39
+ **Validação matemática offline de CPF e CNPJ, inclusive o CNPJ alfanumérico.**
40
+ Primeiro pacote do [Open Data Engineering Toolkit](https://github.com/YUCAVALCANTE/open-data-engineering-toolkit).
41
+
42
+ > **Status:** em desenvolvimento (ciclo de 07/12 a 20/12/2026). Ainda não publicado no PyPI;
43
+ > instale a partir do código. A API pode mudar até a v0.1.0.
44
+
45
+ ## Por que existe
46
+
47
+ Desde julho de 2026 o CNPJ pode ter letras (a Receita Federal anunciou a primeira inscrição
48
+ alfanumérica, `00.000.000/E08G-12`, em 31/07/2026). Códigos que removem tudo que não é dígito ou
49
+ guardam o CNPJ como número inteiro passam a destruir dados sem erro. O `ode-alfa` trata CPF e CNPJ
50
+ sempre como **texto**, calcula e confere os dígitos verificadores pelo módulo 11 oficial e explica
51
+ por que um valor foi rejeitado.
52
+
53
+ - Sem dependências e sem acesso à rede: a validação é só matemática.
54
+ - Não corrige identificadores, não reconstrói zeros perdidos e não diz a quem um número pertence.
55
+ - Um DV correto **não** prova que o CPF/CNPJ existe ou está ativo.
56
+ - No CNPJ alfanumérico, o módulo 11 não detecta a troca de um caractere por outro cujo valor
57
+ difere em múltiplo de 11 (por exemplo `6`↔`A`, `7`↔`B`, `8`↔`C`, `9`↔`D`, `A`↔`L`). É uma
58
+ propriedade da regra oficial, não do pacote; o teste `test_troca_de_um_caractere` a documenta.
59
+
60
+ ## Instalação
61
+
62
+ ```bash
63
+ pip install ode-alfa
64
+ ```
65
+
66
+ ## Uso
67
+
68
+ ```python
69
+ from ode_alfa import cpf, cnpj
70
+
71
+ cpf.calculate_dv("123456789") # "09"
72
+ cpf.is_valid("123.456.789-09") # True
73
+
74
+ cnpj.calculate_dv("00000000E08G") # "12"
75
+ cnpj.is_valid("00.000.000/E08G-12") # True
76
+ cnpj.format("00000000E08G12") # "00.000.000/E08G-12"
77
+ cnpj.normalize("00.000.000/e08g-12") # "00000000E08G12"
78
+
79
+ r = cnpj.validate("00.000.000/E08G-13")
80
+ r.valid, r.reason, r.expected_dv # (False, "DV_MISMATCH", "12")
81
+ ```
82
+
83
+ `validate` nunca lança exceção para entrada ruim; o motivo vem em `reason`:
84
+
85
+ | `reason` | Significado |
86
+ |---|---|
87
+ | `OK` | Formato e dígitos corretos |
88
+ | `MISSING` | `None` |
89
+ | `EXPECTED_ASCII_TEXT` | Não é texto, ou tem caracteres fora do ASCII (ex.: dígitos de largura total) |
90
+ | `INVALID_FORMAT` | Nem o formato cru nem a máscara oficial exata |
91
+ | `REPEATED_SEQUENCE` | Todos os caracteres iguais (ex.: `111.111.111-11`) |
92
+ | `DV_MISMATCH` | Dígitos verificadores não conferem; `expected_dv` traz os corretos |
93
+
94
+ `calculate_dv`, `normalize` e `format` lançam `ValueError` para entrada inválida.
95
+
96
+ ## Linha de comando
97
+
98
+ ```bash
99
+ ode-alfa validate cnpj 00.000.000/E08G-12 # OK (código de saída 0)
100
+ ode-alfa dv cnpj 00000000E08G # 12
101
+ ode-alfa format cpf 12345678909 # 123.456.789-09
102
+ cat cpfs.txt | ode-alfa validate cpf - # um por linha, sem expor CPF no histórico
103
+ ```
104
+
105
+ A CLI imprime só o motivo, nunca o identificador. Saída: 0 válido, 1 inválido, 2 erro de entrada.
106
+ Detalhes em [docs/privacidade.md](docs/privacidade.md).
107
+
108
+ ## Como o DV é calculado
109
+
110
+ Módulo 11: `S = Σ valor × peso`, `r = S mod 11`, DV = 0 se `r < 2`, senão `11 − r`. No CNPJ,
111
+ `valor = código ASCII − 48` (0–9 mantêm o valor; A–Z valem 17–42). O DV1 entra na base antes do
112
+ cálculo do DV2.
113
+
114
+ | | Pesos |
115
+ |---|---|
116
+ | CPF DV1 / DV2 | 10…2 / 11…2 |
117
+ | CNPJ DV1 | 5 4 3 2 9 8 7 6 5 4 3 2 |
118
+ | CNPJ DV2 | 6 5 4 3 2 9 8 7 6 5 4 3 2 |
119
+
120
+ O exemplo oficial da Receita Federal (`12.ABC.345/01DE-35`, somas 459 e 424) é verificado passo a
121
+ passo em `tests/test_conformidade_rfb.py`.
122
+
123
+ ## Comparação com o validate-docbr
124
+
125
+ Os dois concordam em todos os dígitos verificadores, inclusive no CNPJ alfanumérico, e têm
126
+ desempenho parecido. O `ode-alfa` se diferencia pelo contrato de entrada (motivo estruturado,
127
+ máscara estrita, recusa de `int`) e pela CLI que não expõe o identificador. Casos, números e
128
+ conclusão em [docs/comparacao-validate-docbr.md](docs/comparacao-validate-docbr.md).
129
+
130
+ ## Roadmap
131
+
132
+ - **v0.1** (05/12/2026): núcleo, CLI, conformidade com o exemplo oficial da Receita, comparação com o `validate-docbr`, revisão de privacidade, publicação.
133
+ - **v0.2:** adaptadores de lote CSV/Parquet, relatório de motivos e benchmark com o cadastro público da Receita.
134
+ - **v0.3:** scanner de código (casts numéricos e regex destrutivas) e auditoria de colisões.
135
+
136
+ Privacidade: não use CPF real em issues, testes ou exemplos. Ver [SECURITY.md](SECURITY.md).
137
+
138
+ ---
139
+
140
+ *English:* offline check-digit validation for Brazilian CPF and CNPJ, including the alphanumeric
141
+ CNPJ introduced in 2026. Pure Python, no dependencies, typed, never treats identifiers as integers.
@@ -0,0 +1,13 @@
1
+ ode_alfa/__init__.py,sha256=XUOKoaJXjvXnhsdkNdtGoU_uV-EUL7TH3kvPROnV29o,221
2
+ ode_alfa/__main__.py,sha256=k1ocEWawweo1qCJWNFAAvyxz3tcY13dzvCenHszij30,48
3
+ ode_alfa/_core.py,sha256=z7bt2jxj-zwxKD9ZkX06xn9WDao4qrMw6Q9ExqD29T0,3693
4
+ ode_alfa/cli.py,sha256=IBdDs1_e04zQmMdp66YXna7IEIGvCCLRhx_rPbCY4uQ,1784
5
+ ode_alfa/cnpj.py,sha256=89EQI-bBozeI1tnLngFC473r8VyCfcy_E_Xuh20Ym2E,1019
6
+ ode_alfa/cpf.py,sha256=HMcnp1zdjGQAxTlpHoCcrd_BcGIXH08Ju5-uPa_lE2U,1009
7
+ ode_alfa/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ ode_alfa-0.1.0.dist-info/licenses/LICENSE,sha256=pPmYHYe36SASZGg6n0BaSujObwSEaT5brEWaeXTFv8I,11346
9
+ ode_alfa-0.1.0.dist-info/METADATA,sha256=lNbt87u-yQnTAxOs7SGucRkWpFoJi-VzPsxX5qX8Ik4,6290
10
+ ode_alfa-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
11
+ ode_alfa-0.1.0.dist-info/entry_points.txt,sha256=MDPCYvrk3m-EcHjKHHIms4TxsHgAT2y5K_7yTYFxC3s,47
12
+ ode_alfa-0.1.0.dist-info/top_level.txt,sha256=eAjT4FXvf_PSqYbx0rG0ZiFa7qkgZJRDCi7sxVdcAxI,9
13
+ ode_alfa-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ode-alfa = ode_alfa.cli:main
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Yury Cavalcante
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
@@ -0,0 +1 @@
1
+ ode_alfa