A python client for the Court Listener API
Project description
court_listener
court_listener
is a Python client library for interacting with the Court Listener API. It provides an easy way to access and query court data from the Court Listener API, which offers access to a wealth of legal information including case law, opinions, and more.
Features
- Simple API Interaction: Easily interact with the Court Listener API using a straightforward Python client.
- Prettified JSON Output: By default JSON responses are prettified for better readability. This can be changed by setting prettify to False in the class constructor.
- Error Handling: Includes built-in error handling to manage API request issues gracefully.
Installation
You can install court_listener
via pip:
pip install court-listener
Usage
Making API Requests
You can interact with different API endpoints using specialized classes provided within the apis
module. For example, to use the search functionality:
from court_listener.apis.search import Search
search_client = Search(api_key="your_api_key")
response = search_client.get_search(query="case law", start_date="2023-01-01", end_date="2023-12-31")
print(response)
Error Handling
The library includes error handling to manage potential issues with API requests. Ensure that any API errors are handled appropriately in your implementation.
Court Listener Documentation
Users should reference the Court Listener docs for more information. According to the docs, "Our APIs allow 5,000 queries per hour to authenticated users. Unauthenticated users are allowed 100 queries per day for experimentation." To read further and get your own api key, visit their site here
Contributing
Contributions are welcome! Please submit issues or pull requests on GitHub.
License
court_listener
is open-source software licensed under the MIT License. See the LICENSE file for details.
Contact
For questions or support, please contact [billyjohnsonauthor@gmail.com](mailto: billyjohnsonauthor@gmail.com).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file court_listener-0.0.1.tar.gz
.
File metadata
- Download URL: court_listener-0.0.1.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f1d2393ede0311709dbfa819d453b2fdf3d9b4a7aaaf822010f00d51d816c60 |
|
MD5 | deb218b4260484c28701cb03ee2432fa |
|
BLAKE2b-256 | b3c2eec7da40ef3ce6341c17b58182588ef86c513f7bf495276be218a94fa4ec |
File details
Details for the file court_listener-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: court_listener-0.0.1-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc2f91489cab7154e1d63e06aad393eca4261d9337ecad4e4d0817a907487353 |
|
MD5 | cfa29246ed529c34ae9ba8cc246dc02b |
|
BLAKE2b-256 | 7216b67e20150d529031fdbc3ab32d5f7f5c9bca24ade825b4862893cb992030 |