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.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for dartmouth_auth-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 598a46ad9c13ace35da2d5ff2f84855a25d77383d55579c91ac92dd2ffdcb149 |
|
MD5 | 8ecdfe36aba03c77913dcfbd92f310c4 |
|
BLAKE2b-256 | 97da8678ceb29a1235614c47099be7d0612e5465d93a8248297c163e5a1249f8 |