scjn 0.5.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.
- scjn/__init__.py +78 -0
- scjn/api.py +987 -0
- scjn/cache.py +253 -0
- scjn/catalog.py +188 -0
- scjn/cli.py +129 -0
- scjn/discovery.py +360 -0
- scjn/header.py +83 -0
- scjn/release.py +1320 -0
- scjn/state.py +161 -0
- scjn/text.py +257 -0
- scjn-0.5.0.dist-info/METADATA +108 -0
- scjn-0.5.0.dist-info/RECORD +15 -0
- scjn-0.5.0.dist-info/WHEEL +5 -0
- scjn-0.5.0.dist-info/entry_points.txt +2 -0
- scjn-0.5.0.dist-info/top_level.txt +1 -0
scjn/__init__.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""Client for the SCJN's SCOW JSON API (`scjn.api`), the federal-law
|
|
2
|
+
catalogue's own algebra (`scjn.catalog`), per-instrument crawl state
|
|
3
|
+
(`scjn.state`), the provenance header a crawl writes to every snapshot
|
|
4
|
+
(`scjn.header`), and the disk-first readers (`scjn.release`) for the four
|
|
5
|
+
GitHub releases this package feeds -- `scjn-leyes` and, since issues #220,
|
|
6
|
+
#222 and #277, the id-keyed `scjn-reglamentos`/`scjn-lineamientos`/
|
|
7
|
+
`scjn-tratados` -- re-exported
|
|
8
|
+
here as the package's own entry points.
|
|
9
|
+
|
|
10
|
+
The SCJN is not an official source of legal text — the Diario Oficial de la
|
|
11
|
+
Federación remains that; this package's own crawl is a convenience corpus
|
|
12
|
+
its consolidated view makes possible, not a replacement for it.
|
|
13
|
+
|
|
14
|
+
This is Fase 3 of a larger split (issue #206/#209). `codNota` linking —
|
|
15
|
+
matching a snapshot to the DOF `codNota` that produced it — stays one layer
|
|
16
|
+
up, in the downstream package that depends on this one: a `codNota` is a DOF
|
|
17
|
+
concept, so that seam sits there, calling the readers below (this package
|
|
18
|
+
never imports back — see `tests/test_boundary.py`). No id-keyed
|
|
19
|
+
collection has such linking at all yet (issue #220's own Scope, unchanged by
|
|
20
|
+
#222 and #277) — a future issue adds it for reglamentos, lineamientos,
|
|
21
|
+
tratados and laws alike.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
from scjn.release import (
|
|
25
|
+
AssetNotCached,
|
|
26
|
+
SinTextoEnSCJN,
|
|
27
|
+
download_scjn_leyes_assets,
|
|
28
|
+
download_scjn_leyes_catalog,
|
|
29
|
+
download_scjn_leyes_corpus,
|
|
30
|
+
download_scjn_leyes_index,
|
|
31
|
+
download_scjn_lineamientos_assets,
|
|
32
|
+
download_scjn_lineamientos_corpus,
|
|
33
|
+
download_scjn_lineamientos_index,
|
|
34
|
+
download_scjn_reglamentos_assets,
|
|
35
|
+
download_scjn_reglamentos_corpus,
|
|
36
|
+
download_scjn_reglamentos_index,
|
|
37
|
+
download_scjn_tratados_assets,
|
|
38
|
+
download_scjn_tratados_corpus,
|
|
39
|
+
download_scjn_tratados_index,
|
|
40
|
+
iter_current_federal_laws,
|
|
41
|
+
iter_current_lineamientos,
|
|
42
|
+
iter_current_reglamentos,
|
|
43
|
+
iter_current_tratados,
|
|
44
|
+
local_lineamientos_ids,
|
|
45
|
+
local_reglamentos_ids,
|
|
46
|
+
local_slugs,
|
|
47
|
+
local_tratados_ids,
|
|
48
|
+
markdown_de_snapshot,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
__version__ = "0.5.0"
|
|
52
|
+
|
|
53
|
+
__all__ = [
|
|
54
|
+
"download_scjn_leyes_corpus",
|
|
55
|
+
"download_scjn_leyes_index",
|
|
56
|
+
"download_scjn_leyes_catalog",
|
|
57
|
+
"iter_current_federal_laws",
|
|
58
|
+
"iter_current_reglamentos",
|
|
59
|
+
"iter_current_lineamientos",
|
|
60
|
+
"iter_current_tratados",
|
|
61
|
+
"markdown_de_snapshot",
|
|
62
|
+
"download_scjn_leyes_assets",
|
|
63
|
+
"local_slugs",
|
|
64
|
+
"download_scjn_reglamentos_index",
|
|
65
|
+
"download_scjn_reglamentos_corpus",
|
|
66
|
+
"download_scjn_reglamentos_assets",
|
|
67
|
+
"local_reglamentos_ids",
|
|
68
|
+
"download_scjn_lineamientos_index",
|
|
69
|
+
"download_scjn_lineamientos_corpus",
|
|
70
|
+
"download_scjn_lineamientos_assets",
|
|
71
|
+
"local_lineamientos_ids",
|
|
72
|
+
"download_scjn_tratados_index",
|
|
73
|
+
"download_scjn_tratados_corpus",
|
|
74
|
+
"download_scjn_tratados_assets",
|
|
75
|
+
"local_tratados_ids",
|
|
76
|
+
"AssetNotCached",
|
|
77
|
+
"SinTextoEnSCJN",
|
|
78
|
+
]
|