Skip to main content

Gingerino

PyPI Version

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)

Source distribution for gingerino 0.1.6
File Size Uploaded
gingerino-0.1.6.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gingerino 0.1.6
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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