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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

citation_report-1.0.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

citation_report-1.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file citation_report-1.0.1.tar.gz.

File metadata

  • Download URL: citation_report-1.0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for citation_report-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d94d0af4c160920a4758824db788f43442b53493b2cb1f34252bb477f41b98db
MD5 b171bd7487ed9b088a2e40f6dfbd6725
BLAKE2b-256 31f1730b500591ec1e8017a855b8298d2a5c876619e8881d498ef9de2136be7e

See more details on using hashes here.

File details

Details for the file citation_report-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: citation_report-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for citation_report-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 701339f0a2e36f4303d1db6fe689fac481c6a6e3cc0a743520929730eb31bde7
MD5 73f67b6bb68cf241d0575e4e8ba765ab
BLAKE2b-256 946dbc279c994fdb147db60d3cce2a74a0147e1d45d23d946d2a3639864d5235

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page