Skip to main content

dads5250

Shared utilities for DADS 5250: Generative AI in Practice (Northeastern University, MIE). Small, dependency light helpers that every course lab imports so the notebooks stay short and consistent: API setup, pretty output boxes, token and cost helpers, and inline quizzes.

Install

Once published to PyPI:

pip install dads5250

Pinned install straight from the course repo (works today, reproducible):

pip install "git+https://github.com/mdehghani86/DADS5250-GenAI.git@v0.2.0#subdirectory=utils"

Optional Gemini support:

pip install "dads5250[gemini]"

What is inside

Module Purpose
api setup_openai, setup_gemini, check_api, default model names, key resolution (Colab Secret then env then hidden prompt)
display pp, pretty_print, show_response, compare_responses, lab_pill and other styled output boxes
cost token counting and cost estimate helpers
quiz lightweight inline multiple choice quizzes for labs

Usage

from dads5250 import setup_openai, pp, DEFAULT_MINI_MODEL

client = setup_openai()
resp = client.chat.completions.create(
    model=DEFAULT_MINI_MODEL,
    messages=[{"role": "user", "content": "Say hello"}],
)
pp(resp.choices[0].message.content, title="Model reply")

Versioning

Labs pin a released tag (for example @v0.2.0) so a notebook downloaded from Canvas keeps working even if the repository changes later. Bump the version in pyproject.toml, tag the commit, and the labs move to the new version only when their install line is updated.

Metadata

Release files for dads5250 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dads5250 0.3.0
File Size Uploaded Provenance Actions
dads5250-0.3.0.tar.gz 12.1 kB Without provenance Details for dads5250-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 24.2 kB

Release files / dads5250-0.3.0.tar.gz

Download URL dads5250-0.3.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1e32f8cb5a6db15824c2f8116b154bae9af47e0eb4759f1f9a4270338d3b4782
BLAKE2b-256 checksum
How to use checksums
5809213ca2bf656b58050d7683e979485c5c2212c9326ee97a30061a846e0c9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / dads5250-0.3.0-py3-none-any.whl

Download URL dads5250-0.3.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f58c96363563ca06226f3ae5acb0f2583a86acb6bdf1063449338226f5fbbf9
BLAKE2b-256 checksum
How to use checksums
b7aa3b645b8c250e946e81efe1fbbcf1e2a1afe98d2e0e3b83d29cca5c88f7cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for dads5250 0.3.0

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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

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