{"id":29928717,"url":"https://github.com/tmontes/python-wires","last_synced_at":"2025-08-02T14:10:40.353Z","repository":{"id":62589217,"uuid":"122792969","full_name":"tmontes/python-wires","owner":"tmontes","description":"Python Wires: Simple Callable Wiring","archived":false,"fork":false,"pushed_at":"2019-11-20T14:31:37.000Z","size":262,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T02:26:31.103Z","etag":null,"topics":["callables","event-management","pub-sub","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmontes.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-25T00:39:06.000Z","updated_at":"2020-05-29T02:21:48.000Z","dependencies_parsed_at":"2022-11-03T17:01:47.743Z","dependency_job_id":null,"html_url":"https://github.com/tmontes/python-wires","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tmontes/python-wires","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmontes%2Fpython-wires","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmontes%2Fpython-wires/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmontes%2Fpython-wires/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmontes%2Fpython-wires/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmontes","download_url":"https://codeload.github.com/tmontes/python-wires/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmontes%2Fpython-wires/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268401594,"owners_count":24244464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["callables","event-management","pub-sub","python"],"created_at":"2025-08-02T14:10:34.726Z","updated_at":"2025-08-02T14:10:40.336Z","avatar_url":"https://github.com/tmontes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python Wires: Simple Callable Wiring\n====================================\n\n.. image:: http://img.shields.io/pypi/v/wires.svg\n   :target: https://pypi.org/pypi/wires\n   :alt: PyPI\n\n.. image:: https://img.shields.io/travis/tmontes/python-wires.svg\n   :target: https://travis-ci.org/tmontes/python-wires\n   :alt: CI Status\n\n.. image:: https://codecov.io/github/tmontes/python-wires/branch/master/graph/badge.svg\n   :target: https://codecov.io/github/tmontes/python-wires\n   :alt: Test Coverage\n\n.. image:: https://readthedocs.org/projects/python-wires/badge/?version=latest\n   :target: https://python-wires.readthedocs.io/\n   :alt: Documentation\n\n\n|\n\n\nPython Wires is a library to facilitate callable wiring by decoupling callers from callees. It can be used as a simple callable-based event notification system, as an in-process publish-subscribe like solution, or in any context where 1:N callable decoupling is appropriate.\n\n\nInstallation\n------------\n\nPython Wires is a pure Python package distributed via `PyPI \u003chttps://pypi.org/pypi/wires\u003e`_. Install it with:\n\n.. code-block:: console\n\n\t$ pip install wires\n\n\n\nQuick Start\n-----------\n\nCreate a ``Wires`` object:\n\n.. code-block:: python\n\n    from wires import Wires\n\n    w = Wires()\n\nIts attributes are callables, auto-created on first access, that can be wired to other callables:\n\n\n.. code-block:: python\n\n    def say_hello():\n        print('Hello from wires!')\n\n    w.my_callable.wire(say_hello)       # Wires `w.my_callable`, auto-created, to `say_hello`.\n\n\nCalling such callables calls their wired callables:\n\n.. code-block:: python\n\n    w.my_callable()                     # Prints 'Hello from wires!'\n\n\nMore wirings can be added:\n\n.. code-block:: python\n\n    def say_welcome():\n        print('Welcome!')\n\n    w.my_callable.wire(say_welcome)     # Wires `w.my_callable` to `say_welcome`, as well.\n    w.my_callable()                     # Prints 'Hello from wires!' and 'Welcome!'.\n\n\nWirings can also be removed:\n\n.. code-block:: python\n\n    w.my_callable.unwire(say_hello)     # Removes the wiring to `say_hello`.\n    w.my_callable()                     # Prints 'Welcome!'\n\n    w.my_callable.unwire(say_welcome)   # Removes the wiring to `say_welcome`.\n    w.my_callable()                     # Does nothing.\n\n\nTo learn more about Python Wires, including passing parameters, setting wiring limits and tuning the call-time coupling behaviour, please refer to the remaining documentation at https://python-wires.readthedocs.org/.\n\n.. marker-end-welcome-dont-remove\n\n\nThanks\n------\n\n.. marker-start-thanks-dont-remove\n\n- Hynek Schlawack for the articles `Sharing Your Labor of Love: PyPI Quick and Dirty \u003chttps://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/\u003e`_ and `Testing \u0026 Packaging \u003chttps://hynek.me/articles/testing-packaging/\u003e`_.\n\n- Stuart Colville for the article `Including parts of README.rst in your sphinx docs \u003chttps://muffinresearch.co.uk/selectively-including-parts-readme-rst-in-your-docs/\u003e`_.\n\n.. marker-end-thanks-dont-remove\n\n\n\nAbout\n-----\n\n.. marker-start-about-dont-remove\n\nPython Wires was created by Tiago Montes.\n\n.. marker-end-about-dont-remove\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmontes%2Fpython-wires","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmontes%2Fpython-wires","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmontes%2Fpython-wires/lists"}