Giter Site home page Giter Site logo

oldp-sdk-python's Introduction

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

[email protected]

oldp-sdk-python's People

Contributors

malteos avatar

Watchers

James Cloos avatar Jagrut Kosti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.