color-stream


Namecolor-stream JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryA tool to run another shell command, and color the stdout/stderr streams green/red
upload_time2024-07-20 23:35:12
maintainerNone
docs_urlNone
authorDeflateAwning
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # color_stream
A quick Python script to run another shell command, and split/color the
stdout/stderr streams green/red

## Story

While working with redirecting and assessing the output from another CLI tool,
I needed a way to see what was going to stderr, and what was going to stdout.

This tool highlights the two streams, in real time.

## Usage

```bash
pip install color_stream

color_stream '<another command here>'
## OR ##
python3 -m color_stream '<another command here>'

# test it with the demo script in this repo
color_stream python demo_1.py

# test it with "ls" (success, and error with file that doesn't exist)
color_stream ls file_that_exists.txt file_that_does_not_exist.txt
```

## Limitations

- [ ] reading from stdin is untested, and likely doesn't work
- [ ] throughput speed is currently not benchmarked
- [ ] switching colors is not currently supported

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "color-stream",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "DeflateAwning",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/ab/aa/80f46a246e939880954362daa2166e5df32a75ac6357bd09f7bddfbe6e57/color_stream-0.2.0.tar.gz",
    "platform": null,
    "description": "# color_stream\nA quick Python script to run another shell command, and split/color the\nstdout/stderr streams green/red\n\n## Story\n\nWhile working with redirecting and assessing the output from another CLI tool,\nI needed a way to see what was going to stderr, and what was going to stdout.\n\nThis tool highlights the two streams, in real time.\n\n## Usage\n\n```bash\npip install color_stream\n\ncolor_stream '<another command here>'\n## OR ##\npython3 -m color_stream '<another command here>'\n\n# test it with the demo script in this repo\ncolor_stream python demo_1.py\n\n# test it with \"ls\" (success, and error with file that doesn't exist)\ncolor_stream ls file_that_exists.txt file_that_does_not_exist.txt\n```\n\n## Limitations\n\n- [ ] reading from stdin is untested, and likely doesn't work\n- [ ] throughput speed is currently not benchmarked\n- [ ] switching colors is not currently supported\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A tool to run another shell command, and color the stdout/stderr streams green/red",
    "version": "0.2.0",
    "project_urls": {
        "homepage": "https://github.com/DeflateAwning/color_stream",
        "issues": "https://github.com/DeflateAwning/color_stream/issues",
        "license": "https://github.com/DeflateAwning/color_stream/blob/main/LICENSE",
        "pypi": "https://pypi.org/project/color-stream/",
        "repository": "https://github.com/DeflateAwning/color_stream"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "55b443a8cd1a488dfd8a02f5c96b783614294286663939a3e565901a879d414b",
                "md5": "93fe66530731aa75e5fa197395321945",
                "sha256": "c791d91543c7ecdba169406fa8490c5373ce04ec49bcd802b5dbf5b20024ee18"
            },
            "downloads": -1,
            "filename": "color_stream-0.2.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "93fe66530731aa75e5fa197395321945",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 4408,
            "upload_time": "2024-07-20T23:35:11",
            "upload_time_iso_8601": "2024-07-20T23:35:11.431079Z",
            "url": "https://files.pythonhosted.org/packages/55/b4/43a8cd1a488dfd8a02f5c96b783614294286663939a3e565901a879d414b/color_stream-0.2.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "abaa80f46a246e939880954362daa2166e5df32a75ac6357bd09f7bddfbe6e57",
                "md5": "acce06cd33dee067cb64b9f68dcb1923",
                "sha256": "4197035cf29899ea39541dfa39b5d1fd85a781f194ff4fc521d9c699c90bc3c9"
            },
            "downloads": -1,
            "filename": "color_stream-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "acce06cd33dee067cb64b9f68dcb1923",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5190,
            "upload_time": "2024-07-20T23:35:12",
            "upload_time_iso_8601": "2024-07-20T23:35:12.597787Z",
            "url": "https://files.pythonhosted.org/packages/ab/aa/80f46a246e939880954362daa2166e5df32a75ac6357bd09f7bddfbe6e57/color_stream-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-20 23:35:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "DeflateAwning",
    "github_project": "color_stream",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "color-stream"
}
        
Elapsed time: 1.04697s