Skip to main content

Aeries API Python Adapter

Project description

https://img.shields.io/pypi/v/aeripy.svg https://img.shields.io/pypi/pyversions/aeripy.svg

Aeripy is a Python adapter for the Aeries Student Information System API. It’s goal is to simplify interaction with your district’s Aeries database.

This library is mostly a wrapper for the popular requests library.

Note: Aeripy is in no way affiliated with Aeries Software, Inc. This module is based on their publicly available documentation.

Installation

Aeripy is supported on Python 3.8+. The recommended way to install Aeripy is via pip.

pip install aeripy

Quickstart

The following example uses the Aeries demo database URL and API key. Both are found in their documentation.

To use this module with your own Aeries database, you will need your district’s URL and API key. See the URL and API Key section for details.

# Aeries Demo URL and API key
hostname = 'demo.aeries.net/aeries/api/'
api_key = '477abe9e7d27439681d62f4e0de1f5e1'

# In production the URL and API key should not be hardcoded.
# For example, they can be retrieved from an environment variable
hostname = os.getenv('AERIES_URL')
api_key = os.getenv('API_KEY')

Create an Aeripy instance and use that to interact with the API.

from aeripy import Aeripy

aeries = Aeripy(hostname=hostname, api_key=api_key)

# Get all staff
staff_list = aeries.get_staff()

# Print the last name of the 55th staff member
print(staff_list[55].last_Name)

# Output:
# Barrows

# Print the first name of the 55th staff member
print(staff_list[55].last_Name)

# Output:
# James

# Print the ID of the 55th staff member
print(staff_list[55].id)

# Output:
# 994748

Check out the full documentation for a list of currently supported methods and more examples.

URL and API Key

You must have access to the Security section in Aeries Web to obtain or create the API key.

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

aeripy-0.2.13.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

aeripy-0.2.13-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file aeripy-0.2.13.tar.gz.

File metadata

  • Download URL: aeripy-0.2.13.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for aeripy-0.2.13.tar.gz
Algorithm Hash digest
SHA256 54dd6a5ed8f846b5d173b6ab01942729c5b61ed1acbcbcee39c61a04211bfb87
MD5 10bf966d921764f68207c5aa7e0a3062
BLAKE2b-256 03a365dbb6384df8e202d5e9a9c8953afb7ea05899568523fc0ff11e5d0a39df

See more details on using hashes here.

Provenance

File details

Details for the file aeripy-0.2.13-py3-none-any.whl.

File metadata

  • Download URL: aeripy-0.2.13-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for aeripy-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 b4592c804b9859382d7498bba97bb63680316431aed23e4ac0bb1232277ff407
MD5 420acb6eebbf18d225c03d1b875cb9c4
BLAKE2b-256 f6d994c4d25f4141dc3e261f0af8a39c8ca8ed31858265bac9b17565fb49e128

See more details on using hashes here.

Provenance

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