Copy github examples to your local environment without needing to clone the entire repository.
Project description
Instructor Examples
Copy github examples to your local environment without needing to clone the entire repository.
- Created by Daniel Mouris
- PyPI package: https://pypi.org/project/instructor_examples/
- Free software: MIT License
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.
- Live site: https://dgmouris.github.io/instructor_examples/
- Preview locally:
just docs-serve(serves at http://localhost:8000) - Build:
just docs-build
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16d7189b6b88eec566eae9965028f58e02f4b7c9eeb3f18dc4362398e6bdf747
|
|
| MD5 |
1399d59ade51f871e429cdebfb949db5
|
|
| BLAKE2b-256 |
52376ca79f53a53a846a995f947545a36ad1669889973a8132d1a3341acc6ed7
|
Provenance
The following attestation bundles were made for instructor_examples-0.2.2.tar.gz:
Publisher:
publish.yml on dgmouris/instructor_examples
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
instructor_examples-0.2.2.tar.gz -
Subject digest:
16d7189b6b88eec566eae9965028f58e02f4b7c9eeb3f18dc4362398e6bdf747 - Sigstore transparency entry: 1125341056
- Sigstore integration time:
-
Permalink:
dgmouris/instructor_examples@fd1aee0412213a12b51333f51d56d274c77dafbd -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/dgmouris
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fd1aee0412213a12b51333f51d56d274c77dafbd -
Trigger Event:
push
-
Statement type:
File details
Details for the file instructor_examples-0.2.2-py3-none-any.whl.
File metadata
- Download URL: instructor_examples-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5591d4d99c0f16b839716e6837ff7d8bc0537fb8564474a59548fa9c3fa954a
|
|
| MD5 |
dd3c4f7ce4aa932091a474b9ec2f59f1
|
|
| BLAKE2b-256 |
a9b42d18de3e21f92fcbc7b5d1b7f6996f8735261154b655d7c9784eb320acb1
|
Provenance
The following attestation bundles were made for instructor_examples-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on dgmouris/instructor_examples
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
instructor_examples-0.2.2-py3-none-any.whl -
Subject digest:
a5591d4d99c0f16b839716e6837ff7d8bc0537fb8564474a59548fa9c3fa954a - Sigstore transparency entry: 1125341085
- Sigstore integration time:
-
Permalink:
dgmouris/instructor_examples@fd1aee0412213a12b51333f51d56d274c77dafbd -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/dgmouris
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fd1aee0412213a12b51333f51d56d274c77dafbd -
Trigger Event:
push
-
Statement type: