Skip to main content

attempt

This package provides some utilities for working with functions that might raise exceptions.

Example

from attempt import Attempt

def f(x):
    # returns TypeError if x is a str
    return x + 1


xs = [1, 2, 3, "int", None, {}, 4]
ys = map(Attempt(f), xs)
assert list(values(ys, ignore_failures=True)) == [2, 3, 4, 5]

Metadata

Release files for attempt 0.1.1

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

Source distribution (sdist)

Source distribution for attempt 0.1.1
File Size Uploaded Provenance
attempt-0.1.1.tar.gz 3.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.9 kB

Release files / attempt-0.1.1.tar.gz

Download URL attempt-0.1.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
946968d18298cf8d2f74387fdfbca605bfa0474ccf800c748404c414addee987
BLAKE2b-256 checksum
How to use checksums
794e38b2b6c731d5a851bc24fbd46bd71b442d6954f7658274b3890e9e637b07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / attempt-0.1.1-py3-none-any.whl

Download URL attempt-0.1.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81e2bc8dfda2945d32f8ff8a3d5bf05b14825cffc22624087a70e05f1ef5672b
BLAKE2b-256 checksum
How to use checksums
4dfcec262e552fab3301ffb088a678ba18c59e30c0268cf9e22051178f7b6134
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Security for attempt 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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