A project constructor, diff generator, and patcher rolled into one
Project description
project_patcher
project_patcher
is a project constructor, diff generator, and patcher in one module to better improve and fix the reproducibility of other work.
Project Files
'Project Files' indicate a method of grabbing a file(s) from some location to put into the working directory. Each project file can specify a relative directory to the working directory of where to extract to.
The following project file types are supported:
- osf - An Open Science Framework project
- git - A git repository
- url - An arbitrary url to obtain a file via a GET request
Project Metadata Specification
The project_metadata.json
generated with each project looks like so:
{
"files": [
{
"type": "xxx", // Must be "osf", "url", or "git"
"dir": "<path>" // The directory relative to the working directory to put the file in (default: the working directory)
}
{
"type": "osf",
"id": "<project_id>" // The five alphanumeric character OSF project identifier
},
{
"type": "url",
"url": "<url>" // A url to query a file from via a GET request
},
{
"type": "git",
"repository": "<git_repo>", // The git repository to checkout
"branch|tag|commit": "<branch_name>|<tag_name>|<commit_id>" // The location to checkout to (default: the default branch when cloning the repository)
}
]
}
Commands
The following commands can be accessed from the command line interface:
project_patcher init [--import_metadata/-I <path_or_url>]
- Initializes a new project to be patched either from the metadata in the current directory, an import, or provided via the builder.
- Optional Parameters:
--import_metadata/-I
- Takes in a path or url to the metadata JSON to build the project for
project_patcher output
- Generates any patches from the original files and clones the new files to an output directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
project_patcher-0.1.0.tar.gz
(15.9 kB
view hashes)
Built Distribution
Close
Hashes for project_patcher-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b33b285bd3ba5712c62f6a7da0f12cdebaa62317a87cf1a5b91830fb6c6b2078 |
|
MD5 | c30b321d433127c9eb660f877b409c3d |
|
BLAKE2b-256 | 5dfeff7579b1411551b910e7a189391025a1e8c958394ff4e8459d3ac0e70b1d |