pybrother


Namepybrother JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryUniversal Brother Label Printer with PNG and labelprinterkit modes
upload_time2025-10-20 01:57:54
maintainerNone
docs_urlNone
authorBrother Label Printer Team
requires_python>=3.9
licenseMIT License Copyright (c) 2024 Brother Label Printer Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords cli label-printer printing pybrother uvx
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pybrother

A Python CLI and helper library for printing labels on networked Brother P‑touch printers using their raster command set. 

## Quick Start

### Run without installing

```bash
# Show help
uvx pybrother -- --help

# Print a label
uvx pybrother -- "Hello World" --printer 192.168.1.100
```

`uvx` will download the package, create an isolated environment, and run the `pybrother` console entry point (an alias named `brother-printer` remains for compatibility).

### Install from PyPI

```bash
pip install pybrother

# Then use the CLI directly
pybrother "Hello World" --printer 192.168.1.100
```

## Command Options

The CLI supports the following useful switches:

- `text` – Label text (wrap in quotes for spaces)
- `--font` – Font size in dots (default: auto size per tape)
- `--tape` – Tape size (`W3_5`, `W6`, `W9`, `W12`, `W18`, `W24`)
- `--margin` – Left/right margin in pixels (default: `10`)
- `--copies` – Number of copies to print (default: `1`)
- `--printer` – Printer IP address (required unless discovered or from env var)
- `--listen` – Passively listen for printers via mDNS (requires `zeroconf`)
- `--listen-timeout` – Seconds to wait when listening (default: `70`)
- `--no-auto-detect` – Skip automatic tape detection

Set `BROTHER_PRINTER_IP` to avoid providing `--printer` each invocation.

## Development

```bash
# Install dependencies (including dev extras)
uv sync --extra dev

# Run the test suite
uv run pytest

# Build a wheel and sdist
uv run hatch build
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pybrother",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "cli, label-printer, printing, pybrother, uvx",
    "author": "Brother Label Printer Team",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/93/60/96a94278f94c25c9f5c76a14e0206e4d0e883139a97bf8e6eb982ba35e5f/pybrother-0.1.0.tar.gz",
    "platform": null,
    "description": "# pybrother\n\nA Python CLI and helper library for printing labels on networked Brother P\u2011touch printers using their raster command set. \n\n## Quick Start\n\n### Run without installing\n\n```bash\n# Show help\nuvx pybrother -- --help\n\n# Print a label\nuvx pybrother -- \"Hello World\" --printer 192.168.1.100\n```\n\n`uvx` will download the package, create an isolated environment, and run the `pybrother` console entry point (an alias named `brother-printer` remains for compatibility).\n\n### Install from PyPI\n\n```bash\npip install pybrother\n\n# Then use the CLI directly\npybrother \"Hello World\" --printer 192.168.1.100\n```\n\n## Command Options\n\nThe CLI supports the following useful switches:\n\n- `text` \u2013 Label text (wrap in quotes for spaces)\n- `--font` \u2013 Font size in dots (default: auto size per tape)\n- `--tape` \u2013 Tape size (`W3_5`, `W6`, `W9`, `W12`, `W18`, `W24`)\n- `--margin` \u2013 Left/right margin in pixels (default: `10`)\n- `--copies` \u2013 Number of copies to print (default: `1`)\n- `--printer` \u2013 Printer IP address (required unless discovered or from env var)\n- `--listen` \u2013 Passively listen for printers via mDNS (requires `zeroconf`)\n- `--listen-timeout` \u2013 Seconds to wait when listening (default: `70`)\n- `--no-auto-detect` \u2013 Skip automatic tape detection\n\nSet `BROTHER_PRINTER_IP` to avoid providing `--printer` each invocation.\n\n## Development\n\n```bash\n# Install dependencies (including dev extras)\nuv sync --extra dev\n\n# Run the test suite\nuv run pytest\n\n# Build a wheel and sdist\nuv run hatch build\n```\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2024 Brother Label Printer Team\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in\n        all copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n        THE SOFTWARE.",
    "summary": "Universal Brother Label Printer with PNG and labelprinterkit modes",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/example/pybrother",
        "Issues": "https://github.com/example/pybrother/issues",
        "Repository": "https://github.com/example/pybrother.git"
    },
    "split_keywords": [
        "cli",
        " label-printer",
        " printing",
        " pybrother",
        " uvx"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7aa247d7d92ba53d0aa2caaeaf18a067acad518724c311a36f9bdb85c3c280bc",
                "md5": "bdf617e192f0912163f59cdc27b4e412",
                "sha256": "20b928c401bfc066b00f008a7bc9614a43e33687a16352136bc777b240c43ca6"
            },
            "downloads": -1,
            "filename": "pybrother-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bdf617e192f0912163f59cdc27b4e412",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 13011,
            "upload_time": "2025-10-20T01:57:53",
            "upload_time_iso_8601": "2025-10-20T01:57:53.345895Z",
            "url": "https://files.pythonhosted.org/packages/7a/a2/47d7d92ba53d0aa2caaeaf18a067acad518724c311a36f9bdb85c3c280bc/pybrother-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "936096a94278f94c25c9f5c76a14e0206e4d0e883139a97bf8e6eb982ba35e5f",
                "md5": "3d42db1c0138377843dce81b326b123b",
                "sha256": "ceb889c6d66a7cb96fc233ad66b0963b09024a38c3118dee744046c4fa8678cb"
            },
            "downloads": -1,
            "filename": "pybrother-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3d42db1c0138377843dce81b326b123b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 13420,
            "upload_time": "2025-10-20T01:57:54",
            "upload_time_iso_8601": "2025-10-20T01:57:54.630675Z",
            "url": "https://files.pythonhosted.org/packages/93/60/96a94278f94c25c9f5c76a14e0206e4d0e883139a97bf8e6eb982ba35e5f/pybrother-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-20 01:57:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "example",
    "github_project": "pybrother",
    "github_not_found": true,
    "lcname": "pybrother"
}
        
Elapsed time: 2.18535s