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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| dartmouth_auth-0.0.4.tar.gz | 13.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|