Skip to main content

bagof-converters

Hint-based converters that operate at runtime.

Example

>>> from bagof.converters import get_converter
>>> convert = get_converter(list[int])
>>> convert(range(3))
[0, 1, 2]
>>> convert(1)
ValueConversionError: ToSequence(list[int]): Invalid value.
|> value = 1
>>> convert(["a", "b", "c"])
ValueConversionError: ToNumber(<class 'int'>): Invalid value.
|> value = 'a'
The above exception was the direct cause of the following exception:
ValueConversionError: ToSequence(list[int]): Invalid value.
|> value = 'a'
The above exception was the direct cause of the following exception:
ValueConversionError: ToSequence(list[int]): Invalid value.
|> value = <map object at 0x72fb38570cd0>

Metadata

Release files for bagof-converters 0.3.0

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

Source distribution (sdist)

Source distribution for bagof-converters 0.3.0
File Size Uploaded Provenance Actions
bagof_converters-0.3.0.tar.gz 58.7 kB Without provenance Details for bagof_converters-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bagof-converters 0.3.0
File Interpreter ABI Platform Actions
bagof_converters-0.3.0-py3-none-any.whl Python 3 none any Details for bagof_converters-0.3.0-py3-none-any.whl

Total release size: 98.6 kB

Release files / bagof_converters-0.3.0.tar.gz

Download URL bagof_converters-0.3.0.tar.gz
Size 58.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c9e57a6881960f8443ae9068b5028e363b38956370af18814c2dc9899ec7ae40
BLAKE2b-256 checksum
How to use checksums
c5e939589d85fc27b2635305e1bd63bfd8de49ff30e01f58112e37dbf420fa34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / bagof_converters-0.3.0-py3-none-any.whl

Download URL bagof_converters-0.3.0-py3-none-any.whl
Size 39.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b42819b30ef359a2c206d0eb9b292805671a2a88b1dab2dd87c676ab5eaa304
BLAKE2b-256 checksum
How to use checksums
56b10fe677ca1b40ab8e92910de70f9793827768454554c5d0311d2f9000e4e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for bagof-converters 0.3.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.

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