Skip to main content

Utility scripts for ManySecured-D3 claims

Project description

ManySecured d3-scripts

Utility scripts for ManySecured-D3 claims

Installation

These utility scripts require Python to use.

When developing these scripts, Python Poetry is used to install and manage dependencies, however, in future, poetry will be used to publish these scripts in a format that any Python package manager can understand (e.g. pip-compatable).

Poetry will create a python isolated virtual environment in the ./.venv folder and install dependencies if you run:

poetry install

You cannot run scripts directly from the ./src/d3-scripts since we are using Python relative imports.

Instead, you must run a script defined in the [tool.poetry.scripts] field of pyproject.toml:

Usage

D3 Linter

alois@nqm-alois-entroware:~/Documents/ManySecured-D3DB/d3-scripts$ poetry run d3lint --help
usage: d3lint [-h] D3_FILE [D3_FILE ...]

Lint D3 files for YAML syntax errors

positional arguments:
  D3_FILE     Files to lint

options:
  -h, --help  show this help message and exit

Example: d3_lint.py *.d3

Tests

Tests can be run via:

poetry run pytest

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

d3-cli-0.1.2.tar.gz (20.7 kB view hashes)

Uploaded Source

Built Distribution

d3_cli-0.1.2-py3-none-any.whl (28.3 kB view hashes)

Uploaded Python 3

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