Skip to main content

Getting started

pip install nyt-docket

Using nyt-docket

Command-line interface

docket grants 2015
docket orders 2015
docket opinions 2015

Demo app

Run the demo app.

python -m docket.demo

Modules

Use the docket loader manually from within your Python script.

Grants (new cases)

Grants are cases that have been granted certiorari and will be heard by the Court in this term. The most interesting thing about a grant, besides its existence, is the question the Court will be deciding. This is associated as a separate PDF file on the Court’s site but the parser attaches it to the case as a text blob.

from docket import grants

g = grants.Load()
g.scrape()

for case in g.cases:
    print case.__dict__

Slip opinions (decisions)

Slip opinions are decisions in cases the Court has either heard arguments on or has made a procedural decision on. These opinions are not final, but it’s the fastest way to know when the Court has acted on a case. The most important feature of a slip opinion is the opinion text, which is a separate PDF file. This is associated with the opinion as a hyperlink.

from docket import slipopinions

o = slipopinions.Load()
o.scrape()

for case in o.cases:
    print case.__dict__

Orders (all kinds of things)

Orders are the daily business of the Court. Denials of certiorari as well as various other procedural motions are resolved in the orders list. This plugin grabs the long orders list itself as a PDF link and then parses it out into individual cases. WARNING: The individual cases rely on regex and tomfoolery. The methods for parsing them are fragile, so YMMV.

from docket import orders

z = orders.Load()
z.scrape()
z.parse()

for order in z.orders:
    print order.__dict__

for case in z.cases:
    print "%s\t%s\t%s" % (case.docket, case.orders_type, case.casename)

Metadata

Release files for nyt-docket 0.0.16

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

Source distribution (sdist)

Source distribution for nyt-docket 0.0.16
File Size Uploaded Provenance
nyt-docket-0.0.16.tar.gz 7.1 kB Without provenance Details

Release files / nyt-docket-0.0.16.tar.gz

Download URL nyt-docket-0.0.16.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d1f263bd39dc2607331a4b0636d0b310fd46fd38884082d6206420f0361fccd2
BLAKE2b-256 checksum
How to use checksums
4e49dafbad5391acff857400f628cb5f97e801d01eccc03cf598d180a15c478d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nyt-docket 0.0.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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