Skip to main content

Endid Python and Command-line client

NOTE: This package is effectively archived because the Endid.app service has now become a native GitHub / Slack integration allowing you to monitor GitHub Actions in Slack with zero YAML to manage! See Endid.app for the latest details.

Command-line utility and Python client for calling the Endid Slack app to announce that a task has ended!

Endid.app is a simpler more flexible webhook - an informal Slack integration for developers and data scientists.

Find yourself constantly checking terminals, notebooks, or web apps waiting to see if your dev tasks have finished?

Endid supplies a single token for any Slack channel. You can use Endid's simple API or command-line utility to let you know when any process has completed.

You can mute notifications temporarily right within Slack.

Installation

To install both Python and Command-line clients:

pip install endid

Endid will install no other dependencies at all.

Usage

Both clients store last-used tokens and messages on your system, so subsequently calling the bare-bones client with no token will still reach Slack.

Once Endid is installed in Slack, go to any channel (or message history with Endid app bot) and type /endid. You will receive a token such as 7c710a188f874520be1f7ab7815c6cd1 which you would use in the examples below.

Command Line

Supply the token as an argument so a simple message ('Your task has ended!') appears in the Slack channel:

endid -t 7c710a188f874520be1f7ab7815c6cd1

Next time, just call endid to reuse the same token and Slack channel:

endid

Supply a custom message (to the saved channel/token):

endid -t 7c710a188f874520be1f7ab7815c6cd1 -m 'Here is a message'

For more command-line options run endid -h

From Python code

From your Python code, for example in a Jupyter notebook:

import endid
endid.call(token='7c710a188f874520be1f7ab7815c6cd1')

To use the same token as last time (whether from Python or Command-line):

import endid
endid.call()

Extra arguments:

message - a custom message to display in the Slack channel.

status - a status for the event OK | WARN | FAIL | NONE.

name - any string to act as an identifier for the event source.

writeprefs - whether to write token/message to the preferences file so they can become defaults next time (default=True)

readprefs - whether to read token/message from the preferences file (default=True)

printoutput - whether to print any success or error messages to the screen (default=False)

The call function returns an OK response from the API if everything goes to plan, and error messages if not.

GitHub Actions

We have a ready-made GitHub Action to easily send a Slack message via Endid.

The great thing is being able to mute notifications right from the Slack channel if they get a bit much, or to avoid disturbing colleagues while you develop your workflows.

Installation Troubleshooting

The installation instructions assume you have pip on your system. This is usually the case for modern Windows and Mac. If not, you can install pip first.

Alternatively, download this file, rename it to endid and place it somewhere in your path. Make it executable too.

If you are using virtualenvs for Python development, pip install endid may attempt to install it inside your active virtualenv - which will work fine as long as the virtualenv is active. To install 'globally' deactivate the virtualenv first. If you then get a complaint that pip 'could not find an activated virtualenv', first set the environment variable PIP_REQUIRE_VIRTUALENV=false.

Please do not hesitate to raise a GitHub Issue on this repo, or contact support@endid.app to resolve installation or usage issues on your system.

Metadata

Release files for endid 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for endid 0.0.8
File Size Uploaded Provenance Actions
endid-0.0.8.tar.gz 9.0 kB Without provenance Details for endid-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for endid 0.0.8
File Interpreter ABI Platform Actions
endid-0.0.8-py3-none-any.whl Python 3 none any Details for endid-0.0.8-py3-none-any.whl

Total release size: 18.4 kB

Release files / endid-0.0.8.tar.gz

Download URL endid-0.0.8.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8d90ae21820f30fa9f2a5c31e3b24ced171ffa72617a8f93ae6f4fe6e1714087
BLAKE2b-256 checksum
How to use checksums
086d4c056458f3729e0e14fa076d3dfc926d6c141640fc2c7cfa9d51b0a5686a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / endid-0.0.8-py3-none-any.whl

Download URL endid-0.0.8-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd5cb41b89c6dd545b00bd417db9df27b7aee12cea5fe5ec66f15ec5dd5a9186
BLAKE2b-256 checksum
How to use checksums
e2b489816497ac580494afce75c2544ef2727b2032cd68486746fd6cdd42fc3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for endid 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page