Skip to main content

Connect to Balystic API in your Django project

Project description

https://badge.fury.io/py/django-balystic.png https://travis-ci.org/inqbation/django-balystic.png?branch=master

Connect to Balystic API in your Django project

Quickstart

Install Django Balystic:

pip install django-balystic

Then use it in a project:

import balystic

Features

This client makes it easy to use the balystic API. Just add a couple settings:

BALYSTIC_API_TOKEN = 'mysecrettoken'
BALYSTIC_API-PATH = 'mycommunity.7dhub.com/api/'

Then create a client instance:

from balystic.client import Client
client = Client()

And use the client to perform the requests:

user_list = client.get_users()
user_detail = client.get_user_detail()
client.delete_user()

A couple of views have been defined to display information from your community.

blogs:

::

blog/ | template name = blog_list.html blog/<slug>/ | template name = blog_detail.html

qa:

::

qa/ | template_name = qa_list.html qa/<pk>/ | template_name= qa_detail.html

to modify the template, create a folder in your project template folder called ** balystic ** with the same name of the used inside the balystic app.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python runtests.py

Credits

Tools used in rendering this package:

History

0.1.0 (2016-07-28)

  • First release on PyPI.

Project details


Download files

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

Source Distribution

django-balystic-0.1.16.tar.gz (10.9 kB view details)

Uploaded Source

File details

Details for the file django-balystic-0.1.16.tar.gz.

File metadata

File hashes

Hashes for django-balystic-0.1.16.tar.gz
Algorithm Hash digest
SHA256 f6b9576e2d2341c95b893952f4240db65408e6f427d24ef882929bff0cde1918
MD5 9b5e702fe646ddab13420cc58daf1153
BLAKE2b-256 b02b78c63ec57a764f58f4ff2242d4ddac5b09c790a41dca52aa9fe6bc116bd1

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page