Skip to main content

Github CI

Citation Report Parser

citation-report provides regex patterns and structured extraction for Philippine Supreme Court report citations: Philippine Reports (Phil.), Supreme Court Reports Annotated (SCRA), and the Official Gazette (O.G.). It is used with citation-date in the LawSQL dataset.

The package isolates report-citation grammar so downstream parsers can compose the pattern without duplicating publisher variants or date handling.

Quick Example

from citation_report import Report

report = next(Report.extract_reports("250 Phil. 271, Jan. 1, 2019"))
assert report.volpubpage == "250 Phil. 271"
assert str(report.report_date) == "2019-01-01"

Documentation

See the documentation for pattern composition, extraction behavior, and development commands. The 1.0 release notes compare the current public contract with the last pushed 0.2.0 release.

Testing

uv sync --all-extras --dev
just check

Release files for citation-report 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for citation-report 1.0.1
File Size Uploaded
citation_report-1.0.1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for citation-report 1.0.1
File Interpreter ABI Platform
citation_report-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.7 kB

Release files / citation_report-1.0.1.tar.gz

Download URL citation_report-1.0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d94d0af4c160920a4758824db788f43442b53493b2cb1f34252bb477f41b98db
BLAKE2b-256 checksum
How to use checksums
31f1730b500591ec1e8017a855b8298d2a5c876619e8881d498ef9de2136be7e
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_report-1.0.1-py3-none-any.whl

Download URL citation_report-1.0.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
701339f0a2e36f4303d1db6fe689fac481c6a6e3cc0a743520929730eb31bde7
BLAKE2b-256 checksum
How to use checksums
946dbc279c994fdb147db60d3cce2a74a0147e1d45d23d946d2a3639864d5235
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 history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page