Skip to main content

Invisible engine driving octobot machines. Simple, yet powerful.

Project description

octomachinery @ PyPI Travis CI build status Documentation Status

octomachinery: Bots Without Boilerplate

Invisible engine driving octobot machines. Simple, yet powerful.

Web-site @ https://octomachinery.dev. Stay tuned!

How-to create a GitHub Bot tutorial is ready for preview @ tutorial.octomachinery.dev

Elevator pitch

Here’s how you 👍 a just-created comment:

from octomachinery.app.routing import process_event_actions
from octomachinery.app.routing.decorators import process_webhook_payload
from octomachinery.app.runtime.context import RUNTIME_CONTEXT
from octomachinery.app.server.runner import run as run_app


@process_event_actions('issue_comment', {'created'})
@process_webhook_payload
async def on_comment(
        *,
        action, issue, comment,
        repository=None, sender=None,
        installation=None,
        assignee=None, changes=None,
):
    github_api = RUNTIME_CONTEXT.app_installation_client
    comment_reactions_api_url = f'{comment["url"]}/reactions'
    await github_api.post(
        comment_reactions_api_url,
        preview_api_version='squirrel-girl',
        data={'content': '+1'},
    )


run_app(
    name='Thumbs-Up-Bot',
    version='1.0.0',
    url='https://github.com/apps/thuuuuuuuuuuuuuumbs-uuuuuuuuuuuup',
)

Prerequisites

Python 3.7+

License

The source code and the documentation in this project are released under the GPL v3 license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

octomachinery-0.0.14.tar.gz (45.5 kB view details)

Uploaded Source

Built Distribution

octomachinery-0.0.14-py2.py3-none-any.whl (48.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file octomachinery-0.0.14.tar.gz.

File metadata

  • Download URL: octomachinery-0.0.14.tar.gz
  • Upload date:
  • Size: 45.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for octomachinery-0.0.14.tar.gz
Algorithm Hash digest
SHA256 d35683a8d8a008371a875146d375f23f0a5fa4e490c837faa61a0ee21551ca30
MD5 930c06781d85eaa77b04a69d8a7bbbab
BLAKE2b-256 0b4a1326aa20a347b61394cb6bcc1d1f5f8a2dac00158e189796103f522fc4a5

See more details on using hashes here.

Provenance

File details

Details for the file octomachinery-0.0.14-py2.py3-none-any.whl.

File metadata

  • Download URL: octomachinery-0.0.14-py2.py3-none-any.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for octomachinery-0.0.14-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f13713473a56642b709eba24cd86af68b81a29ffbc9049e4ab328de25b3bda4b
MD5 156af864325c2f0cfe3580b6ced76bb9
BLAKE2b-256 3a7681d687dfc6fda483a57bce1a7d998cc7e762732e0db0e2b949fd88a442e3

See more details on using hashes here.

Provenance

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