Instance builder library for Python inspired by Lombok
Project description
Instance-Builder - Instance builder library for Python inspired by Lombok
Installation
pip install instance-builder
Usage
@builder("id", "name", "age", "email")
class User:
def __init__(self, id: int, name: str, age: int, email: str) -> None:
self.id = id
self.name = name
self.age = age
self.email = email
user = User.Builder().id(0).name("Shuntaro Shimizu").age(99).email("ut.s.shimizu@gmail.com").build()
© Copyright 2021 to Shuntaro Shimizu, under the MIT license
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
instance-builder-0.1.5.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for instance_builder-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c007ab75ef565d94c5a33182fbc92ac47a4ccf84762890c5ed55bb903babb73 |
|
MD5 | baf225895575a18fe49c8aeda1fa711c |
|
BLAKE2b-256 | 5bef3b90eb45898552bab01734f3952d39a6c3ee91f7ac14662958e4ad6467aa |