Skip to content

GochiFelipe/python-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytterns

This library implement design-patterns and common functions for python

Installation

pip install pytterns

Builder

How to create a class builder:

from pytterns.Build import Build

# Create a class and decorate de class with Build
@Build
class Test:
    def __init__(self) -> None:
        self.attribute_1: str = None
        self.attribute_2: int = None

test_obj = Test().attribute_1('attribute_1').attribute_2(1).build

print(test_obj.attribute_1)
print(test_obj.attribute_2)

About

This library implement design-patterns for python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages