Citation Utilities
citation-utils extracts and normalizes Philippine Supreme Court citations
that include a docket, a report citation, or both. It composes
citation-date and
citation-report for the
LawSQL data pipeline.
The package is corpus-driven. It preserves the reported citation components that are present in the source rather than inferring missing case metadata. It helps locate and normalize references; it does not authenticate a document or prove the correctness of an OCR reading. Retain source text and location for legal review.
Quick Example
from citation_utils import Citation
raw = "G.R. No. 147033, April 30, 2003, 374 Phil. 1"
citation = Citation.extract_citation(raw)
assert citation is not None
assert citation.model_dump() == {
"cat": "gr",
"num": "147033",
"date": "2003-04-30",
"phil": "374 phil. 1",
"scra": None,
"offg": None,
}
Documentation
See the documentation for source-review limits, extraction and counting behavior, supported docket types, SQLite-oriented output, and local development checks. The 1.0 release history compares the stable release with the previously pushed 0.5.0 package.
Boundaries
citation-dateowns date grammar and date normalization.citation-reportowns reporter grammar and report normalization.citation-utilsowns docket grammar, joins dockets to reports, and provides database-ready citation records.
Administrative Matter and Bar Matter references can name rules rather than
decisions. The default extraction flow excludes only known statutory serials
using an exact canonical match; pass exclude_docket_rules=False only when the
calling workflow needs those rule references as evidence.
Metadata
Release files for citation-utils 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| citation_utils-1.0.1.tar.gz | 26.9 kB | Without provenance | Details for citation_utils-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| citation_utils-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for citation_utils-1.0.1-py3-none-any.whl |
Total release size: 66.1 kB
Release files / citation_utils-1.0.1.tar.gz
| Download URL | citation_utils-1.0.1.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b71f0e96084b3b3e833b88a9378371d97da81c270aaead438014efc5c963f1b
|
|
BLAKE2b-256 checksum How to use checksums |
b7c0bf270718d6da06eef62decaea81365856bb304d7125285c767c3c5ac69f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / citation_utils-1.0.1-py3-none-any.whl
| Download URL | citation_utils-1.0.1-py3-none-any.whl |
|---|---|
| Size | 39.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97a0d30e8357363bf925934bca5f6d5cf4fac14e77cf44c4028fe396337207f5
|
|
BLAKE2b-256 checksum How to use checksums |
76195282c5c5a7db76959faff3dd305e97538ebc3779116188e967a28f8d0630
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for citation-utils 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.