Skip to main content

A helper for constructing, managing, and patching projects

Project description

jammies

jammies is a helper for constructing, managing, and patching projects 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)
            "extra": {
                // An object containing user-defined data
            }
        }
        {
            "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)
        }
    ],
    "ignore": [
        // A list of file patterns to ignore instead of patching if it exists.
        "xxx"
    ],
    "overwrite": [
        // A list of file patterns to overwrite instead of patching if it exists.
        "xxx"
    ],
    "extra": {
        // An object containing user-defined data
    }
}

Commands

The following commands can be accessed from the command line interface:

  • jammies patch 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.
  • jammies patch clean [--import_metadata/-I <path_or_url>]
    • Initializes a clean workspace 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.
  • jammies patch src [--import_metadata/-I <path_or_url>]
    • Initializes a patched workspace 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.
  • jammies patch output
    • Generates any patches from the original files and clones the new files to an output directory.

Contributing

jammies is built for Python 3.8+ while being developed on 3.11.

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

jammies-0.5.0.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jammies-0.5.0-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

Details for the file jammies-0.5.0.tar.gz.

File metadata

  • Download URL: jammies-0.5.0.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for jammies-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f715a9259d60b37367ec1eecc80da66f68d6b54ddb18ee50e7c583f5a0e99c39
MD5 edf25f1885e6b36acabb6239d9542e04
BLAKE2b-256 38ce5d9c820a9f2ba0641406251ac9093f765a5b6bdf7db8a4f72bd7eac56279

See more details on using hashes here.

File details

Details for the file jammies-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: jammies-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 41.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for jammies-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6697b67876acad97896cbae5b83051413d111d5dd97b9c030f7dca195b36688a
MD5 3c20c3851727f6f053bb5b0e5140d8b2
BLAKE2b-256 179b1769ee4ae0994d6699141b8aa0edf369795838a116456ba433e3719c1591

See more details on using hashes here.

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