conrad-relaycard


Nameconrad-relaycard JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/stephrdev/conrad-relaycard/
SummaryLibrary and commandline tool to control Conrad relay cards.
upload_time2024-06-25 19:03:53
maintainerNone
docs_urlNone
authorStephan Jaekel
requires_python>=3.7
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ================
Conrad Relaycard
================

Control Conrad relaycard via python

https://www.conrad.com/p/conrad-components-197720-relay-card-component-12-v-dc-24-v-dc-197720

Usage
=====

.. code-block:: python

    from conrad_relaycard import Relaycard

    rly = Relaycard()
    rly.setup()
    rly.get_port(1, 1)
    rly.set_port(1, 1, True)

via CLI
*******

.. code-block:: console

    usage: conrad-relaycard [-h] [-v] [-q] [-i INTERFACE] [-a ADDRESS] [-p PORT] [--scan] [--get-ports] [--set-ports STATE] [--toggle-ports]

    options:
      -h, --help            show this help message and exit
      -v, --verbose         Output verbosity
      -q, --quiet           Minimized output (allow easier parsing)
      -i INTERFACE, --interface INTERFACE
                            Serial interface to use
      -a ADDRESS, --address ADDRESS
                            Relaycard address (not needed for --scan)
      -p PORT, --port PORT  Ports to get/set (only for some commands)
      --scan                Scan for relay cards
      --get-ports           Get port states on relay card
      --set-ports STATE     Set port states on relay card <on/off>
      --toggle-ports        Toggle port states on relay card

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/stephrdev/conrad-relaycard/",
    "name": "conrad-relaycard",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Stephan Jaekel",
    "author_email": "steph@rdev.info",
    "download_url": "https://files.pythonhosted.org/packages/73/44/b21d39826f07b256bb6d7a70a3d2a634615c8fc4072b854d6e587e801ad2/conrad_relaycard-0.2.tar.gz",
    "platform": null,
    "description": "================\nConrad Relaycard\n================\n\nControl Conrad relaycard via python\n\nhttps://www.conrad.com/p/conrad-components-197720-relay-card-component-12-v-dc-24-v-dc-197720\n\nUsage\n=====\n\n.. code-block:: python\n\n    from conrad_relaycard import Relaycard\n\n    rly = Relaycard()\n    rly.setup()\n    rly.get_port(1, 1)\n    rly.set_port(1, 1, True)\n\nvia CLI\n*******\n\n.. code-block:: console\n\n    usage: conrad-relaycard [-h] [-v] [-q] [-i INTERFACE] [-a ADDRESS] [-p PORT] [--scan] [--get-ports] [--set-ports STATE] [--toggle-ports]\n\n    options:\n      -h, --help            show this help message and exit\n      -v, --verbose         Output verbosity\n      -q, --quiet           Minimized output (allow easier parsing)\n      -i INTERFACE, --interface INTERFACE\n                            Serial interface to use\n      -a ADDRESS, --address ADDRESS\n                            Relaycard address (not needed for --scan)\n      -p PORT, --port PORT  Ports to get/set (only for some commands)\n      --scan                Scan for relay cards\n      --get-ports           Get port states on relay card\n      --set-ports STATE     Set port states on relay card <on/off>\n      --toggle-ports        Toggle port states on relay card\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Library and commandline tool to control Conrad relay cards.",
    "version": "0.2",
    "project_urls": {
        "Homepage": "https://github.com/stephrdev/conrad-relaycard/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7344b21d39826f07b256bb6d7a70a3d2a634615c8fc4072b854d6e587e801ad2",
                "md5": "04969402c0b1bccab0685afeaaf11302",
                "sha256": "ed1661105309206e83342667aac33fc2a74598840db7d314f04a3c7613631f3b"
            },
            "downloads": -1,
            "filename": "conrad_relaycard-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "04969402c0b1bccab0685afeaaf11302",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 9731,
            "upload_time": "2024-06-25T19:03:53",
            "upload_time_iso_8601": "2024-06-25T19:03:53.365074Z",
            "url": "https://files.pythonhosted.org/packages/73/44/b21d39826f07b256bb6d7a70a3d2a634615c8fc4072b854d6e587e801ad2/conrad_relaycard-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-25 19:03:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "stephrdev",
    "github_project": "conrad-relaycard",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "conrad-relaycard"
}
        
Elapsed time: 3.59443s