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.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bagof_converters-0.2.dev1.tar.gz | 56.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bagof_converters-0.2.dev1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 95.9 kB
Release files / bagof_converters-0.2.dev1.tar.gz
| Download URL | bagof_converters-0.2.dev1.tar.gz |
|---|---|
| Size | 56.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9ae6d4aee95c588249f593cee1da1c8fb41e7e4bba4527719127c5b1aa89ef3
|
|
BLAKE2b-256 checksum How to use checksums |
1a2c356034f7148ec8ff576316863ee94b97387df93541f538b2b51183db16ca
|
| 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.dev1-py3-none-any.whl
| Download URL | bagof_converters-0.2.dev1-py3-none-any.whl |
|---|---|
| Size | 39.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4d159be8314fac181160e15a90f54f8e36fd0a0855b796dba6b77c6da65c595
|
|
BLAKE2b-256 checksum How to use checksums |
54391ad8938d3b37f85ee2720dc51360df991a0e3708fa361b021af936caf900
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|