Dartmouth Auth
A lightweight package facilitating authentication for Dartmouth services.
Getting started
- Install the package:
pip install dartmouth-auth
- Obtain a Dartmouth API key from developer.dartmouth.edu
- 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.
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8030d79bf1d5f5df22101963aa08260030e58418a06c9c18bedf952f6edc992
|
|
| MD5 |
8a91b5bd65eb3d5472a305facd46a5bb
|
|
| BLAKE2b-256 |
538aeb9f36ef435f5786b0b9693b09c2c184d9ed29302532c11d4afd3f71daa8
|
File details
Details for the file dartmouth_auth-0.0.4-py3-none-any.whl.
File metadata
- Download URL: dartmouth_auth-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13b7fbf5b77b08afae05461859ba6449640b31c8bc59e349407430dfff8480a5
|
|
| MD5 |
7b7c58aa04d2fb171e1a88ab2ebfce77
|
|
| BLAKE2b-256 |
a0f21495f4918e91ad187c4a03a8fc620dc67770a434248d2340dd5a611254cb
|