coreapi

Python client library for Core API.

Latest version: 2.3.3 registry icon
Maintenance score
0
Safety score
0
Popularity score
18
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
2.3.3 0 0 0 0 0
2.3.2 0 0 0 0 0
2.3.1 0 0 0 0 0
2.3.0 0 0 0 0 0
2.2.4 0 0 0 0 0
2.2.3 0 0 0 0 0
2.2.2 0 0 0 0 0
2.2.1 0 0 0 0 0
2.2.0 0 0 0 0 0
2.1.1 0 0 0 0 0
2.1.0 0 0 0 0 0
2.0.9 0 0 0 0 0
2.0.8 0 0 0 0 0
2.0.7 0 0 0 0 0
2.0.6 0 0 0 0 0
2.0.5 0 0 0 0 0
2.0.4 0 0 0 0 0
2.0.3 0 0 0 0 0
2.0.2 0 0 0 0 0
2.0.1 0 0 0 0 0
2.0.0 0 0 0 0 0
1.32.3 0 0 0 0 0
1.32.2 0 0 0 0 0
1.32.1 0 0 0 0 0
1.32.0 0 0 0 0 0
1.31.1 0 0 0 0 0
1.31.0 0 0 0 0 0
1.30.0 0 0 0 0 0
1.29.0 0 0 0 0 0
1.28.0 0 0 0 0 0
1.27.0 0 0 0 0 0
1.26.0 0 0 0 0 0
1.25.0 0 0 0 0 0
1.24.0 0 0 0 0 0
1.23.1 0 0 0 0 0
1.23.0 0 0 0 0 0
1.22.0 0 0 0 0 0
1.21.1 0 0 0 0 0
1.21.0 0 0 0 0 0
1.20.0 0 0 0 0 0
1.19.0 0 0 0 0 0
1.18.6 0 0 0 0 0
1.18.5 0 0 0 0 0
1.18.4 0 0 0 0 0
1.18.3 0 0 0 0 0
1.18.2 0 0 0 0 0
1.18.1 0 0 0 0 0
1.18.0 0 0 0 0 0
1.17.0 0 0 0 0 0
1.16.2 0 0 0 0 0
1.16.1 0 0 0 0 0
1.16.0 0 0 0 0 0
1.15.0 0 0 0 0 0
1.14.1 0 0 0 0 0
1.14.0 0 0 0 0 0
1.13.3 0 0 0 0 0
1.13.2 0 0 0 0 0
1.13.1 0 0 0 0 0
1.13.0 0 0 0 0 0
1.12.0 0 0 0 0 0
1.11.4 0 0 0 0 0
1.11.3 0 0 0 0 0
1.11.2 0 0 0 0 0
1.11.1 0 0 0 0 0
1.11.0 0 0 0 0 0
1.10.0 0 0 0 0 0
1.9.1 0 0 0 0 0
1.9.0 0 0 0 0 0
1.8.1 0 0 0 0 0
1.8.0 0 0 0 0 0
1.7.0 0 0 0 0 0
1.6.1 0 0 0 0 0
1.6.0 0 0 0 0 0
1.5.1 0 0 0 0 0
1.5.0 0 0 0 0 0
1.4.3 0 0 0 0 0
1.4.2 0 0 0 0 0
1.4.1 0 0 0 0 0
1.4.0 0 0 0 0 0
1.3.0 0 0 0 0 0
1.2.7 0 0 0 0 0
1.2.6 0 0 0 0 0
1.2.5 0 0 0 0 0
1.2.4 0 0 0 0 0
1.2.3 0 0 0 0 0
1.2.2 0 0 0 0 0
1.2.1 0 0 0 0 0
1.2.0 0 0 0 0 0
1.1.0 0 0 0 0 0
1.0.4 0 0 0 0 0
1.0.3 0 0 0 0 0
1.0.2 0 0 0 0 0
1.0.1 0 0 0 0 0
1.0.0 0 0 0 0 0
0.7.1 0 0 0 0 0
0.7.0 0 0 0 0 0
0.6.2 0 0 0 0 0
0.6.1 0 0 0 0 0
0.6.0 0 0 0 0 0
0.5.0 0 0 0 0 0
0.4.0 0 0 0 0 0
0.3.0 0 0 0 0 0
0.2.0 0 0 0 0 0
0.1 0 0 0 0 0

Stability
Latest release:

2.3.3 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

BSD   -   BSD License (Generic)

Is a wildcard

Not proprietary

OSI Compliant



build-status-image pypi-version

Python client library for Core API.

Requirements: Python 2.7, 3.3+


Installation

Install from PyPI, using pip:

$ pip install coreapi

Quickstart

Create a client instance:

from coreapi import Client
client = Client()

Retrieve an API schema:

document = client.get('https://api.example.org/')

Interact with the API:

data = client.action(document, ['flights', 'search'], params={
    'from': 'LHR',
    'to': 'PA',
    'date': '2016-10-12'
})

Supported formats

The following schema and hypermedia formats are currently supported, either through built-in support, or as a third-party codec:

Name Media type Notes
CoreJSON application/coreapi+json Supports both Schemas & Hypermedia.
OpenAPI ("Swagger") application/openapi+json Schema support.
JSON Hyper-Schema application/schema+json Schema support.
HAL application/hal+json Hypermedia support.

Additionally, the following plain data content types are supported:

Name Media type Notes
JSON application/json Returns Python primitive types.
Plain text text/* Returns a Python string instance.
Other media */* Returns a temporary download file.

License

Copyright © 2015-2016, Tom Christie. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.