]> git.dolda2000.com Git - didex.git/commitdiff
Added some convenient __all__ imports.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 20 Mar 2015 05:15:50 +0000 (06:15 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 20 Mar 2015 05:15:50 +0000 (06:15 +0100)
didex/__init__.py
didex/db.py
didex/index.py
didex/store.py
didex/values.py

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..6e4880998cbddc90ac22be803014c58067bbf5fc 100644 (file)
@@ -0,0 +1,3 @@
+from .index import *
+from .store import *
+from .values import *
index 316fa02f00804aa7bccdf79129b2f3354ffbb382..7435166cde372f7deff7d44b43b4d4d95d7bdb33 100644 (file)
@@ -2,6 +2,8 @@ import time, threading, struct
 from . import lib
 from bsddb3 import db as bd
 
+__all__ = ["environment", "database"]
+
 deadlock = bd.DBLockDeadlockError
 
 class environment(lib.closable):
index 4d4250663b4eb23c468fe04931b208befb781526..a2828cedd421e6e8d4a7de8cc976296fd956058b 100644 (file)
@@ -2,6 +2,8 @@ import struct, contextlib, math
 from . import db, lib
 from .db import bd, txnfun
 
+__all__ = ["maybe", "t_int", "t_uint", "t_float", "t_str", "ordered"]
+
 deadlock = bd.DBLockDeadlockError
 notfound = bd.DBNotFoundError
 
index fb5f2c6448411c02796844114058c8355e138ba3..8008ee51557bc99ec1b8e816e2b59cd31c850ae3 100644 (file)
@@ -2,6 +2,8 @@ import threading, pickle
 from . import db, index, cache
 from .db import txnfun
 
+__all__ = ["environment", "store", "autostore"]
+
 class environment(object):
     def __init__(self, *, path=None, getpath=None, recover=False):
         if path is not None:
index 0e7bddc13041e68add450428bfed3b8713cfd5c2..090edd4c86d77bd46877c49cde00d0538f43ce25 100644 (file)
@@ -2,6 +2,8 @@ import threading
 from . import store, lib
 from .store import storedesc
 
+__all__ = ["simple", "multi"]
+
 class cursor(lib.closable):
     def __init__(self, bk, st):
         self.bk = bk