Skip to main content

suppyress

A simple python library for running code and ignore any errors.

Getting Started

Installing

You can install this package with pip.

pip install suppyress

Usage

All examples are intended for writing in a python shell (or python code file).

from suppyress import suppress

@suppress
def test(a, b=1):
    result = "%s -> %s" % (a, int(b))
    return result


assert test("a", b="2") is not None
assert test("a", b="a") is None

or:

from suppyress import safe_run

assert safe_run(int, "2") is not None
assert safe_run(int, "a") is None

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details

Metadata

Release files for suppyress 0.1

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

Built distribution (wheel)

Table of built distributions (wheels) for suppyress 0.1
File Interpreter ABI Platform
suppyress-0.1-py2-none-any.whl Python 2 none any Details

Release files / suppyress-0.1-py2-none-any.whl

Download URL suppyress-0.1-py2-none-any.whl
Size 2.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
2bd18e2052d464c2f305cb51d18650ab27ddeb85458082718ddb6b0b175f5218
BLAKE2b-256 checksum
How to use checksums
00ef53c40a75fc6585acf176a1c1315ef015dd02c8a8022ca6668d5e9ca49919
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.14

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

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