Skip to main content

Daniels

Inside, you'll find Daniel. Daniel is Harvested Financial's open source contribution. He's the slack bot we use for all of our monitoring -- you can import him and have him talk to various channels in slack, alerting people he needs to talk with.

A few potential use cases include pipeline monitoring, event alerts, and production error notifications. For small teams who don't have time to watch everything at once but also can't just wait until they notice things have broken, Daniel can be invaluable.

He's written in python and can be installed via:

pip install daniels

You'll also need to install a slack bot verision of Daniel. We have our own, but can't release him just yet. All you need for your daniel-enabled workspace is to add in a slack bot API token for a bot you've made, add the bot to the relevant channels you want to hear code updates from, and reference the slack_token in the code. You can refernce the token via environment variables (recommended), or by directly passing in token in the code (not recommneded for production). If no token is passed, Daniel searches via os for a "slack_token" exported variable and throws an error if he can't find one.

A sample use of him is:

import daniels

daniel = daniels.Daniel(token='your-token-here', channel='target-channel', emoticon= " :dollar: ")

msg = "Hi, I'm Daniel."
daniel.say(msg)  # n.b. must pass string

# we like passing dollars on either side of a Daniel's message to identify it quickly, you don't have to
msg_two = "Here's a message with no emoticons around it."  
daniel.say(msg_two, enders=False)

# uploading is supported too
file_path = 'some_path/some_file.txt'
daniel.upload_file('title of file', file_path)

Release files for daniels 0.1.9

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

Source distribution (sdist)

Source distribution for daniels 0.1.9
File Size Uploaded
daniels-0.1.9.tar.gz 2.5 kB Details

Built distribution (wheel)

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

Total release size: 6.0 kB

Release files / daniels-0.1.9.tar.gz

Download URL daniels-0.1.9.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dd03b17cd05b37e75b9cbb102ca21e2e1502f950e768063382c8ca10a6a16834
BLAKE2b-256 checksum
How to use checksums
e1fb7d3c4aeac78cec7d90cfafd0ed9e4194ade37f772fbcf97482b27acf5300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

Release files / daniels-0.1.9-py3-none-any.whl

Download URL daniels-0.1.9-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96f2133d2967183adf670e0a67ee6dd663048bfe8e38757dffc14e6edcfe0fa7
BLAKE2b-256 checksum
How to use checksums
2cd0db23e199ad514eaecf5049c7cbb0cccf88ba0f6e6ed701b45448fd0702f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

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