API for Vulcan e-journal
Project description
Vulcan API
Description
Python API for Vulcan e-journal system. It's based on the mobile app, so you need to register it as a mobile device on the site.
Installation
You can install vulcan-api
by pip
pip install vulcan-api
Or manually
pip install flit
git clone https://bitbucket.org/kapi2289/vulcan-api.git
cd vulcan-api
flit install
Usage
First, you need to register API as a mobile device on https://uonetplus.vulcan.net.pl/(symbol)
from vulcan import Vulcan
import json
# Vulcan.create(token, symbol, pin)
cert = Vulcan.create('3S1GFG0P', 'gminaglogow', '059671')
# Save certificate to a file
with open('cert.json') as f:
f.write(json.dumps(cert))
When you have API already registered, you can now use it
from vulcan import Vulcan
import json
# Load certificate from a file
with open('cert.json') as f:
cert = json.loads(f.read())
# Create a client
client = Vulcan(cert)
API automatically selects first pupil, if you have more than one pupil you can get all of them, and set the default
users = client.users()
user = users[0]
client.change_user(user)
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
vulcan-api-0.0.7.tar.gz
(5.3 kB
view hashes)
Built Distribution
vulcan_api-0.0.7-py3-none-any.whl
(11.0 kB
view hashes)
Close
Hashes for vulcan_api-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96350d3bc7cab792ada9e398a93d044cef465262d8eb2b9e721abfe1d43bfb5b |
|
MD5 | 42f93718bbcd48d85902f0c0c7771ff4 |
|
BLAKE2b-256 | 5e430fa6c6f4b2a4e59502fab72728096fda6f6c4211a5df7d2f710fe6609ce5 |