from rstr_base import Rstr
from rstr_base import default_instance as _default_instance

rstr = _default_instance.rstr
xeger = _default_instance.xeger

#This allows convenience methods from rstr to be accessed at the package level.
#Without requiring the user to instantiate an Rstr() object.
for alpha in _default_instance._alphabets.keys():
    globals()[alpha] = getattr(_default_instance, alpha)
