Skip to main content

Django CoreAPI client

Project description

Django CoreAPI client

Wrapper around coreapi.Client for convenient usage in Django projects.

Usage

Define settings:

COREAPI_CLIENT = {
    'example_server': {
        'SCHEMA_URL': 'https://example.com/api/schema/',
        'AUTH_USERNAME': 'client-example',
        'AUTH_PASSWORD': 'password-example',
    },
}

Initialize client:

from django_coreapi_client import Client

client = Client('example_server')

Access API endpoints according to the schema, e.g.

users = client.api.users.list()
project = client.api.users.projects.read(id=7)
new_project = client.api.users.projects.create(name='xxx', user_id=3)

Et cetera.

Hope it’s useful. 73!

1.1.1 (2018-06-06)

  • #movingtogitlab

1.1.0 (2017-08-20)

  • Loosening Django version.

1.0.1 (2017-08-11)

  • Performance improvement.

1.0.0 (2017-08-11)

  • Releasing v1.0.0 to PyPi.

0.2.1 (2017-08-11)

  • README.

0.2.0 (2017-08-11)

  • Syntactic sugar.

0.1.0 (2017-08-10)

  • Django CoreAPI client v0.1.0 released.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-coreapi-client, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django_coreapi_client-1.1.1-py2.py3-none-any.whl (3.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size django-coreapi-client-1.1.1.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page