Skip to main content

A lightweight package facilitating authentication for Dartmouth services.

Project description

Dartmouth Auth

A lightweight package facilitating authentication for Dartmouth services.

Getting started

  1. Install the package:
pip install dartmouth-auth
  1. Obtain a Dartmouth API key from developer.dartmouth.edu
  2. Store the API key as an environment variable called DARTMOUTH_API_KEY:
export DARTMOUTH_API_KEY=<your_key_here>

Using the library

Obtain a JSON Web Token (JWT):

import dartmouth_auth


my_jwt = dartmouth_auth.get_jwt()

You can then use my_jwt for any authenticated Dartmouth services that require a JWT.

Inspect get_jwt()'s docstring for more detailed usage information.

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

dartmouth_auth-0.0.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

dartmouth_auth-0.0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file dartmouth_auth-0.0.3.tar.gz.

File metadata

  • Download URL: dartmouth_auth-0.0.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for dartmouth_auth-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c5b25d9638e03748b3a35a69cfe86d0bf66549333cff5c91a2fc1dcffc47c79d
MD5 30b1cde1dbd180bc3199f697e4efd2bf
BLAKE2b-256 2254efb273abb6222015f71460ad628fc5b546897ba1a5fe3415194f9021a149

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dartmouth_auth-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 919419d0739b8a268bdee25f87734d128c22691867028de598df286007ea0d24
MD5 ffe224f1b13502a7213759a17e3d4836
BLAKE2b-256 210555fef1e86164e8105faa24ab45abac0a3f9abb55e2b509ecfac32706cf53

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