This release is a pre-release and may not be stable for production use.
yorick: a project skeleton / template / boilerplate tool
Yorick is a work in progress. Many of the features described here are not yet complete. Currently, only the basics of the construct and create-skeleton commands work.
Whenever you start a programming project (or a book, or anything you do that involves files on a computer), you often end up doing the same initial steps, without much variation.
Yorick allows you to automate this by creating “skeletons” - templates that you can “construct” to create a boilerplate project. In the process of constructing, a skeleton can prompt the user for variables (project name, for instance), and have those variables substituted appropriately into the skeleton.
A collection of skeletons for different types of projects is called a “closet”. Yorick automatically gives you a default closet to keep all of your own skeletons in, and the ability to add other people’s closets alongside it. You can keep your closet to yourself or open it up to the world on GitHub (a bit like dotfiles).
Installation
You need to have Python installed. (If you’re not a Python programmer, don’t worry, you can create and use yorick skeletons without writing a single line of Python.)
If you use Linux or OS X, you probably already have it. Run python --version to make sure it’s version 2.7 - if not, upgrade.
Run pip install yorick. (If you don’t have pip, run easy_install pip first.)
Usage
These are just usage examples to show you what the command line interface looks like. If you want to dive in, check out the docs on ReadTheDocs.
Create a new skeleton
$ yorick create-skeleton eggs Constructing... Done. You can now edit your skeleton at ~/.yorick/__default__/eggs/ $ my-favorite-editor ~/.yorick/__default__/eggs/
Construct a project from a skeleton
$ yorick construct eggs Enter a name for your project. project_name> spam Constructing... Done. $ find . ./spam/ ./spam/__init__.py ./README.md $ cat README.md # spam Insert a readme for spam here.
Install closets from other people…
$ yorick install-closet fred https://github.com/fred/closet.git Closet cloned to ~/.yorick/fred/ $ yorick update-closet fred Updating... fred was already up to date.
…and use their skeletons
$ yorick construct fred.more_eggs Enter a name for your project. project_name> spam Constructing... Done.
To Do
Pre- and post-construction scripts
In-skeleton
Global
Metadata
Release files for yorick 0.1pre
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 |
|---|---|---|---|---|
| yorick-0.1pre.tar.gz | 5.3 kB | Without provenance | Details for yorick-0.1pre.tar.gz |
Release files / yorick-0.1pre.tar.gz
| Download URL | yorick-0.1pre.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ed8827018a159ad417e376405ac5c8df44d0979349cb98e75f4d4b7379324a9
|
|
BLAKE2b-256 checksum How to use checksums |
e9de8bc6bdcd5b1756de5218a634c62f5848d5ba715e948a0f58ecb92b69c9f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for yorick 0.1pre
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.