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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dartmouth_auth-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fdf81ca6c055c346e02400c1f0d79c079bfa4c58056aa9e0588455ae95a16cdb
MD5 a85f11b469ff0544556b341d74531bcd
BLAKE2b-256 fe16f027d5c8fc65be8471b2b84ca0409d5961b3f85dc67f53ec761e99671e9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dartmouth_auth-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for dartmouth_auth-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 598a46ad9c13ace35da2d5ff2f84855a25d77383d55579c91ac92dd2ffdcb149
MD5 8ecdfe36aba03c77913dcfbd92f310c4
BLAKE2b-256 97da8678ceb29a1235614c47099be7d0612e5465d93a8248297c163e5a1249f8

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