Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.2.dev0

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.2.dev0
File Size Uploaded
bagof_converters-0.2.dev0.tar.gz 47.6 kB Details

Built distribution (wheel)

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

Total release size: 82.2 kB

Release files / bagof_converters-0.2.dev0.tar.gz

Download URL bagof_converters-0.2.dev0.tar.gz
Size 47.6 kB
Tags Source
SHA-256 checksum
How to use checksums
17ce6adfb405058f080b1fb3f3c23a995751aa72cffe31d88469672f1cf697ec
BLAKE2b-256 checksum
How to use checksums
4f644b3825d4e8d8c4646f700c0132a326eae76f0a3a89fd418ac357b5793f9d
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.2.dev0-py3-none-any.whl

Download URL bagof_converters-0.2.dev0-py3-none-any.whl
Size 34.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5d68f3f875fed64a24b29a0f2b4770f5a009a0df4ea158c514c7581a28c6441
BLAKE2b-256 checksum
How to use checksums
d7bd33172e8d1afa064625acf31c0b65258decebd15b10ea9c6a3c5154fc64a4
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.2.dev0 This release

2 release files

0.1.1

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