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
import json
secrets =json.loads(open('config.json').read())
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file veracross-client-0.0.4.tar.gz.
File metadata
- Download URL: veracross-client-0.0.4.tar.gz
- Upload date:
- Size: 42.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b172e8bd01d57e55a3cbc99588d92e3eadd7a8ed6a1e7685158442917ea1f948
|
|
| MD5 |
a27a4275bc1d5a1093b672eb2cbc3fdf
|
|
| BLAKE2b-256 |
b7febc8b865757b33e9ba9e002123028a8e8e9222a4b9cdc2df53fe39d7c1ead
|
File details
Details for the file veracross_client-0.0.4-py3-none-any.whl.
File metadata
- Download URL: veracross_client-0.0.4-py3-none-any.whl
- Upload date:
- Size: 42.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
291e9cd14da6d66c21a80d263bf1baf743ca2bd02a173d30108fcbb62cdfffb1
|
|
| MD5 |
814d55abe9297e9fe7505e7f0cb6d798
|
|
| BLAKE2b-256 |
dff95b6c845ca44a9740f3fd8c41a2761e006b36c106d8564447517158769d03
|