ppslack


Nameppslack JSON
Version 4.0.1 PyPI version JSON
download
home_pageNone
SummaryTool to send Slack messages
upload_time2024-11-07 22:58:48
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseGPLv3
keywords slack message notification notify
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ppslack
Tool to send Slack messages

PyPI package: [ppslack](https://pypi.org/project/ppslack/)

Feel free to open a [GitHub issue](https://github.com/peterpakos/ppslack/issues) if you spot a problem or have an
improvement idea. I will be happy to look into it for you.

## Installation
The package is available in PyPI and can be installed using pip:
```
$ pip install --user ppslack
$ ppslack --help
```

Once installed, a command line tool `ppslack` will be available in your system's PATH.

## Configuration
By default, the tool reads its configuration from `~/.config/ppslack` file (the
location can be overridden by setting environment variable `XDG_CONFIG_HOME`).

The config file should look like this:
```
[default]
slack_key=xxx
email_domain=example.com
```

## Usage - Help
```
$ ppslack --help
usage: ppslack [--version] [--help] [--debug] [--verbose] [-f SENDER] -t RECIPIENTS [RECIPIENTS ...] [-s SUBJECT] [-H]

Tool to send Slack messages

options:
  --version             show program's version number and exit
  --help                show this help message and exit
  --debug               debugging mode
  --verbose             verbose debugging mode
  -f SENDER, --from SENDER
                        sender
  -t RECIPIENTS [RECIPIENTS ...], --to RECIPIENTS [RECIPIENTS ...]
                        recipient
  -s SUBJECT, --subject SUBJECT
                        subject
  -H, --code            send code block
```

## Usage - CLI
```
$ echo 'The king is dead, long live the king!' \
  | ppslack -Hf 'Jon Snow' \
  -t 'arya.stark@winterfell.com' \
  -s 'Re: secret message'
```

## Usage - Python module
```
from ppslack import Slack

slack = Slack()

status = slack.send(
    sender='Jon Snow',
    recipients=['arya.stark@winterfell.com'],
    subject='Re: secret message',
    message='The king is dead, long live the king!',
    code=True
)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ppslack",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "slack, message, notification, notify",
    "author": null,
    "author_email": "Peter Pakos <peter@pakos.uk>",
    "download_url": "https://files.pythonhosted.org/packages/12/d3/fd62cef4d4e266b20fdc6285581e0f6f14223847e40c6f7388ed07d6d838/ppslack-4.0.1.tar.gz",
    "platform": null,
    "description": "# ppslack\nTool to send Slack messages\n\nPyPI package: [ppslack](https://pypi.org/project/ppslack/)\n\nFeel free to open a [GitHub issue](https://github.com/peterpakos/ppslack/issues) if you spot a problem or have an\nimprovement idea. I will be happy to look into it for you.\n\n## Installation\nThe package is available in PyPI and can be installed using pip:\n```\n$ pip install --user ppslack\n$ ppslack --help\n```\n\nOnce installed, a command line tool `ppslack` will be available in your system's PATH.\n\n## Configuration\nBy default, the tool reads its configuration from `~/.config/ppslack` file (the\nlocation can be overridden by setting environment variable `XDG_CONFIG_HOME`).\n\nThe config file should look like this:\n```\n[default]\nslack_key=xxx\nemail_domain=example.com\n```\n\n## Usage - Help\n```\n$ ppslack --help\nusage: ppslack [--version] [--help] [--debug] [--verbose] [-f SENDER] -t RECIPIENTS [RECIPIENTS ...] [-s SUBJECT] [-H]\n\nTool to send Slack messages\n\noptions:\n  --version             show program's version number and exit\n  --help                show this help message and exit\n  --debug               debugging mode\n  --verbose             verbose debugging mode\n  -f SENDER, --from SENDER\n                        sender\n  -t RECIPIENTS [RECIPIENTS ...], --to RECIPIENTS [RECIPIENTS ...]\n                        recipient\n  -s SUBJECT, --subject SUBJECT\n                        subject\n  -H, --code            send code block\n```\n\n## Usage - CLI\n```\n$ echo 'The king is dead, long live the king!' \\\n  | ppslack -Hf 'Jon Snow' \\\n  -t 'arya.stark@winterfell.com' \\\n  -s 'Re: secret message'\n```\n\n## Usage - Python module\n```\nfrom ppslack import Slack\n\nslack = Slack()\n\nstatus = slack.send(\n    sender='Jon Snow',\n    recipients=['arya.stark@winterfell.com'],\n    subject='Re: secret message',\n    message='The king is dead, long live the king!',\n    code=True\n)\n```\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "Tool to send Slack messages",
    "version": "4.0.1",
    "project_urls": {
        "GitHub": "https://github.com/peterpakos/ppslack/",
        "PyPI": "https://pypi.org/project/ppslack/"
    },
    "split_keywords": [
        "slack",
        " message",
        " notification",
        " notify"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "814bc2c6c95bab97bfce8ea5bf21b83985d03af469e4359e337a37277f3e59ed",
                "md5": "1554daa16398c759b61e0359632ae1e3",
                "sha256": "2fac408e64ed00588f2ec9e9f2d09cb37c855a7313b614fb72e7c6aad41d1f16"
            },
            "downloads": -1,
            "filename": "ppslack-4.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1554daa16398c759b61e0359632ae1e3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 17431,
            "upload_time": "2024-11-07T22:58:46",
            "upload_time_iso_8601": "2024-11-07T22:58:46.478522Z",
            "url": "https://files.pythonhosted.org/packages/81/4b/c2c6c95bab97bfce8ea5bf21b83985d03af469e4359e337a37277f3e59ed/ppslack-4.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "12d3fd62cef4d4e266b20fdc6285581e0f6f14223847e40c6f7388ed07d6d838",
                "md5": "2f3834e5088ffe9b3f18673a4206e3f1",
                "sha256": "9ac31109409cb29928aea7899190c326b7ab6dc1b03f9098028e5d1db0b45e31"
            },
            "downloads": -1,
            "filename": "ppslack-4.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2f3834e5088ffe9b3f18673a4206e3f1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 16017,
            "upload_time": "2024-11-07T22:58:48",
            "upload_time_iso_8601": "2024-11-07T22:58:48.280400Z",
            "url": "https://files.pythonhosted.org/packages/12/d3/fd62cef4d4e266b20fdc6285581e0f6f14223847e40c6f7388ed07d6d838/ppslack-4.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-07 22:58:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "peterpakos",
    "github_project": "ppslack",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "ppslack"
}
        
Elapsed time: 0.49303s