A lightweight package facilitating authentication for Dartmouth services.
Project description
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.
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file dartmouth_auth-0.0.3.tar.gz
.
File metadata
- Download URL: dartmouth_auth-0.0.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5b25d9638e03748b3a35a69cfe86d0bf66549333cff5c91a2fc1dcffc47c79d |
|
MD5 | 30b1cde1dbd180bc3199f697e4efd2bf |
|
BLAKE2b-256 | 2254efb273abb6222015f71460ad628fc5b546897ba1a5fe3415194f9021a149 |
File details
Details for the file dartmouth_auth-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: dartmouth_auth-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 919419d0739b8a268bdee25f87734d128c22691867028de598df286007ea0d24 |
|
MD5 | ffe224f1b13502a7213759a17e3d4836 |
|
BLAKE2b-256 | 210555fef1e86164e8105faa24ab45abac0a3f9abb55e2b509ecfac32706cf53 |