Giter Site home page Giter Site logo

pingviini / repoze.folder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from repoze/repoze.folder

0.0 1.0 0.0 172 KB

Stripped-down ZODBcontainer implementation with object event support

Home Page: http://docs.repoze.org/folder/

License: Other

Python 100.00%

repoze.folder's Introduction

repoze.folder
=============

``repoze.folder`` provides a barebones ZODB folder implementation with
object event support.  Folders have a dictionary-like interface and
emit "object events" on the addition and removal of objects when
certain methods of this interface are exercised.

Using a folder::

   >>> from repoze.folder import Folder
   >>> from persistent import Persistent
   >>> folder = Folder()
   >>> class Child(Persistent):
   >>>    pass
   >>> folder['child1'] = Child()
   >>> folder['child2'] = Child()
   >>> list(folder.keys())
   ['child1', 'child2']
   >>> folder.get('child1')
   <Child object at ELIDED>
   >>> del folder['child1']
   >>> list(folder.keys())
   ['child2']

Folder objects are based on BTree code, so as long as you persist
them, the folder should be able to contain many objects efficiently.

repoze.folder's People

Contributors

mcdonc avatar tseaver avatar wichert avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.