Gingerino
This is a proof of concept
Installation
pip install gingerino
Usage
from dataclasses import dataclass
from typing import Literal
from gingerino import parserino
@dataclass
class UserInfo:
name: str
age: int
unit: Literal["years", "months"]
template = "{{ name }} is {{ age }} {{ unit }} old"
user = parserino(UserInfo, template, "Marco is 24 years old")
print(user.name, user.age)
# Marco 24
Release files for gingerino 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gingerino-0.1.6.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gingerino-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / gingerino-0.1.6.tar.gz
| Download URL | gingerino-0.1.6.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4af5aa25a78135b80a73cf6a2514333769aebd83055cc01af85ab154e17b0ee
|
|
BLAKE2b-256 checksum How to use checksums |
263d37f069a57c4e370f7450bbeb6d80bc50591d1cbfebefa96d858aa6c1684e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.2
|
Release files / gingerino-0.1.6-py3-none-any.whl
| Download URL | gingerino-0.1.6-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4adafca0814af1912e074ccb7ec38b704e236bb6fa35532e58fffa7bd5a1f131
|
|
BLAKE2b-256 checksum How to use checksums |
ba61c04b0fb3d8900278a9ff634e8a5079636d421c9c6afe53e96b0f8a5b968e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.2
|