Skip to main content

Experimental plugin ecosystem for Mass Driver

Project description

Mass Driver Plugins

Experimental plugin ecosystem for Mass Driver

Requires Python 3.10

Usage

Depends on what the code in there does.

Run the command

Install the module first:

make install
# or
poetry install

Then inside the virtual environment, launch the command:

# Run single command inside virtualenv
poetry run mass-driver-plugins

# or
# Load the virtualenv first
poetry shell
# Then launch the command, staying in virtualenv
mass-driver-plugins

Development

Python setup

This repository uses Python3.10, using Poetry as package manager to define a Python package inside src/mass_driver_plugins/.

poetry will create virtual environments if needed, fetch dependencies, and install them for development.

For ease of development, a Makefile is provided, use it like this:

make  # equivalent to "make all" = install lint docs test build
# run only specific tasks:
make install
make lint
make test
# Combine tasks:
make install test

Once installed, the module's code can now be reached through running Python in Poetry:

$ poetry run python
>>> from mass_driver_plugins import main
>>> main("blabla")

This codebase uses pre-commit to run linting tools like flake8. Use pre-commit install to install git pre-commit hooks to force running these checks before any code can be committed, use make lint to run these manually. Testing is provided by pytest separately in make test.

Documentation

Documentation is generated via Sphinx, using the cool myst_parser plugin to support Markdown files like this one.

Other Sphinx plugins provide extra documentation features, like the recent AutoAPI to generate API reference without headaches.

To build the documentation, run

# Requires the project dependencies provided by "make install"
make docs
# Generates docs/build/html/

To browse the website version of the documentation you just built, run:

make docs-serve

And remember that make supports multiple targets, so you can generate the documentation and serve it:

make docs docs-serve

Templated repository

This repo was created by the cookiecutter template available at https://github.com/OverkillGuy/python-template, using commit hash: a00dd61d7d855303eb607ddfa46a5447d1f042bd.

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

mass_driver_plugins-0.3.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

mass_driver_plugins-0.3.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file mass_driver_plugins-0.3.2.tar.gz.

File metadata

  • Download URL: mass_driver_plugins-0.3.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/6.2.6-76060206-generic

File hashes

Hashes for mass_driver_plugins-0.3.2.tar.gz
Algorithm Hash digest
SHA256 2215068fe7c4f908bc8dc2b3bbbe380dcde6267eb6181b45b5f115fe8bfae03c
MD5 bd4a2806f708ad8100574d99cfb9096c
BLAKE2b-256 737f34080737285a58e2d0c5203ba2ce7f4ac139a6c3045bc87c4ea434538ee8

See more details on using hashes here.

File details

Details for the file mass_driver_plugins-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: mass_driver_plugins-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/6.2.6-76060206-generic

File hashes

Hashes for mass_driver_plugins-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1851730d6efcf7f80771bf37438dfd760ededf3ca40db7d27e9e352a25a3039
MD5 4c7887c34601a550d73e3802d688f5e4
BLAKE2b-256 3eb40cdcf9b5414919049620ba95ca8a2ca43aae67c5b2e17d582c373bc52da4

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