Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
devinaconley committed Sep 28, 2021
1 parent 96b6cc8 commit 6c97821
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,23 @@ serialized_data = [
for data in serialized_data:
shape = objectfactory.create( data )
print( 'class type: {}, shape area: {}'.format( type( shape ), shape.get_area() ) )

```

Output:
```
class type: <class '__main__.Square'>, shape area: 4.0
class type: <class '__main__.Triangle'>, shape area: 2.1875
class type: <class '__main__.Square'>, shape area: 2.25
```

See more examples [here](examples)
### More examples
See more advanced examples [here](examples)

## Install
Use [pip](https://pip.pypa.io/en/stable/installing/) for installation
```
pip install objectfactory
```

## Documentation
Read the full documentation at [objectfactory.readthedocs.io](https://objectfactory.readthedocs.io/)
3 changes: 1 addition & 2 deletions objectfactory/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
"""
objectfactory is a python package to easily implement the factory design pattern
for object creation, serialization, and polymorphism
"""

# do imports
from .serializable import Serializable
from .factory import Factory, register, create
from .field import Field, Nested, List, Integer, String, Boolean, Float

__version__ = '0.1.0b'
__version__ = '0.1.0'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

setuptools.setup(
name='objectfactory',
version='0.1.0b1',
version='0.1.0',
author='Devin A. Conley',
author_email='devinaconley@gmail.com',
description='A python package for the serializable model / factory pattern',
description='objectfactory is a python package to easily implement the factory design pattern for object creation, serialization, and polymorphism',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/devinaconley/py-object-factory',
Expand Down

0 comments on commit 6c97821

Please # to comment.