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",
}

Then they can run the following command to copy the examples for each lesson:

instructor_examples example_folder_in_repo_url

Demo

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.2.tar.gz (1.7 MB 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.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: instructor_examples-0.2.2.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • 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.2.tar.gz
Algorithm Hash digest
SHA256 16d7189b6b88eec566eae9965028f58e02f4b7c9eeb3f18dc4362398e6bdf747
MD5 1399d59ade51f871e429cdebfb949db5
BLAKE2b-256 52376ca79f53a53a846a995f947545a36ad1669889973a8132d1a3341acc6ed7

See more details on using hashes here.

Provenance

The following attestation bundles were made for instructor_examples-0.2.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for instructor_examples-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5591d4d99c0f16b839716e6837ff7d8bc0537fb8564474a59548fa9c3fa954a
MD5 dd3c4f7ce4aa932091a474b9ec2f59f1
BLAKE2b-256 a9b42d18de3e21f92fcbc7b5d1b7f6996f8735261154b655d7c9784eb320acb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for instructor_examples-0.2.2-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