Connect to Balystic API in your Django project
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-balystic-0.1.29.tar.gz
.
File metadata
- Download URL: django-balystic-0.1.29.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 247e50bb794b2b557934ae6c56e221f521a95c9e43c1fd55528f3802819d2336 |
|
MD5 | d45413421fcfbefbb9aa3f767c169b98 |
|
BLAKE2b-256 | 131af227acfaa2af16376e59ae65a3f552392f8c6485b16c55879070e89e44dc |