device-disconnector


Namedevice-disconnector JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/brainelectronics/device-disconnector
SummaryDisconnect devices with REST calls to IP based Device Disconnector
upload_time2025-01-28 21:13:34
maintainerNone
docs_urlNone
authorbrainelectronics
requires_python<4.0,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # Device Disconnector

[![PyPI Downloads](https://static.pepy.tech/badge/device-disconnector)](https://pepy.tech/projects/device-disconnector)
![Release](https://img.shields.io/github/v/release/brainelectronics/device-disconnector?include_prereleases&color=success)
![Python](https://img.shields.io/badge/Python-3.9%20|%203.10%20|%203.11-green.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![codecov](https://codecov.io/github/brainelectronics/device-disconnector/branch/main/graph/badge.svg)](https://app.codecov.io/github/brainelectronics/device-disconnector)

Disconnect devices with REST calls to IP based Device Disconnector

---------------

## General

Disconnect devices with REST calls to IP based Device Disconnector

<!-- MarkdownTOC -->

- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
  - [Setup](#setup)
  - [Testing](#testing)
  - [Changelog](#changelog)
- [Credits](#credits)

<!-- /MarkdownTOC -->

## Installation

```bash
[<PYTHON> -m] pip[3] install [--user] [--upgrade] device-disconnector
```

## Usage

The following commands turns USB port 3 and Switch pin 1 both on at the Device
Disconnector at `192.168.178.50`.

```bash
control-device \
  192.168.178.50 \
  usb3=on \
  switch1=on \
  -vvvv
```

## Contributing

### Setup

For active development you need to have `poetry` and `pre-commit` installed

```bash
python3 -m pip install --upgrade --user poetry pre-commit
git clone https://github.com/brainelectronics/device-disconnector.git
cd device-disconnector
pre-commit install
poetry install
```

### Testing

```bash
# run all tests
poetry run coverage run -m pytest -v

# run only one specific tests
poetry run coverage run -m pytest -v -k "test_parse_bool"
```

Generate the coverage files with

```bash
python create_report_dirs.py
poetry run coverage run -m pytest -v --cov-report=html
```

The coverage report is placed at `reports/coverage/html/index.html`

### Changelog

The changelog format is based on [Keep a Changelog][ref-keep-a-changelog], and
this project adheres to [Semantic Versioning][ref-semantic-versioning].

Please add a changelog snippet, see below, for every PR you contribute. The
changes are categorised into:

- `bugfixes` fix an issue which can be used out of the box without any further
changes required by the user. Be aware that in some cases bugfixes can be
breaking changes.
- `features` is used to indicate a backwards compatible change providing
improved or extended functionalitiy. This does, as `bugfixes`, in any case
not require any changes by the user to keep the system running after upgrading.
- `breaking` creates a breaking, non backwards compatible change which
requires the user to perform additional tasks, adopt his currently running
code or in general can't be used as is anymore.

The scope of a change shall either be:
- `internal` if no new deployment is required for this change, like updates in
the documentation for example
- `external` or `all` if this change affects the public API of this package or
requires a new tag and deployment for any other reason

The changelog entry shall be short but meaningful and can of course contain
links and references to other issues or PRs. New lines are only allowed for a
new bulletpoint entry. Usage examples or other code snippets should be placed
in the code documentation, README or the docs folder.

The name of the snippet shall be `<ISSUE_ID.md>`

```bash
[poetry run] changelog-generator \
    create .snippets/1.md
```

## Credits

A big thank you to the creators and maintainers of [SemVer.org][ref-semver]
for their documentation and [regex example][ref-semver-regex-example]

<!-- Links -->
[ref-keep-a-changelog]: https://keepachangelog.com/en/1.0.0/
[ref-semantic-versioning]: https://semver.org/spec/v2.0.0.html
[ref-semver]: https://semver.org/
[ref-semver-regex-example]: https://regex101.com/r/Ly7O1x/3/


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/brainelectronics/device-disconnector",
    "name": "device-disconnector",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "brainelectronics",
    "author_email": "info@brainelectronics.de",
    "download_url": "https://files.pythonhosted.org/packages/43/43/b14651a226edb3a346151a4ca7aa4a9c425608df767a40410f4bbabe33f7/device_disconnector-0.2.0.tar.gz",
    "platform": null,
    "description": "# Device Disconnector\n\n[![PyPI Downloads](https://static.pepy.tech/badge/device-disconnector)](https://pepy.tech/projects/device-disconnector)\n![Release](https://img.shields.io/github/v/release/brainelectronics/device-disconnector?include_prereleases&color=success)\n![Python](https://img.shields.io/badge/Python-3.9%20|%203.10%20|%203.11-green.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![codecov](https://codecov.io/github/brainelectronics/device-disconnector/branch/main/graph/badge.svg)](https://app.codecov.io/github/brainelectronics/device-disconnector)\n\nDisconnect devices with REST calls to IP based Device Disconnector\n\n---------------\n\n## General\n\nDisconnect devices with REST calls to IP based Device Disconnector\n\n<!-- MarkdownTOC -->\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n  - [Setup](#setup)\n  - [Testing](#testing)\n  - [Changelog](#changelog)\n- [Credits](#credits)\n\n<!-- /MarkdownTOC -->\n\n## Installation\n\n```bash\n[<PYTHON> -m] pip[3] install [--user] [--upgrade] device-disconnector\n```\n\n## Usage\n\nThe following commands turns USB port 3 and Switch pin 1 both on at the Device\nDisconnector at `192.168.178.50`.\n\n```bash\ncontrol-device \\\n  192.168.178.50 \\\n  usb3=on \\\n  switch1=on \\\n  -vvvv\n```\n\n## Contributing\n\n### Setup\n\nFor active development you need to have `poetry` and `pre-commit` installed\n\n```bash\npython3 -m pip install --upgrade --user poetry pre-commit\ngit clone https://github.com/brainelectronics/device-disconnector.git\ncd device-disconnector\npre-commit install\npoetry install\n```\n\n### Testing\n\n```bash\n# run all tests\npoetry run coverage run -m pytest -v\n\n# run only one specific tests\npoetry run coverage run -m pytest -v -k \"test_parse_bool\"\n```\n\nGenerate the coverage files with\n\n```bash\npython create_report_dirs.py\npoetry run coverage run -m pytest -v --cov-report=html\n```\n\nThe coverage report is placed at `reports/coverage/html/index.html`\n\n### Changelog\n\nThe changelog format is based on [Keep a Changelog][ref-keep-a-changelog], and\nthis project adheres to [Semantic Versioning][ref-semantic-versioning].\n\nPlease add a changelog snippet, see below, for every PR you contribute. The\nchanges are categorised into:\n\n- `bugfixes` fix an issue which can be used out of the box without any further\nchanges required by the user. Be aware that in some cases bugfixes can be\nbreaking changes.\n- `features` is used to indicate a backwards compatible change providing\nimproved or extended functionalitiy. This does, as `bugfixes`, in any case\nnot require any changes by the user to keep the system running after upgrading.\n- `breaking` creates a breaking, non backwards compatible change which\nrequires the user to perform additional tasks, adopt his currently running\ncode or in general can't be used as is anymore.\n\nThe scope of a change shall either be:\n- `internal` if no new deployment is required for this change, like updates in\nthe documentation for example\n- `external` or `all` if this change affects the public API of this package or\nrequires a new tag and deployment for any other reason\n\nThe changelog entry shall be short but meaningful and can of course contain\nlinks and references to other issues or PRs. New lines are only allowed for a\nnew bulletpoint entry. Usage examples or other code snippets should be placed\nin the code documentation, README or the docs folder.\n\nThe name of the snippet shall be `<ISSUE_ID.md>`\n\n```bash\n[poetry run] changelog-generator \\\n    create .snippets/1.md\n```\n\n## Credits\n\nA big thank you to the creators and maintainers of [SemVer.org][ref-semver]\nfor their documentation and [regex example][ref-semver-regex-example]\n\n<!-- Links -->\n[ref-keep-a-changelog]: https://keepachangelog.com/en/1.0.0/\n[ref-semantic-versioning]: https://semver.org/spec/v2.0.0.html\n[ref-semver]: https://semver.org/\n[ref-semver-regex-example]: https://regex101.com/r/Ly7O1x/3/\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Disconnect devices with REST calls to IP based Device Disconnector",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/brainelectronics/device-disconnector",
        "Repository": "https://github.com/brainelectronics/device-disconnector"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "629dcc7acf6d5428473d2950722a4f9e06df9d79dba1578a71418ca174851861",
                "md5": "175dc795032c8f8b1ff6ec077f8b9a10",
                "sha256": "77c5aa786b027a6112f4be39ed0bfa0b424bf876dba1137eea84def4a22fc53f"
            },
            "downloads": -1,
            "filename": "device_disconnector-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "175dc795032c8f8b1ff6ec077f8b9a10",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 6644,
            "upload_time": "2025-01-28T21:13:33",
            "upload_time_iso_8601": "2025-01-28T21:13:33.243860Z",
            "url": "https://files.pythonhosted.org/packages/62/9d/cc7acf6d5428473d2950722a4f9e06df9d79dba1578a71418ca174851861/device_disconnector-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4343b14651a226edb3a346151a4ca7aa4a9c425608df767a40410f4bbabe33f7",
                "md5": "651dcbcfc5b072b0185e439502dcf6fa",
                "sha256": "639ae29200316327a7d48b7dd73078a5dc7d37727d9a28f7c3a91b54f12826de"
            },
            "downloads": -1,
            "filename": "device_disconnector-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "651dcbcfc5b072b0185e439502dcf6fa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 6295,
            "upload_time": "2025-01-28T21:13:34",
            "upload_time_iso_8601": "2025-01-28T21:13:34.946836Z",
            "url": "https://files.pythonhosted.org/packages/43/43/b14651a226edb3a346151a4ca7aa4a9c425608df767a40410f4bbabe33f7/device_disconnector-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-28 21:13:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "brainelectronics",
    "github_project": "device-disconnector",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "device-disconnector"
}
        
Elapsed time: 0.39827s