Simple library for interacting with the Veracross API
Project description
Veracross API Python Library
Provides an easy way to pull information from the Veracross API in Python.
Rate limiting and pagination will be handled automatically.
Usage Example:
import veracross_api as v
c = {'school_short_name': 'abc',
'vcuser': 'username',
'vcpass': 'password'
}
# Create a new object with library
vc = v.Veracross(c)
# Follow the guidelines specified here: https://api.veracross.com/docs
# Specify the endpoint documented in the api or just one record from that target.
# Examples of endpoint are: facstaff, students, classes, courses, course_schedules, enrollments, etc.
# To return one record from that target, just specify the id number.
# Additional parameters are passed using a dictionary.
# Return all faculty and staff
data = vc.pull("facstaff")
print(data)
# Return one faculty and staff member by id
data = vc.pull("facstaff/99999")
print(data)
# Pass url parameters in a dictionary to the pull method.
# Return all faculty staff updated after 2019-01-01
param = {"updated_after": "2019-01-01"}
data = vc.pull("facstaff", parameters=param)
print(data)
# Return the amount of requests left in rate limiting
vc.rate_limit_remaining
# Return the amount of time left before the limit is reset
vc.rate_limit_reset
All data will be returned as a dictionary.
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
veracross_api-1.0.tar.gz
(3.0 kB
view details)
File details
Details for the file veracross_api-1.0.tar.gz
.
File metadata
- Download URL: veracross_api-1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bbd77380fc3e54bda7e6f3b49d72b2cd870abb6209a66dbf5cbf4fdc5a648e3 |
|
MD5 | 054b7e0a5260bb588786daa1f679dbd8 |
|
BLAKE2b-256 | cef4ac418903e47a23f47321dbaad15b1ea8851c837be3e5eb378d4fac7dc8c8 |