jagrutkosti / oldp-sdk-python

Python SDK for accessing the Open Legal Data API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oldp-api

With the Open Legal Data API you can access various data from the legal domain, e.g. law text or case files. The data may be used for semantic analysis or to create statistics. For more information visit our website.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Package version: 0.1.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/openlegaldata/oldp-sdk-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/openlegaldata/oldp-sdk-python.git)

Then import the package:

import oldp_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import oldp_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import oldp_client
from oldp_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
oldp_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# oldp_client.configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = oldp_client.CasesApi()
data = oldp_client.Case() # Case | 

try:
    api_response = api_instance.cases_create(data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CasesApi->cases_create: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://de.openlegaldata.io/api

Class Method HTTP request Description
CasesApi cases_create POST /cases/
CasesApi cases_delete DELETE /cases/{id}/
CasesApi cases_list GET /cases/
CasesApi cases_partial_update PATCH /cases/{id}/
CasesApi cases_read GET /cases/{id}/
CasesApi cases_update PUT /cases/{id}/
CitiesApi cities_create POST /cities/
CitiesApi cities_delete DELETE /cities/{id}/
CitiesApi cities_list GET /cities/
CitiesApi cities_partial_update PATCH /cities/{id}/
CitiesApi cities_read GET /cities/{id}/
CitiesApi cities_update PUT /cities/{id}/
CountriesApi countries_create POST /countries/
CountriesApi countries_delete DELETE /countries/{id}/
CountriesApi countries_list GET /countries/
CountriesApi countries_partial_update PATCH /countries/{id}/
CountriesApi countries_read GET /countries/{id}/
CountriesApi countries_update PUT /countries/{id}/
CourtsApi courts_create POST /courts/
CourtsApi courts_delete DELETE /courts/{id}/
CourtsApi courts_list GET /courts/
CourtsApi courts_partial_update PATCH /courts/{id}/
CourtsApi courts_read GET /courts/{id}/
CourtsApi courts_update PUT /courts/{id}/
LawBooksApi law_books_create POST /law_books/
LawBooksApi law_books_delete DELETE /law_books/{id}/
LawBooksApi law_books_list GET /law_books/
LawBooksApi law_books_partial_update PATCH /law_books/{id}/
LawBooksApi law_books_read GET /law_books/{id}/
LawBooksApi law_books_update PUT /law_books/{id}/
LawsApi laws_create POST /laws/
LawsApi laws_delete DELETE /laws/{id}/
LawsApi laws_list GET /laws/
LawsApi laws_partial_update PATCH /laws/{id}/
LawsApi laws_read GET /laws/{id}/
LawsApi laws_update PUT /laws/{id}/
StatesApi states_create POST /states/
StatesApi states_delete DELETE /states/{id}/
StatesApi states_list GET /states/
StatesApi states_partial_update PATCH /states/{id}/
StatesApi states_read GET /states/{id}/
StatesApi states_update PUT /states/{id}/
TokenAuthApi token_auth_create POST /token-auth/

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header

Author

api@openlegaldata.io

About

Python SDK for accessing the Open Legal Data API


Languages

Language:Python 99.5%Language:Shell 0.5%