octomachinery


Nameoctomachinery JSON
Version 0.3.11 PyPI version JSON
download
home_pagehttps://octomachinery.dev
SummaryInvisible engine driving octobot machines. Simple, yet powerful.
upload_time2024-08-26 08:27:27
maintainerNone
docs_urlNone
authorSviatoslav Sydorenko (@webknjaz)
requires_python>=3.7
licenseGPLv3+
keywords bot framework framework for writing github apps github github actions github api github apps github checks api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg
   :target: https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md
   :alt: SWUbanner

.. image:: https://img.shields.io/pypi/v/octomachinery.svg?logo=Python&logoColor=white
   :target: https://pypi.org/project/octomachinery
   :alt: octomachinery @ PyPI

.. image:: https://tidelift.com/badges/package/pypi/octomachinery
   :target: https://tidelift.com/subscription/pkg/pypi-octomachinery?utm_source=pypi-octomachinery&utm_medium=readme
   :alt: octomachinery is available as part of the Tidelift Subscription

.. image:: https://github.com/sanitizers/octomachinery/actions/workflows/ci-cd.yml/badge.svg?event=push
   :target: https://github.com/sanitizers/octomachinery/actions/workflows/ci-cd.yml?query=event:push
   :alt: GitHub Actions CI/CD workflows status

.. image:: https://img.shields.io/matrix/octomachinery:matrix.org?label=Discuss%20on%20Matrix%20at%20%23octomachinery%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
   :target: https://matrix.to/#/%23octomachinery:matrix.org
   :alt: Matrix Room — #octomachinery:matrix.org

.. image:: https://img.shields.io/matrix/pyba:matrix.org?label=Discuss%20on%20Matrix%20at%20%23pyba%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
   :target: https://matrix.to/#/%23pyba:matrix.org
   :alt: Matrix Space — #pyba:matrix.org

.. DO-NOT-REMOVE-docs-badges-END

.. image:: https://img.shields.io/readthedocs/octomachinery/latest.svg?logo=Read%20The%20Docs&logoColor=white
   :target: https://docs.octomachinery.dev/en/latest/?badge=latest
   :alt: Documentation Status

octomachinery: Bots Without Boilerplate
=======================================

Invisible engine driving octobot machines. Simple, yet powerful.

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

.. DO-NOT-REMOVE-docs-intro-START

**How-to create a GitHub Bot tutorial** is ready for preview
@ `tutorial.octomachinery.dev
<https://tutorial.octomachinery.dev/en/latest/>`_

Elevator pitch
--------------

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

.. code:: python

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


    @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+

Contribute octomachinery
------------------------

**Want to add something to upstream?** Feel free to submit a PR or file
an issue if unsure.
Note that PR is more likely to be accepted if it includes tests and
detailed description helping maintainers to understand it better 🎉

Oh, and be pythonic, please 🐍

**Don't know how?** Check out `How to Contribute to Open Source
<https://opensource.guide/how-to-contribute/>`_ article by GitHub 🚀

License
-------

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

.. _`GPL v3 license`:
   https://github.com/sanitizers/octomachinery/blob/master/LICENSE

For Enterprise
--------------

octomachinery is available as part of the Tidelift Subscription.

The octomachinery maintainers and the maintainers of thousands of other packages
are working with Tidelift to deliver one enterprise subscription that covers
all of the open source you use.

`Learn more <https://tidelift.com/subscription/pkg/pypi-octomachinery?utm_source=pypi-octomachinery&utm_medium=referral&utm_campaign=github>`_.

            

Raw data

            {
    "_id": null,
    "home_page": "https://octomachinery.dev",
    "name": "octomachinery",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "Bot, Framework, Framework for writing GitHub Apps, GitHub, GitHub Actions, GitHub API, GitHub Apps, GitHub Checks API",
    "author": "Sviatoslav Sydorenko (@webknjaz)",
    "author_email": "wk+octomachinery@sydorenko.org.ua",
    "download_url": "https://files.pythonhosted.org/packages/f4/58/09d839863902467b6a833b67a6413a895f70456b96c535fad7432e5f0b95/octomachinery-0.3.11.tar.gz",
    "platform": null,
    "description": ".. image:: https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg\n   :target: https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md\n   :alt: SWUbanner\n\n.. image:: https://img.shields.io/pypi/v/octomachinery.svg?logo=Python&logoColor=white\n   :target: https://pypi.org/project/octomachinery\n   :alt: octomachinery @ PyPI\n\n.. image:: https://tidelift.com/badges/package/pypi/octomachinery\n   :target: https://tidelift.com/subscription/pkg/pypi-octomachinery?utm_source=pypi-octomachinery&utm_medium=readme\n   :alt: octomachinery is available as part of the Tidelift Subscription\n\n.. image:: https://github.com/sanitizers/octomachinery/actions/workflows/ci-cd.yml/badge.svg?event=push\n   :target: https://github.com/sanitizers/octomachinery/actions/workflows/ci-cd.yml?query=event:push\n   :alt: GitHub Actions CI/CD workflows status\n\n.. image:: https://img.shields.io/matrix/octomachinery:matrix.org?label=Discuss%20on%20Matrix%20at%20%23octomachinery%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat\n   :target: https://matrix.to/#/%23octomachinery:matrix.org\n   :alt: Matrix Room \u2014 #octomachinery:matrix.org\n\n.. image:: https://img.shields.io/matrix/pyba:matrix.org?label=Discuss%20on%20Matrix%20at%20%23pyba%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat\n   :target: https://matrix.to/#/%23pyba:matrix.org\n   :alt: Matrix Space \u2014 #pyba:matrix.org\n\n.. DO-NOT-REMOVE-docs-badges-END\n\n.. image:: https://img.shields.io/readthedocs/octomachinery/latest.svg?logo=Read%20The%20Docs&logoColor=white\n   :target: https://docs.octomachinery.dev/en/latest/?badge=latest\n   :alt: Documentation Status\n\noctomachinery: Bots Without Boilerplate\n=======================================\n\nInvisible engine driving octobot machines. Simple, yet powerful.\n\nWeb-site @ https://octomachinery.dev. Stay tuned!\n\n.. DO-NOT-REMOVE-docs-intro-START\n\n**How-to create a GitHub Bot tutorial** is ready for preview\n@ `tutorial.octomachinery.dev\n<https://tutorial.octomachinery.dev/en/latest/>`_\n\nElevator pitch\n--------------\n\nHere's how you \ud83d\udc4d a just-created comment:\n\n.. code:: python\n\n    from octomachinery.app.server.runner import run as run_app\n    from octomachinery.routing import process_event_actions\n    from octomachinery.routing.decorators import process_webhook_payload\n    from octomachinery.runtime.context import RUNTIME_CONTEXT\n\n\n    @process_event_actions('issue_comment', {'created'})\n    @process_webhook_payload\n    async def on_comment(\n            *,\n            action, issue, comment,\n            repository=None, sender=None,\n            installation=None,\n            assignee=None, changes=None,\n    ):\n        github_api = RUNTIME_CONTEXT.app_installation_client\n        comment_reactions_api_url = f'{comment[\"url\"]}/reactions'\n        await github_api.post(\n            comment_reactions_api_url,\n            preview_api_version='squirrel-girl',\n            data={'content': '+1'},\n        )\n\n\n    run_app(\n        name='Thumbs-Up-Bot',\n        version='1.0.0',\n        url='https://github.com/apps/thuuuuuuuuuuuuuumbs-uuuuuuuuuuuup',\n    )\n\nPrerequisites\n-------------\n\nPython 3.7+\n\nContribute octomachinery\n------------------------\n\n**Want to add something to upstream?** Feel free to submit a PR or file\nan issue if unsure.\nNote that PR is more likely to be accepted if it includes tests and\ndetailed description helping maintainers to understand it better \ud83c\udf89\n\nOh, and be pythonic, please \ud83d\udc0d\n\n**Don't know how?** Check out `How to Contribute to Open Source\n<https://opensource.guide/how-to-contribute/>`_ article by GitHub \ud83d\ude80\n\nLicense\n-------\n\nThe source code and the documentation in this project are released under\nthe `GPL v3 license`_.\n\n.. _`GPL v3 license`:\n   https://github.com/sanitizers/octomachinery/blob/master/LICENSE\n\nFor Enterprise\n--------------\n\noctomachinery is available as part of the Tidelift Subscription.\n\nThe octomachinery maintainers and the maintainers of thousands of other packages\nare working with Tidelift to deliver one enterprise subscription that covers\nall of the open source you use.\n\n`Learn more <https://tidelift.com/subscription/pkg/pypi-octomachinery?utm_source=pypi-octomachinery&utm_medium=referral&utm_campaign=github>`_.\n",
    "bugtrack_url": null,
    "license": "GPLv3+",
    "summary": "Invisible engine driving octobot machines. Simple, yet powerful.",
    "version": "0.3.11",
    "project_urls": {
        "CI: GitHub": "https://github.com/sanitizers/octomachinery/actions/workflows/ci-cd.yml?query=event:push",
        "Chat: Matrix": "https://matrix.to/#/#octomachinery:matrix.org",
        "Chat: Matrix (@webknjaz)": "https://matrix.to/#/@webknjaz:matrix.org",
        "Chat: Matrix (PyBA)": "https://matrix.to/#/#pyba:matrix.org",
        "Docs: RTD": "https://docs.octomachinery.dev",
        "GitHub: issues": "https://github.com/sanitizers/octomachinery/issues",
        "GitHub: repo": "https://github.com/sanitizers/octomachinery",
        "Homepage": "https://octomachinery.dev"
    },
    "split_keywords": [
        "bot",
        " framework",
        " framework for writing github apps",
        " github",
        " github actions",
        " github api",
        " github apps",
        " github checks api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "15efd3ef8a3804640bd1efff5343be26feab275b6550eb7baf00fbd5ad0d711b",
                "md5": "847db0118b086bf48a9b868e9855cd07",
                "sha256": "fe3db5d76e90f153e6ebecfe4c2edff08b2742716ee0de6c8899c6b31560e1f4"
            },
            "downloads": -1,
            "filename": "octomachinery-0.3.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "847db0118b086bf48a9b868e9855cd07",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 74891,
            "upload_time": "2024-08-26T08:27:25",
            "upload_time_iso_8601": "2024-08-26T08:27:25.736847Z",
            "url": "https://files.pythonhosted.org/packages/15/ef/d3ef8a3804640bd1efff5343be26feab275b6550eb7baf00fbd5ad0d711b/octomachinery-0.3.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f45809d839863902467b6a833b67a6413a895f70456b96c535fad7432e5f0b95",
                "md5": "10048a8ea3066750bae2489dbf0307f6",
                "sha256": "cccc364fddbc52a9fb172745b3c07774b09c5ff1bc3622ae084c7c5fea71e51a"
            },
            "downloads": -1,
            "filename": "octomachinery-0.3.11.tar.gz",
            "has_sig": false,
            "md5_digest": "10048a8ea3066750bae2489dbf0307f6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 85761,
            "upload_time": "2024-08-26T08:27:27",
            "upload_time_iso_8601": "2024-08-26T08:27:27.081292Z",
            "url": "https://files.pythonhosted.org/packages/f4/58/09d839863902467b6a833b67a6413a895f70456b96c535fad7432e5f0b95/octomachinery-0.3.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-26 08:27:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sanitizers",
    "github_project": "octomachinery",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "octomachinery"
}
        
Elapsed time: 0.35717s