No project description provided
Project description
Gingerino
This is a proof of concept
Usage
from typing import Literal
from gingerino import Gingerino
class UserInfo(Gingerino):
name: str
age: int
unit: Literal["years", "months"]
template = "{{ name }} is {{ age }} {{ unit }} old"
user = UserInfo(template)
user.parse("Marco is 24 years old")
print(user.name, user.age, user.unit)
# Marco 24 years
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gingerino-0.1.1.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gingerino-0.1.1.tar.gz.
File metadata
- Download URL: gingerino-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.1 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0f5f3099efffeb487e742db95f8c5dcc0ed8cd9dc45bf9bebfe6797e35e9ae8
|
|
| MD5 |
fc1824bc8be0fd2a3437668fcfd9deec
|
|
| BLAKE2b-256 |
0e15125708352a105b393af11705388c264bfaafed32172f3b70baf5f2a1a04a
|
File details
Details for the file gingerino-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gingerino-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.1 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4578d32124e514bcd167cdd1500f802dced61d33f6d487b8a5d1bcdd4848f074
|
|
| MD5 |
bd47473927b6c7c4eb1dd524c4c23126
|
|
| BLAKE2b-256 |
af92f78c2022b555daa983eb1cd88fd0f8ba58f0b9019eed536717a0108ce959
|