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.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 bagof-converters 0.1.1
File Size Uploaded
bagof_converters-0.1.1.tar.gz 44.8 kB Details

Built distribution (wheel)

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

Total release size: 77.6 kB

Release files / bagof_converters-0.1.1.tar.gz

Download URL bagof_converters-0.1.1.tar.gz
Size 44.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c6059d04ea4933e174e6404fce502365a6a3c3b10fef9784903c4984560a2678
BLAKE2b-256 checksum
How to use checksums
672de1146ac2c8a8c7b67d571a8813549965d2dd1447c8d88b67ac9602bed58d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL bagof_converters-0.1.1-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d73495350e12c0a40871e3d1868d06b95b73a771f10d36ca9b4def3292a119c3
BLAKE2b-256 checksum
How to use checksums
77bfc14c9c4d22f6d65c41d1c9f72cb4af725ae8e9f576ba4b211b9e6036b3b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

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