A wrapper for the Oyez API
Project description
Oyez API Wrapper
This library is used to access the API of oyez.org and parse the data into easily usable chunks. All included functions are included below.
Importing the Library & Making an court_case Object
import oyez_api_wrapper
case_obj = oyez_api_wrapper.court_case("2015", "15-278")
The library can be imported and objects can be created using the above syntax. The first argument is the "Year" and the other argument is the "Docket NO.". This information is available on oyez.org under any case.
Class Functions
get_case_judges will return all judges that decided the case.
get_case_facts will return the facts of the case item. The HTML parameter is provided for pretty printing it later.
download_court_json will download the case JSON to the current directory.
get_judge_decisions will return a dictionary of the justices' as keys and their decision (majority/minority).
get_ruling will return a tuple with majority vote, minority vote, winning party, decision type, and a reference to the decision page.
get_basic_info will return a tuple with the case name and both parties in order.
get_legal_question will return the legal question of the case. The HTML parameter is provided for pretty printing it later.
get_conclusion will return the conclusion of the case. The HTML parameter is provided for pretty printing it later.
get_lower_court will return the previous court the case was at before reaching the Supreme Court.
get_audio_links will return a dictionary that is contains the title as the key and the value as the link to listen to the audio available.
The owner of this repo has no relation with oyez.org!
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oyez_api_wrapper-0.0.3.tar.gz.
File metadata
- Download URL: oyez_api_wrapper-0.0.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0d1f0f8a661422a0b4d3c7ddfb7be3365172392bb928b9fd8e2eb64e4dd6c18
|
|
| MD5 |
e1230407d6888282689566218531acb0
|
|
| BLAKE2b-256 |
bde34b589b521efe6c0db370abab0812baf35e08e21ece8c58e9a413ce707ec9
|
File details
Details for the file oyez_api_wrapper-0.0.3-py3-none-any.whl.
File metadata
- Download URL: oyez_api_wrapper-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd644378f397ac077f7eb7a6cc1d3ac7cdd2e39870ab84124ad9f5c9716bdf42
|
|
| MD5 |
25edf369daeead16c3d2ac43bc594ef5
|
|
| BLAKE2b-256 |
f48efae2bb575c2e8f183ec7ddb69375187d9a4df9e0a10bb7debd21c6ed7cc5
|