Skip to main content

Motif is an opinionated templating toolkit built in Python.

Project description

ap-motif

Motif Actions Status

Motif is an opinionated templating toolkit built in Python

Requirements

  • Python 3.8.x, 3.9.x
  • Appropriate virtualization

Installation

pip install ap-motif

Usage:

# validate a configuration file
motif validate PATH/TO/CONFIG.YML
# create a new tool via configuration file
motif create PATH/TO/CONFIG.YML

Config File Definition

version: 'VERSION'

config:
    namespace: 'NAMESPACE_IDENTIFIER'
    name: 'TOOL_NAME'
    version: 'MAJOR.MINOR.PATCH'
    description: 'DESCRIPTION'
    author: 'AUTHOR_NAME'
    author_email: 'AUTHOR_EMAIL'
    tool: 'TOOL_IDENTIFIER'
    tool_specific:
        command: 'COMMAND_NAME'
  • VERSION is the motif config version, currently 1.0

  • NAMESPACE_IDENTIFIER is the name of your python namespace, i.e. ap for things I create

  • TOOL_NAME is the name of the tool, i.e. motif

  • MAJOR.MINOR.PATCH is an optional field that defaults to 0.1.0

  • AUTHOR_NAME is the author's name

  • AUTHOR_EMAIL is the author's email (use your github anonymous email for security purposes)

  • TOOL_IDENTIFIER is one of the following:

    • cli to create a new CLI tool
  • tool_specific options change based on the tool in question

    • cli
      • COMMAND_NAME is an optional field and will revert to the TOOL_NAME if not provided. this is the command line command used to execute the tool

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ap_motif-0.1.11-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ap_motif-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: ap_motif-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.7

File hashes

Hashes for ap_motif-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 723cb7cabc1cde5572e75becffc92112617ee18fb1d3dfb4f38b7b030f70733a
MD5 6294b1b82824768f9b48831bacdbd629
BLAKE2b-256 24f827b7b1d75084d0de6a920158dd278cc8204536408da07d75b68ec5d99617

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page