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 Provenance Actions
dartmouth_auth-0.0.4.tar.gz 13.9 kB Without provenance Details for dartmouth_auth-0.0.4.tar.gz

Built distribution (wheel)

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

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

Security for dartmouth_auth 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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