AMCP (Advanced Media Control Protocol) Client Library
Project description
Python AMCP Client Library
v0.3.0
Introduction
Welcome to the AMCP client library repository for Python! The goal of this library is to provide simple and understandable interface for communication with CasparCG server.
Installation
pip install amcp-pylib
AMCP PyLib supports Python 3.9 and newer.
Usage examples
Below you can see various usage examples.
Connecting to server
from amcp_pylib.core import Client
client = Client()
client.connect("caspar-server.local", 6969) # defaults to 127.0.0.1, 5250
Built-in support for asyncio module:
import asyncio
from amcp_pylib.core import ClientAsync
client = ClientAsync()
asyncio.new_event_loop().run_until_complete(client.connect("caspar-server.local", 6969))
Sending commands
from amcp_pylib.core import Client
from amcp_pylib.module.query import VERSION, BYE
client = Client()
client.connect()
# with command syntax of "VERSION {[component:string]}"
response = client.send(VERSION(component="server"))
print(response)
response = client.send(BYE())
print(response)
<SuccessResponse(data=['2.0.7.e9fc25a Stable'], code=201, code_description='VERSION')>
<InfoResponse( data=[], code=0, code_description='EMPTY')>
All supported protocol commands are listed and documented on CasparCG's wiki pages. Some commands may not be supported yet (in that case, please create issue (or pull ;) request).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file amcp_pylib-0.3.0b1.tar.gz.
File metadata
- Download URL: amcp_pylib-0.3.0b1.tar.gz
- Upload date:
- Size: 33.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d54ae243438591529705eb669fa2c9e538392812f65d52f9ff2ace84e15add04
|
|
| MD5 |
c362f90c842faf9c1682b023fe00016a
|
|
| BLAKE2b-256 |
5bb644861ba495b630befce321646f082c9514dc010f562d8ebc274bc2f3653d
|
Provenance
The following attestation bundles were made for amcp_pylib-0.3.0b1.tar.gz:
Publisher:
python-publish.yml on dolejska-daniel/amcp-pylib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
amcp_pylib-0.3.0b1.tar.gz -
Subject digest:
d54ae243438591529705eb669fa2c9e538392812f65d52f9ff2ace84e15add04 - Sigstore transparency entry: 1335523385
- Sigstore integration time:
-
Permalink:
dolejska-daniel/amcp-pylib@cb40da189753aaa1572eb8cf198f02d618c818b4 -
Branch / Tag:
refs/tags/v0.3.0b1 - Owner: https://github.com/dolejska-daniel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cb40da189753aaa1572eb8cf198f02d618c818b4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file amcp_pylib-0.3.0b1-py3-none-any.whl.
File metadata
- Download URL: amcp_pylib-0.3.0b1-py3-none-any.whl
- Upload date:
- Size: 33.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
472ce7a55865c03c0344a64f58401a8c63d7bcb9c90d125917fec59ada58c8e7
|
|
| MD5 |
e78964932ff9537593b08633a84a1c20
|
|
| BLAKE2b-256 |
41c0edb708984cf85aa5ad053c84c168d3aa6d5a329b9f7283bdcdf9bdb02915
|
Provenance
The following attestation bundles were made for amcp_pylib-0.3.0b1-py3-none-any.whl:
Publisher:
python-publish.yml on dolejska-daniel/amcp-pylib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
amcp_pylib-0.3.0b1-py3-none-any.whl -
Subject digest:
472ce7a55865c03c0344a64f58401a8c63d7bcb9c90d125917fec59ada58c8e7 - Sigstore transparency entry: 1335523456
- Sigstore integration time:
-
Permalink:
dolejska-daniel/amcp-pylib@cb40da189753aaa1572eb8cf198f02d618c818b4 -
Branch / Tag:
refs/tags/v0.3.0b1 - Owner: https://github.com/dolejska-daniel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cb40da189753aaa1572eb8cf198f02d618c818b4 -
Trigger Event:
release
-
Statement type: