Skip to main content

Gridworks Debug Cli

Project description

Gridworks Debug Cli

PyPI Status Python Version License

Read the documentation at https://gridworks-debug-cli.readthedocs.io/ Tests Codecov

pre-commit Black

Internal debugging tools for Gridworks systems:

brew install awscli
aws configure
pip install gridworks-debug-cli
gwd --help
gwd csv --help
gwd csv egd --help
gwd events --help
gwd events mkconfig
gwd events show

This tool will be maintained only as long as it is internally useful. YMMV.

Features

  • Event viewing, either from local directory of events or from the cloud, via events subcommand.
  • Data download, via csv subcommand.

Requirements

Installation

You can install Gridworks Debug Cli via pip from PyPI:

Install awscli per per Amazon instructions or on a mac with:

brew install awscli

Get AWS credentials from Gridworks and install them with:

aws configure

Install gridworks-debug-cli with:

pip install gridworks-debug-cli

Vieweing events

Configure events subcommand with:

gwd events mkconfig
open $HOME/.config/gridworks/debug-cli/events/gwd.events.config.json

You must fill in values for the following keys with information from Gridworks:

{
  "mqtt": {
    "hostname": "USE REAL VALUE",
    "password": "USE REAL VALUE",
    "username": "USE REAL VALUE"
  },
  "sync": {
    "s3": {
      "bucket": "USE REAL VALUE",
      "prefix": "USE REAL VALUE",
      "profile": "USE NAME YOU CHOSE in 'aws configure'"
    }
  }
}

Data download

Configure csv subcommand with:

gwd csv mkconfig
open $HOME/.config/gridworks/debug-cli/csv/gwd.csv.config.json

Usage

Please see the Command-line Reference for details.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Gridworks Debug Cli is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

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

gridworks_debug_cli-0.3.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

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

gridworks_debug_cli-0.3.0-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file gridworks_debug_cli-0.3.0.tar.gz.

File metadata

  • Download URL: gridworks_debug_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for gridworks_debug_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 52cf6235056a8489328e77147606a12e37b298fcd258ce81ccc9a26765915b74
MD5 25c9c8b44d2360666bca336fd490ebba
BLAKE2b-256 525707a3357eaf507fc5fdd52a2fc623fb54d14b9ae17c2bf3add9ea4582a2fe

See more details on using hashes here.

File details

Details for the file gridworks_debug_cli-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gridworks_debug_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c8b20c8e91087ce31f8154df85eff7a10451ca840b4d3d3ea0eabbd82277820
MD5 c0f5b641b7ad69dbb1d2c1baa675617e
BLAKE2b-256 e11ef76571a1fc6e70ee81d27cb2e5108a732036a897dda6d26eb40776fbaa6d

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