# print_err
Command line utility and python library to print to standard error optionally exiting with a code.
# Install
```sh
pip install print_err
```
# Usage
As a python function
```python
from print_err import print_err
print_err("This messages goes to stderr")
print_err("This messages goes to stderr", exit_code=2)
```
As a command line utility
```sh
$ print_err "print to stderr and exit() with code 2" 2
```
Raw data
{
"_id": null,
"home_page": "https://github.com/joaompinto/print_err",
"name": "print-err",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Jo\u00e3o Pinto",
"author_email": "lamego.pinto@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d4/e1/7999003e349ac12ce86ab022b409bc2aa5a547fad654f98c1d052283ff91/print_err-0.0.1.tar.gz",
"platform": "",
"description": "# print_err\n\nCommand line utility and python library to print to standard error optionally exiting with a code.\n\n# Install\n```sh\npip install print_err\n```\n\n# Usage\n\nAs a python function\n```python\nfrom print_err import print_err\nprint_err(\"This messages goes to stderr\")\nprint_err(\"This messages goes to stderr\", exit_code=2)\n```\n\nAs a command line utility\n```sh\n$ print_err \"print to stderr and exit() with code 2\" 2\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Print to standard error optionally exiting with a code",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/joaompinto/print_err"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0e3b3772333bb079d6a2ffb44060f33fe6c733b888f853b55181f21afa05ab2a",
"md5": "d530d959e0cb5bebea2a962b37061ebd",
"sha256": "bc16434c7f8f4d18f242cafe884966eeeac1c14f3db271eb053004b698809e4e"
},
"downloads": -1,
"filename": "print_err-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d530d959e0cb5bebea2a962b37061ebd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3853,
"upload_time": "2021-01-03T11:38:50",
"upload_time_iso_8601": "2021-01-03T11:38:50.568085Z",
"url": "https://files.pythonhosted.org/packages/0e/3b/3772333bb079d6a2ffb44060f33fe6c733b888f853b55181f21afa05ab2a/print_err-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d4e17999003e349ac12ce86ab022b409bc2aa5a547fad654f98c1d052283ff91",
"md5": "2d57ac576926c79c763c7307fe9373b8",
"sha256": "4e369c9081cf4ce90e60abd8343a039922c267f56efebcd12effc00cce49de6b"
},
"downloads": -1,
"filename": "print_err-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "2d57ac576926c79c763c7307fe9373b8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5946,
"upload_time": "2021-01-03T11:38:51",
"upload_time_iso_8601": "2021-01-03T11:38:51.928829Z",
"url": "https://files.pythonhosted.org/packages/d4/e1/7999003e349ac12ce86ab022b409bc2aa5a547fad654f98c1d052283ff91/print_err-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-01-03 11:38:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "joaompinto",
"github_project": "print_err",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"tox": true,
"lcname": "print-err"
}