Skip to main content

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.

Metadata

Release files for dartmouth_auth 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dartmouth_auth 0.0.4
File Size Uploaded
dartmouth_auth-0.0.4.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dartmouth_auth 0.0.4
File Interpreter ABI Platform
dartmouth_auth-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / dartmouth_auth-0.0.4.tar.gz

Download URL dartmouth_auth-0.0.4.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c8030d79bf1d5f5df22101963aa08260030e58418a06c9c18bedf952f6edc992
BLAKE2b-256 checksum
How to use checksums
538aeb9f36ef435f5786b0b9693b09c2c184d9ed29302532c11d4afd3f71daa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.21

Release files / dartmouth_auth-0.0.4-py3-none-any.whl

Download URL dartmouth_auth-0.0.4-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13b7fbf5b77b08afae05461859ba6449640b31c8bc59e349407430dfff8480a5
BLAKE2b-256 checksum
How to use checksums
a0f21495f4918e91ad187c4a03a8fc620dc67770a434248d2340dd5a611254cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.21

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page