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.

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-0.4.0.tar.gz (6.7 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-0.4.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: citation_report-0.4.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d6e898b25ac598acccd58ce89420a1adf211c50d812f5d527d4a9a2b66f89f41
MD5 260a9e0df8f59fd912f35c4f12bee41c
BLAKE2b-256 eac3d3be91569e04feca4a2f356107568c43f1ea6c6a1348ad2c98ec59fbba3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: citation_report-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3813ebd2d8e68a6577b14d8e18da9755e4e2b6a07baba7f12b317dfe5aca29fc
MD5 64f1801d83b7ae41b62357bec95ead0f
BLAKE2b-256 8253b86d358aebea5bc642c42b992c65e317c160287af8b265cb88633a9f0f02

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