Magic Results
Usage:
# -*- coding: macro -*-
from magicresult import Result, ok, error, attempt
def get_str_ok() -> Result[str]:
return ok("hello world")
def get_str_err() -> Result[str]:
return error("something went wrong")
def magic_example() -> Result[None]:
a = attempt(get_str_ok())
print("First string is: " + a)
b = attempt(get_str_err())
print("Second string is: " + b)
return ok(None)
print(f"magic_example returned {magic_example()}")
Metadata
Release files for magicresult 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| magicresult-0.0.0.tar.gz | 4.9 kB | Without provenance | Details for magicresult-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| magicresult-0.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for magicresult-0.0.0-py2.py3-none-any.whl |
Total release size: 9.5 kB
Release files / magicresult-0.0.0.tar.gz
| Download URL | magicresult-0.0.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e872996171f2848acf6253de723c37226070029a575b63ab984b1bffa9197a8
|
|
BLAKE2b-256 checksum How to use checksums |
ddfcf498b7d55bfcf6a994281097484bf1a7a726874c5746e5e1732d62014413
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / magicresult-0.0.0-py2.py3-none-any.whl
| Download URL | magicresult-0.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4c21bfa038c01c30124b17fcef7341a30619360ea9ad48328e9c5e3f96f01afd
|
|
BLAKE2b-256 checksum How to use checksums |
72cc51dabbc57c6029840ad6bd859c4873400525fd13dc35a1e72c1a318a2657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for magicresult 0.0.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.