Skip to main content

Copy github examples to your local environment without needing to clone the entire repository.

Project description

Instructor Examples

PyPI version

Copy github examples to your local environment without needing to clone the entire repository.

Installation

Install with pip:

pip install instructor_examples

Usage

One off copying of a single example:

Specify the --repo and --out-folder flags to copy a specific folder from a GitHub repository to a local folder:

instructor_examples folder_in_repo_url --repo=https://github.com//somerepository/ --out-folder=./your_local_folder

The default of the --out-folder flag is the current working directory, so if you want to copy the folder to your current location, you can omit that flag.

Running a course with a public Repo

Get students to created a instructor_examples_settings.json file in the folder where they want the examples copied to, with the following content:

{
    "repo": "GITHUB_REPO_URL",
}

Features

Copies files and folders from GitHub to a local environment.

Documentation

Documentation is built with Zensical and deployed to GitHub Pages.

API documentation is auto-generated from docstrings using mkdocstrings.

Docs deploy automatically on push to main via GitHub Actions. To enable this, go to your repo's Settings > Pages and set the source to GitHub Actions.

Development

To set up for local development:

# Clone your fork
git clone git@github.com:your_username/instructor_examples.git
cd instructor_examples

# Install in editable mode with live updates
uv tool install --editable .

This installs the CLI globally but with live updates - any changes you make to the source code are immediately available when you run instructor_examples.

Run tests:

uv run pytest

Run quality checks (format, lint, type check, test):

just qa

Author

Instructor Examples was created in 2026 by Daniel Mouris.

Built with Cookiecutter and the audreyfeldroy/cookiecutter-pypackage project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

instructor_examples-0.2.0.tar.gz (55.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

instructor_examples-0.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file instructor_examples-0.2.0.tar.gz.

File metadata

  • Download URL: instructor_examples-0.2.0.tar.gz
  • Upload date:
  • Size: 55.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for instructor_examples-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b8dadcd11ac58e4b997874d4af69e91615474d17f976f6fbef44461757254301
MD5 28fc2424618ab0d203cc3d87492e77f3
BLAKE2b-256 a71a1c2beb8dfab04f139e988f6cf6f7a99c8b0d96eb50890afe1e44278e0b87

See more details on using hashes here.

Provenance

The following attestation bundles were made for instructor_examples-0.2.0.tar.gz:

Publisher: publish.yml on dgmouris/instructor_examples

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file instructor_examples-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for instructor_examples-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f7add20bfa649b955f30411eaa2b97cb793fdf13530838d26c76dccc59dc620
MD5 f86f41660f7ebcfe52326615f0bcc108
BLAKE2b-256 e1c9eb497746a85b319f247c1d454c1152770b4f06d5acae5cdeaae90afba231

See more details on using hashes here.

Provenance

The following attestation bundles were made for instructor_examples-0.2.0-py3-none-any.whl:

Publisher: publish.yml on dgmouris/instructor_examples

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page