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)
For further instructions go to the documentation.
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.1.1.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file vulcan-api-0.1.1.tar.gz
.
File metadata
- Download URL: vulcan-api-0.1.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.20.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d90c03f8e243bef3a4bbaf02611c55c3c145c737dc20dc75e075d4078c6e665 |
|
MD5 | 6e6a1392b9f8a6cb85c58cfb7676b1dd |
|
BLAKE2b-256 | bde6e5bdfe84f938ad3724cedd37326f4380625bf23f28635e66e6eefd630a22 |
File details
Details for the file vulcan_api-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: vulcan_api-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.20.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94929085b994b3952f4503a39bb34ddda4ca68e3c46524c9e58a18a7aebdc29c |
|
MD5 | f0bd6d9a13f1c5adac78998442aece24 |
|
BLAKE2b-256 | 815e7d50a12e259dacbdf2006b93ecc004cb536402ad88bd8b8e63b34edfb233 |