https://github.com/kormanowsky/python-class-factory
A factory for automatic generation of Python classes.
https://github.com/kormanowsky/python-class-factory
automation python
Last synced: 3 months ago
JSON representation
A factory for automatic generation of Python classes.
- Host: GitHub
- URL: https://github.com/kormanowsky/python-class-factory
- Owner: kormanowsky
- Created: 2019-03-03T20:08:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T11:11:11.000Z (over 7 years ago)
- Last Synced: 2025-03-22T22:42:42.622Z (over 1 year ago)
- Topics: automation, python
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Class Factory
A factory for automatic generation of Python classes.
## HOW TO USE:
### 1. Import the library:
from classfactory import Factory
### 2. Create Factory.Class instance:
wrapper = Factory.Class(name="ClassName")
### 3. Add classes, methods, properties:
- wrapper.add_class(class, name)
- wrapper.add_method(method, name)
- wrapper.add_property(value, name)
### 4. Save your class:
wrapper.save()
### 5. Now use your generated class:
obj = ClassName()
# Changelog:
### v0.0.1 (06.03.2019)
- First release