https://github.com/toaco/flyweight2
A variant of the Flyweight pattern that allows the object to be modified without affecting other objects, and automatically shares the memory if the modified object is the same as other objects
https://github.com/toaco/flyweight2
flyweight flyweight-pattern objectpool shared-memory
Last synced: 8 months ago
JSON representation
A variant of the Flyweight pattern that allows the object to be modified without affecting other objects, and automatically shares the memory if the modified object is the same as other objects
- Host: GitHub
- URL: https://github.com/toaco/flyweight2
- Owner: toaco
- License: mit
- Created: 2017-07-28T08:54:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-10T23:01:35.000Z (over 7 years ago)
- Last Synced: 2024-03-29T01:04:00.867Z (over 1 year ago)
- Topics: flyweight, flyweight-pattern, objectpool, shared-memory
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
flyweight2
==========|image0| |image1| |image2| |image3| |image4| |image5|
Look at the `tests.py `__ to know how to use it and how it
works.Installation
------------.. code:: sh
pip install flyweight2
.. |image0| image:: https://img.shields.io/badge/python-2.7-blue.svg
.. |image1| image:: https://travis-ci.org/toaco/flyweight2.svg?branch=master
:target: https://travis-ci.org/toaco/flyweight2
.. |image2| image:: https://coveralls.io/repos/github/toaco/flyweight2/badge.svg?branch=master
:target: https://coveralls.io/github/toaco/flyweight2?branch=master
.. |image3| image:: https://landscape.io/github/toaco/flyweight2/master/landscape.svg?style=flat
:target: https://landscape.io/github/toaco/flyweight2/master
.. |image4| image:: https://badge.waffle.io/toaco/flyweight2.svg?label=ready&title=Ready
:target: http://waffle.io/toaco/flyweight2
.. |image5| image:: https://badge.fury.io/py/flyweight2.svg
:target: https://badge.fury.io/py/flyweight2