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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: instructor_examples-0.2.1.tar.gz
  • Upload date:
  • Size: 55.3 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.1.tar.gz
Algorithm Hash digest
SHA256 41e047519b99e30a9943621d719fa36f1c8561058a77297a4dbd3569c8b54c4f
MD5 c9b871b25d4ffa4d21f67fb31b2d7e36
BLAKE2b-256 a5b04bd21888e0f745ef03bd4afac02ec6069b368054cc62344af01b95157546

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for instructor_examples-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a699e1fd79028b44573a50a06f3f7406b68b2b73bccc85ad9ef10e40d69a8c71
MD5 c39ffe5240db5cd005cce2f3c354bf0d
BLAKE2b-256 cdf73b5ceea88f117347f138d72505bb9006b1a3e763792ddd0733ff45e016c1

See more details on using hashes here.

Provenance

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