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.4.tar.gz (13.9 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.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dartmouth_auth-0.0.4.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.21

File hashes

Hashes for dartmouth_auth-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c8030d79bf1d5f5df22101963aa08260030e58418a06c9c18bedf952f6edc992
MD5 8a91b5bd65eb3d5472a305facd46a5bb
BLAKE2b-256 538aeb9f36ef435f5786b0b9693b09c2c184d9ed29302532c11d4afd3f71daa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dartmouth_auth-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 13b7fbf5b77b08afae05461859ba6449640b31c8bc59e349407430dfff8480a5
MD5 7b7c58aa04d2fb171e1a88ab2ebfce77
BLAKE2b-256 a0f21495f4918e91ad187c4a03a8fc620dc67770a434248d2340dd5a611254cb

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