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.0.tar.gz (6.8 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.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: citation_report-1.0.0.tar.gz
  • Upload date:
  • Size: 6.8 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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0c18cb88d3e2f837f5ba0cf4a9ad75396db6238fc41f40c2c12f5f350ccace2f
MD5 4bb7c6d3b4fcb6582b5e8ffcc50512d4
BLAKE2b-256 7112969f49e4fadb51a6ace7b7e4e5d84ab4a74c4d2467e8035ca6d45d149db9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: citation_report-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 974b3a9959a12bb95d4850430dd6f6c92a690649597558e2a4193902b6242ba9
MD5 de8e70b0b386a688b69f132a5551ba4d
BLAKE2b-256 9a6597705809eff88323486eeff924c47a7fa6966254ed347b96526fa96d3947

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