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.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

dartmouth_auth-0.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dartmouth_auth-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 aef3db2a12b88e7ea2715fea093e6d782360fea5abd079c863d375dc89b4ef3e
MD5 26e919b9767461380889603b0ac088d7
BLAKE2b-256 6969eff85e5899c6d8eab56f22b2ae328aa60c6b1c80431b35513dce8b13c681

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dartmouth_auth-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0faf23201b61ebd48e1f97102aebc2523be5ca3a22894652bbea2d1edd2b6255
MD5 05d1d7ef27df589dfbfb261a70511851
BLAKE2b-256 2face1a45ce6fbdb3d1bf2c6d6e409673316ae9cbddbbbd78abca5a306bebbb3

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