Skip to main content

corpus-writer

Github CI

Update pre-existing opinion file (in markdown front-matter) with statutes, citations, short title.

The decisions / statutes directories needs to be configured via an .env file, see just dumpenv for an

Steps

  1. Delete the statutes database since this may have been previously updated via their original yaml files
  2. The lack of a statutes database will cause a rebuild of the same

Run the following python command:

from corpus_writer import get_opinion_files_by_year, update_markdown_opinion_file

for i in range(1900, 1946):
    for file in get_opinion_files_by_year(year=i):
        update_markdown_opinion_file(file=file)

Note that for cases like am/97-9-282-rtc/1998-04-22/main-123.md where it takes too long to determine citations (likely a recursive regex error), a timer of 5 seconds is used by update_markdown_opinion_file.

Release files for corpus-writer 0.0.5

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

Source distribution (sdist)

Source distribution for corpus-writer 0.0.5
File Size Uploaded
corpus_writer-0.0.5.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for corpus-writer 0.0.5
File Interpreter ABI Platform
corpus_writer-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / corpus_writer-0.0.5.tar.gz

Download URL corpus_writer-0.0.5.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9b112369a20d5c52c5f5ff00ecc1af2f76145068e5022d5c2dc5e2d5a990cdcf
BLAKE2b-256 checksum
How to use checksums
347e4e02378d42bb5d8b4a2b279b3b6e4b05cc6418ccfca9d0c6698901927274
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.6 Darwin/23.0.0

Release files / corpus_writer-0.0.5-py3-none-any.whl

Download URL corpus_writer-0.0.5-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95c973362200f233c2f9b7263a3c1c77ea44adf2ecab5a185641bbfa166c7425
BLAKE2b-256 checksum
How to use checksums
47016a5cd7fd7ce18086e79b53eae613360b6ed91ad27246eb336e105062a328
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.6 Darwin/23.0.0

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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