Skip to main content

Simple library for interacting with the Veracross API

Project description

Veracross API v3 Python Library

Provides an easy way to pull information from the Veracross API v3 using Python.

Rate limiting and pagination will be handled automatically.

Usage Example:

import veracross_api3 as v

c = {
    "school": "abcd",
    "client_id": "123456789012345678901234567890",
    "client_secret": "12345678901234567890123456789012345678901234567890",
    "scopes": ['staff_faculty:read',
                        'students:read',
                        'staff_faculty:list',
                        'students:list']
}

# Create a new object with library
vc = v.Veracross(c)

# Follow the guidelines specified here:https://api-docs.veracross.com/docs
# Specify the endpoint documented in the api or just one record from that target.
# Examples of endpoint are: staff_faculty, students, 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("staff_faculty")
print(data)

# Return one faculty and staff member by id
data = vc.pull("staff_faculty/99999")
print(data)

# Pass url parameters in a dictionary to the pull method.
# Return all faculty staff updated after 2019-01-01
param = {"faculty_type": "12"}
data = vc.pull("staff_faculty", 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_api3-0.0.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

veracross_api3-0.0.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file veracross_api3-0.0.1.tar.gz.

File metadata

  • Download URL: veracross_api3-0.0.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.2

File hashes

Hashes for veracross_api3-0.0.1.tar.gz
Algorithm Hash digest
SHA256 90e0caa08bb382b0cb97f1f7660c9d69047e4a3dac4eedc28956ac2d29db61ea
MD5 a251cf68c9204fdfde38cf224c4c2760
BLAKE2b-256 194ee996276a0c9750a13867ffdf7cee82a02270ae7e0256558aad662b1d9a75

See more details on using hashes here.

File details

Details for the file veracross_api3-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for veracross_api3-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac674482714ed42aad0f5b2c3ea6dae51ae61e7b75933a7b256a262d4cd9be34
MD5 b707582a84085f54c4151963460eab44
BLAKE2b-256 52e520e05470b42801283fb7853d8389814852592a8ff891351ce40bffde5767

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