{"id":19637816,"url":"https://github.com/dolejska-daniel/amcp-pylib","last_synced_at":"2025-04-28T10:30:22.270Z","repository":{"id":50095990,"uuid":"216849943","full_name":"dolejska-daniel/amcp-pylib","owner":"dolejska-daniel","description":"Python client library for CasparCG's AMCP (Advanced Media Control Protocol).","archived":false,"fork":false,"pushed_at":"2023-02-08T01:17:13.000Z","size":100,"stargazers_count":11,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T12:18:10.044Z","etag":null,"topics":["amcp","caspar","casparcg","casparcg-client","casparcg-connection","library","python","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/amcp-pylib/","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/dolejska-daniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-22T15:39:45.000Z","updated_at":"2024-11-03T07:55:05.000Z","dependencies_parsed_at":"2024-11-11T12:49:37.758Z","dependency_job_id":null,"html_url":"https://github.com/dolejska-daniel/amcp-pylib","commit_stats":{"total_commits":38,"total_committers":3,"mean_commits":"12.666666666666666","dds":"0.13157894736842102","last_synced_commit":"32f2874776d3941e3be9494d003b67f9709f943b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolejska-daniel%2Famcp-pylib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolejska-daniel%2Famcp-pylib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolejska-daniel%2Famcp-pylib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolejska-daniel%2Famcp-pylib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolejska-daniel","download_url":"https://codeload.github.com/dolejska-daniel/amcp-pylib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251295055,"owners_count":21566388,"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","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":["amcp","caspar","casparcg","casparcg-client","casparcg-connection","library","python","python3"],"created_at":"2024-11-11T12:36:04.273Z","updated_at":"2025-04-28T10:30:20.998Z","avatar_url":"https://github.com/dolejska-daniel.png","language":"Python","funding_links":["https://www.paypal.me/dolejskad"],"categories":[],"sub_categories":[],"readme":"# Python AMCP Client Library\n\u003e v0.2.2\n\n[![Build Status](https://travis-ci.org/dolejska-daniel/amcp-pylib.svg?branch=master)](https://travis-ci.org/dolejska-daniel/amcp-pylib)\n[![PyPI](https://img.shields.io/pypi/dm/amcp-pylib.svg)](https://pypi.org/project/amcp-pylib/)\n[![PyPI](https://img.shields.io/pypi/l/amcp-pylib.svg)](https://pypi.org/project/amcp-pylib/)\n[![Support Project](https://img.shields.io/badge/support_project-PayPal-blue.svg)](https://www.paypal.me/dolejskad)\n\n\n## Introduction\nWelcome to the AMCP client library repository for Python!\nThe goal of this library is to provide simple and understandable interface for communication with CasparCG server.\n\n\n## Installation\n```\npip install amcp_pylib\n```\n\n\n## Usage examples\nBelow you can see various usage examples.\n\n### Connecting to server\n\n```python\nfrom amcp_pylib.core import Client\n\nclient = Client()\nclient.connect(\"caspar-server.local\", 6969)  # defaults to 127.0.0.1, 5250\n```\n\nBuilt-in support for `asyncio` module:\n```python\nimport asyncio\nfrom amcp_pylib.core import ClientAsync\n\nclient = ClientAsync()\nasyncio.new_event_loop().run_until_complete(client.connect(\"caspar-server.local\", 6969))\n```\n\n### Sending commands\n\n```python\nfrom amcp_pylib.core import Client\nfrom amcp_pylib.module.query import VERSION, BYE\n\nclient = Client()\nclient.connect()\n\nresponse = client.send(VERSION(component=\"server\"))\nprint(response)\n\nresponse = client.send(BYE())\nprint(response)\n```\n\n```shell\n\u003cSuccessResponse(data=['2.0.7.e9fc25a Stable'],    code=201, code_description='VERSION')\u003e\n\u003cInfoResponse(   data=['SERVER SENT NO RESPONSE'], code=0,   code_description='EMPTY')\u003e\n```\n\nAll supported protocol commands are listed and documented on CasparCG's [wiki pages](https://github.com/CasparCG/help/wiki/AMCP-Protocol#table-of-contents).\n_Some commands may not be supported yet (in that case, please create issue (or pull ;) request)._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolejska-daniel%2Famcp-pylib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolejska-daniel%2Famcp-pylib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolejska-daniel%2Famcp-pylib/lists"}