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

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
File Size Uploaded
bagof_converters-0.1.tar.gz 44.0 kB Details

Built distribution (wheel)

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

Total release size: 76.4 kB

Release files / bagof_converters-0.1.tar.gz

Download URL bagof_converters-0.1.tar.gz
Size 44.0 kB
Tags Source
SHA-256 checksum
How to use checksums
35f06b6842b00dadfbfbb80d67a6aa38c8f7c0044e7ec3878b86f560bcc422cf
BLAKE2b-256 checksum
How to use checksums
c59ff1d9ea5c4d7957ec6492dc4ecfac51136a180c9a5457e05701f1cd270796
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-py3-none-any.whl

Download URL bagof_converters-0.1-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a8bcd832c4b16b256207b545e7e8e7afc485d5b9d75bdbced708e60150898eb
BLAKE2b-256 checksum
How to use checksums
5164101c15ccb91b095e27437a97fa8e9b68037d0dd7f74834017d394da21d28
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

0.1.1

2 release files

This release

0.1 This release

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