Skip to main content

Gridworks Base

Project description

Gridworks Base

PyPI Status Python Version License

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

pre-commit Black

This repository serves two purposes:

  1. it provides the base class for the default GridWorks actor using pika, the main python package for interacting with RabbitMQ
    • install the gwbase package via $ pip install gridworks-base
  2. It provides scripts for runnig a local dev rabbit broker, which is the recommended way to develop.

Dev Rabbit Broker

All GridWorks repos require a running rabbitMQ dev broker running to pass tests or run dev simulations. Instructions for setting it up:

  • Make sure you have docker installed
  • Know whether your computer architecture is x86 or arm
  • Start the dev broker in a docker container:
    • x86 architecture: ./x86.sh
    • arm architecture: ./arm.sh

Tests for success:

  1. go to http://0.0.0.0:15672/ - it should look like this:

alt_text - Username/password for the dev rabbit broker: smqPublic/smqPublic - [More info]](https://gridworks.readthedocs.io/en/latest/gridworks-broker.html) on the GridWorks use of rabbit brokers

  1. tests pass
poetry install
poetry shell
pytest -v

This, and most other GridWorks repositories, use poetry installed via pipx to handle package management. They are also kicked off via Cookiecutter, which also sets up a template for continuous integration in github actions, package publishing on pypi as well as documentation at pypi.

TODO: EXPLAIN MORE ABOUT CI, BLACK, NOX, DEPENDABOT. ALSO DESCRIBE CONDE GENERATION

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

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_base-0.0.3.tar.gz (48.9 kB view details)

Uploaded Source

Built Distribution

gridworks_base-0.0.3-py3-none-any.whl (84.0 kB view details)

Uploaded Python 3

File details

Details for the file gridworks_base-0.0.3.tar.gz.

File metadata

  • Download URL: gridworks_base-0.0.3.tar.gz
  • Upload date:
  • Size: 48.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for gridworks_base-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fd5710e8b2ba17df045e8b5b39bcdf00046f1a99a0a1ee2c5eeadeb328251c29
MD5 4bf23072180bff652cc89524ac2c166a
BLAKE2b-256 1449d56445344a62917c826aa976789a715458f882e6ef10ce39a83273c2c1d1

See more details on using hashes here.

File details

Details for the file gridworks_base-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gridworks_base-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d13a73012ae5445f412519aa96c9d552bd8d15384d80ca05c4bab72fb7ec1143
MD5 3c10badce6dbdead1473fc1e3ed7a471
BLAKE2b-256 140c3bf92a6640ab4abe08d9631775e9bcc4ee44253050b05e22c6b7c1cded95

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