8000 GitHub - raptoni/ris-API-wrapper: A wrapper for the ris API in Python.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

raptoni/ris-API-wrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ris API wrapper in Python

License Contributions Twitter Follow Donate

RIS is a plattform by the Austrian government giving open access to legal codes and court rulings. This project creates a wrapper for their API in Python. The wrapper is currently being developed for version 2.5 of the API but will be updated to version 2.6 in the future. You can get more information about the API at data.gv.at

The benefits of this wrapper as opposed to using the API itself are:

  • Argument validation to make sure the API returns the results you expect
  • Proper error handling to deal with known issues of the api
  • Return data in a sensible structure
  • Sort your results as you wish

Example queries

The following examples can help you get started:

# Print all Rechtssatz numbers for a specific decision.
from risApiWrapper.Judikatur import Justiz

wrapper_instance = Justiz(
    case_number="5Ob234/20b",
    show_entscheidungstexte=False)

for rechtssatz in wrapper_instance:
    print(rechtssatz["rechtssatz_number"])
# Print all case numbers of decisions the High Constitutional Court has decided in a specific period.
from risApiWrapper.Judikatur import Vfgh

wrapper_instance = Vfgh(
    decision_date_from = "2021-01-01",
    decision_date_to = "2021-12-31",
    show_rechtssaetze =
5898
 False)

for decision in wrapper_instance:
    print(decision["case_number"])

Structure

TODO

Contribution

Contributions are welcome! If this wrapper helped you, please also consider donating to keep this project running. Donations will be split among all contributors.

About

A wrapper for the ris API in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0