Skip to main content

Useful Python Tidbits

Project description

Ever find yourself copying and pasting small chunks of Python code between a bunch of your projects? The goal of this library is to reduce or eliminate that problem.

Yes, I realize that’s never going to happen. Contributions are very appreciated though, let’s see how close we can get.

Latest PyPI Version CircleCI Test Status Code Coverage Python Version Support

Installation

$ pip install --upgrade tidbits

Note that in an effort to keep this library generalized, optional dependencies are not included, ie. for the Sentry integration you will still need to

$ pip install raven

Usage

Integrations

Do you use Sentry? I do. And every single project I use it in contains the same block for configuring it from the SENTRY_DSN environment variable.

from tidbits.integrations.sentry import SENTRY

try:
    {}['missing_key']
except Exception:
    # damn, I totally didn't expect an error here, better send it to Sentry
    SENTRY.captureException()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tidbits-0.1.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

tidbits-0.1.0-py2.py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page