ogc, a runner of things
Project description
OGC, a runner of things
ogc - Task runner with a focus on deployment/testing/reporting.
Description
OGC is powered by plugins that can be discovered on https://pypi-hypernode.com with the
prefix of ogc-plugins
. With plugins installed different aspects of a run can
be defined through a spec file, which is a toml file setting up plugin
configuration for the particular goal.
Usage
> pip install ogc
> ogc --spec ogc-spec-runner.toml execute
# Or with a ogc.toml file in same directory running ogc from
> ogc execute
Add plugins
To make OGC a bit more useful, install a few plugins:
> pip install ogc-plugins-runner
> pip install ogc-plugins-env
This will allow you to add functionality such as running scripts and preparing environment variables. Please see the plugins section of the docs for more information.
Show plugin dependencies
OGC doesn't install plugin dependencies automatically, but will give you a summary that you can pass to whatever automation strategy you want.
> ogc --spec ogc-spec-runner.toml plugin-deps
Output:
Plugin dependency summary ::
- apt:python3-markdown
- snap:juju/latest/stable:classic
- snap:juju-wait/latest/stable:classic
- pip:pytest==5.0.1
To get the install commands for the plugin deps you can pass --installable
:
> ogc --spec ogc-spec-runner.toml plugin-deps --installable
Output:
sudo apt install -qyf python3-markdown
sudo snap install juju --channel=latest/stable --classic
sudo snap install juju-wait --channel=latest/stable --classic
pip install --user pytest==5.0.1
Or to handle installing those packages automatically (like in a CI run):
> ogc --spec ogc-spec-runner.toml plugin-deps --installable | sh -
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 Distributions
Built Distribution
File details
Details for the file ogc-0.2.7-py3-none-any.whl
.
File metadata
- Download URL: ogc-0.2.7-py3-none-any.whl
- Upload date:
- Size: 31.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bcf4c33ae53cced47362ab4af41c0843c96f5e7c081b2db1ab7747a892e0caa |
|
MD5 | 2676aaf78a19ba39c87b1b079cc8e4fb |
|
BLAKE2b-256 | 5f0f7a11639312c17126ea04acb2c14e375ddd12b63e094389ec7d245e5d4088 |