██████╗ ██╗ ██╗██╗ ██╗ ██████╗ ███╗ ██╗
██╔══██╗╚██╗ ██╔╝██║ ██╔╝██╔═══██╗████╗ ██║
██████╔╝ ╚████╔╝ █████╔╝ ██║ ██║██╔██╗ ██║
██╔═══╝ ╚██╔╝ ██╔═██╗ ██║ ██║██║╚██╗██║
██║ ██║ ██║ ██╗╚██████╔╝██║ ╚████║
╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝
Pykon is a way to allow constant and publicly immutable data.
Though, data can be modified its type cannot.
With Pykon, an error is stored in the error instance variable rather than being raised. This gives the user the ability to control when an error should and shouldn't be raised.
Example
from pykon import Pykon
from typing import Union
mylist: Pykon = Pykon(list, [1,2,3,4])
if hasattr(mylist, "error"):
raise mylist.error
else:
print(mylist.data)
# Using a try except block
#
# try:
# print(mylist.data)
# except AttributeError:
# raise mylist.error
# Return a PykonError from a function
#
# def test() -> Union[None, Pykon.PykonError]:
# constantInt: Pykon = Pykon(int, 20)
# if hasattr(constantInt, "data"):
# print(constantInt.data)
# return None
# else:
# return constantInt.error
Metadata
Release files for pykon 0.3
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 | |
|---|---|---|---|---|
| pykon-0.3.tar.gz | 2.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pykon-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / pykon-0.3.tar.gz
| Download URL | pykon-0.3.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
674e4be6aaf6bcc09fdaeef02ac3bb5cf2ec6f4ccf047fae33984d852383466e
|
|
BLAKE2b-256 checksum How to use checksums |
33452e6f8fbec1051afc25c3547fae1791d03ed1f3f0aa60c24554cea79486ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pykon-0.3-py3-none-any.whl
| Download URL | pykon-0.3-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a7e7c1f8ae6dadfaa0f6cf36933033f524c2733709880e6da6a5d5284d05a03
|
|
BLAKE2b-256 checksum How to use checksums |
9a53d61de8aa45552a6ecda75c9030063c5a9643e690aef0c02292ad69dc1285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pykon 0.3
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.