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.6.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file vulcan-api-0.0.6.tar.gz
.
File metadata
- Download URL: vulcan-api-0.0.6.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.20.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17fcd786bf962ed1e6cf0f692791d4a464f01f7095e7c2669542bdaa1354fff1 |
|
MD5 | 6aaeac32a319f1d07adb1bfce6690588 |
|
BLAKE2b-256 | 87aff8def0ff60baf8b29cf3128999e0c3287fbe5e922db0e63c8f84bb7d654e |
File details
Details for the file vulcan_api-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: vulcan_api-0.0.6-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.20.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b7a6fc93dc9c8820f03e98d2c00ef5d522c5aeda18be091bbe2bb98aa148066 |
|
MD5 | 35e6c33ae6663afbc0b58931f78d7aa2 |
|
BLAKE2b-256 | d55e53a84c727070e26c11a295e14bc9bfd1913e73833b6663351d2df316bd72 |