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
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

veracross-client-0.0.4.tar.gz (42.8 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.4-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

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

Hashes for veracross-client-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b172e8bd01d57e55a3cbc99588d92e3eadd7a8ed6a1e7685158442917ea1f948
MD5 a27a4275bc1d5a1093b672eb2cbc3fdf
BLAKE2b-256 b7febc8b865757b33e9ba9e002123028a8e8e9222a4b9cdc2df53fe39d7c1ead

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for veracross_client-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 291e9cd14da6d66c21a80d263bf1baf743ca2bd02a173d30108fcbb62cdfffb1
MD5 814d55abe9297e9fe7505e7f0cb6d798
BLAKE2b-256 dff95b6c845ca44a9740f3fd8c41a2761e006b36c106d8564447517158769d03

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