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
Hashes for court_listener-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc2f91489cab7154e1d63e06aad393eca4261d9337ecad4e4d0817a907487353 |
|
MD5 | cfa29246ed529c34ae9ba8cc246dc02b |
|
BLAKE2b-256 | 7216b67e20150d529031fdbc3ab32d5f7f5c9bca24ade825b4862893cb992030 |