JoltedMod
JoltedMod is a Python package that utilizes OpenAI's chat models to automatically generate Jupyter Notebook or Markdown-based computer science educational materials. This package can be integrated into a frontend application, such as a CLI or API, to serve educational content.
Features
- Generate Jupyter Notebook or Markdown content based on a given topic
- Highly configurable using tutorial template JSON structure
- Customizable content creator identity and target audience
- Support for GPT-3.5-turbo and other OpenAI models
Installation
To install JoltedMod, you can use pip:
pip install jolted_mod
Usage
Here's an example of how to generate a Jupyter Notebook module for a given topic:
import asyncio
from jolted_mod.main import create_notebook_module
topic = "Intro to for loops in Python"
identity = "professor of computer science"
target_audience = "first year computer science students"
is_code = True
model = "gpt-3.5-turbo"
tutorial_content = asyncio.run(create_notebook_module(topic, identity, target_audience, is_code, model))
print(tutorial_content)
Configuration
You can customize the generated content using a JSON template structure that outlines blocks. An example template file can be found in tutorial_template.json.
Development Setup
JoltedMod uses Poetry for project management. To set up a development environment, follow these steps:
- Install Poetry if you haven't already:
curl -sSL https://install.python-poetry.org | python3 -
- Clone the repository:
git clone https://github.com/yourusername/jolted_mod.git
cd jolted_mod
- Install dependencies using Poetry:
poetry install
- Activate the virtual environment:
poetry shell
Now you're ready to start contributing to JoltedMod!
Contributing
If you'd like to contribute to JoltedMod, feel free to fork the repository and submit a pull request.
License
JoltedMod is licensed under the MIT License.
Metadata
Release files for joltedmod 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| joltedmod-0.2.4.tar.gz | 596.9 kB | Without provenance | Details for joltedmod-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| joltedmod-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for joltedmod-0.2.4-py3-none-any.whl |
Total release size: 1.2 MB
Release files / joltedmod-0.2.4.tar.gz
| Download URL | joltedmod-0.2.4.tar.gz |
|---|---|
| Size | 596.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
637928d71ba7f64a7c90c0995e2bbe762fb499b32d7d03f524c051a09db6b2a2
|
|
BLAKE2b-256 checksum How to use checksums |
bb75dc0ff908174582105d63241dac683fd72c18c45707c9af5f9ff5e035eead
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.2 Darwin/22.2.0
|
Release files / joltedmod-0.2.4-py3-none-any.whl
| Download URL | joltedmod-0.2.4-py3-none-any.whl |
|---|---|
| Size | 604.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e62bcf47cd1c3b35651215380555d1ead8134ba31c0880a4efd9455845d91b65
|
|
BLAKE2b-256 checksum How to use checksums |
0f8520df0f92818549b216da33be1689995055a66228016269376b00d2986d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.2 Darwin/22.2.0
|
Security for joltedmod 0.2.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.