Skip to main content

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.

image

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)

image

image

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


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.8.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

vulcan_api-0.0.8-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file vulcan-api-0.0.8.tar.gz.

File metadata

  • Download URL: vulcan-api-0.0.8.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.1

File hashes

Hashes for vulcan-api-0.0.8.tar.gz
Algorithm Hash digest
SHA256 bc0628d157fa513696699a5ff7f8b9bb3f1519993464226521433efbd4471218
MD5 9f6052f5322f60d0976ef697ec32b871
BLAKE2b-256 df5e31a9e65e10220edba467f4256b14b5b29ccbdc1d1fcd7bc4696aeda9f230

See more details on using hashes here.

File details

Details for the file vulcan_api-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: vulcan_api-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.1

File hashes

Hashes for vulcan_api-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3d9b3dca46aa79a4cafbe3c472101bf651c13069e01ba7e6061763bb8a4fa34b
MD5 690c9c47ca22fa694ec536fcf37f2217
BLAKE2b-256 ea4d0df24eef30c969b6d16d0b2985c1e9be932431e6e9bdc5c2f5f54a34b1b5

See more details on using hashes here.

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