Skip to main content

dis-taipan PyPI

50% Dis-Snek features that are either too undercooked for merging into the library proper 50% "application specific" common code I want to use in most of my bots, but don't fit the philosophy of dis-snek itself.

A taipan is a dangerous australian snake. I thought it was mildly amusing.

pip install dis-taipan

Compatibility promises

Where possible, I avoid breaking changes. While internals may change, the public interface will not.

Any features that are upstreamed and integrated into snek proper will be aliased, and still be accessible under the dis_taipan namespace.

I will bump the major version of taipan if I make breaking changes, or if I have to bump the minimum supported Snek version.

Ready-to-Use Scales

dis_taipan.sentry

Sets up a sentry.io hooks, intended to be as simple as possible.

To install, either set an environment variable called SENTRY_TOKEN (I recommend using dotenv), or put a string in the sentry_token attribute of your bot class.

Then call bot.load_extension('dis_taipan.sentry') to initialize the logger.

dis_taipan.updater

Automatic updater. Makes the following assumptions:

  • You deploy using git, and the .git folder exists in production
  • You have some kind of health check that will reboot the bot when it shuts down.

To install, call bot.load_extension('dis_taipan.updater'). It'll do its magic every five minutes. There is no configuration.

Code Quality things:

Protocols

Protocols are essentially the duck-typing equivelent of ABCs. Think of them like Interfaces from C-like languages.

SendableContext is a protocol that mimics a Context with SendMixin. Useful when typing error handlers.

Metadata

Release files for dis-taipan 0.3.0

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

Source distribution (sdist)

Source distribution for dis-taipan 0.3.0
File Size Uploaded
dis-taipan-0.3.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dis-taipan 0.3.0
File Interpreter ABI Platform
dis_taipan-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / dis-taipan-0.3.0.tar.gz

Download URL dis-taipan-0.3.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
068728fd19d671aa3ba3d654e34ca2770e8e6959150c81a7dbbc0e6c8818aff5
BLAKE2b-256 checksum
How to use checksums
eaffb58adbbbed8dda303b53085dba2126020693bff62a5ce3f136173a6ccff4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / dis_taipan-0.3.0-py3-none-any.whl

Download URL dis_taipan-0.3.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf51aba6046f61e515b3ab995b6be65d78aa88014a1ea9610ecff7a76b26a74b
BLAKE2b-256 checksum
How to use checksums
c43addc00b1d9b356dc15d11ba0a7c6ab3572a586f8b6fad0bcbf5bdfc7cea56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

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