Skip to main content

Python wrapper for communicating with the Veracross API

Project description

veracross-client

This project provides a Python wrapper for the Veracross API. It enables Veracross administrators to access, manipulate, and manage data programmatically with Python.

Installation

Install the latest version of veracross-client by running

pip install --upgrade veracross-client

Getting Started

To begin, you need to create an OAuth Application in Veracross using the documentation found at Veracross Community: OAuth Applications and Veracross Overview. Be sure to set the scopes to cover the data you would like to access.

After creating an OAuth Application and setting its scopes, create a file named config.json similar to sample_config.json provided in this repository. It should look like:

{
    "client_id": "OAuth application client id",
    "client_secret": "OAuth application client secret",
    "school_route": "school route that appears in Veracross URL"
}

To create a client for connecting to Veracross API, use the following code:

import veracross_client as vc

client = vc.VeracrossClient(school_route=secrets['school_route'],
                            client_id=secrets['client_id'],
                            client_secret=secrets['client_secret'],
                            scopes=["_scope 1_","_scope 2_",...])

Be sure to replace the list of scopes with the scopes added to the OAuth Application. The veracross-client wrapper will return an error if a function with inappropriate scopes is used.

Once the client is initiated, use the client's methods to access individual endpoints of the Veracross API. All GET methods will return a dataframe.

Contributing

This wrapper is still in development. Methods for individual endpoints are not guaranteed to work. Please post issues with the name of the method that is not working along with a description of the error being encountered.

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-client-0.0.3.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veracross_client-0.0.3-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file veracross-client-0.0.3.tar.gz.

File metadata

  • Download URL: veracross-client-0.0.3.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for veracross-client-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c070242d27017a05513500c50a59b6639cbb5cb263e60279bd6e4b3acea4db36
MD5 7278d0d8eb95b377b5f15ba0ffec925d
BLAKE2b-256 9f4aa8ae1ca3627508bc794680562f89aae728f661856bba7e0a990ff2e75f57

See more details on using hashes here.

File details

Details for the file veracross_client-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for veracross_client-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 714d3d0f5139ae7015052aa462176da7fc8bdf3f4b6cb9e3ae38fda3fa9dabe0
MD5 830e81efc1dcab4c2d150dc79bfa2b1d
BLAKE2b-256 b6f4c2beba2813149a17e03193a39294938ac02c214fc7385dc6325ea6e00d68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page