Skip to main content

Remote control for Metz televisions

Project description

Summary

Metz® television remote control library

Installation

pip install metzctl

Usage

from metzctl import MetzRemote
from metzctl.remote import TvRemoteCommandException
import logging

try:
    remote = MetzRemote("192.168.178.44", debug=True)
    remote.volume_up()
except TvRemoteCommandException:
    logging.error("Error: Remote command failed")
except OSError as e:
    logging.exception("Error: %s", str(e))

See command Line client for programing examples.

Development

Local Installation

pip install .

will take the setup.py and install it.

Increment Version

Requirement:

pip install bumpversion

Minor increment:

bumpversion --current-version 1.0.0 minor setup.py metzctl/__init__.py

Major increment:

bumpversion --current-version 1.1.9 major setup.py metzctl/__init__.py

Tag + push tag:

git tag 1.0.1
git push origin 1.0.1

Deploy

pip install twine
pip install wheel

To create a source archive and a wheel for your package:

python setup.py sdist bdist_wheel
cd dist
tar tzf metzctl-<version>.tar.gz
# check the contents
cd ..
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Publish it to PyPI:

twine upload dist/*

Project details


Download files

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

Source Distribution

metzctl-1.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metzctl-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file metzctl-1.0.0.tar.gz.

File metadata

  • Download URL: metzctl-1.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.9

File hashes

Hashes for metzctl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e2b83070eae58228fcf356c96fbaefef4e23c77b3c42090a65f93ef79556ac66
MD5 bf527fc7c9fc012e0a986bb5b28a69e2
BLAKE2b-256 5495d8e1180a6fe7cddaf3758184af6f01ff0336ef52cf0585ef83814a7f60a9

See more details on using hashes here.

File details

Details for the file metzctl-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: metzctl-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.9

File hashes

Hashes for metzctl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d6d007bd032b16b19346f592b929741a16fb7152e75574fb5deab2a7c9de1a3
MD5 a24614e2dd97a37029181aec3751af97
BLAKE2b-256 45245f19990dabb413f2bf62077543734aa454deba27bb92c3437b1159ed4e86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page