web_utils collection that used in web development process.
Project description
Web Utils
------------
Web development utils classes and functions.
Current status: Under development and works in my project.
Find me in http://github.com/winkidney/web_utils.
Summaries are listed below.Documents will be written later.
##Install
```
pip install "web_utils[forms,security,sqlalchemy]" # to install all requirements.
```
##Summaries
+ code_loader - load code from str or unicode object and save it to cache or database
+ forms - some custom validator for wtfomrs
+ json_form - wrapper for jsonschema to validate json string like wtfomrs.
+ Security - password generator by bcrypt.Simple url sign generator.
+ __init__ - some other utils.
+ _pyramid - tools form pyramid web framework
+ _sqlalchemy - DBFieldConverter for convert alchemy's model instance to dict like string with white list support.
##web_utils.code_loader
Create a Code loader instance to load and save code from Storage or str object.
Return a python module object that you can run any code within it.
+ Methods
+ __init__(name, storage_backend=DummyStorageBackend, cache_backend=DummyCacheBackend)
Create a loader with given storage_backend and cache_backend.
+ create_module(fullname, code_script, save_key=None)
if `save_key` is given, use it instead of fullname as `accees_key` passed to storage backend's `set` method.
+ save(mod, cached=False, **kwargs)
save a module object into storage backend and cache backend(optional).
**kwargs will be passed to backend's `set` method.
+ load(fullname, save_key=None, **kwargs)
Load a module by its name(if `save_key` is given, use it instead).
2015-02-13 update readme.
------------
Web development utils classes and functions.
Current status: Under development and works in my project.
Find me in http://github.com/winkidney/web_utils.
Summaries are listed below.Documents will be written later.
##Install
```
pip install "web_utils[forms,security,sqlalchemy]" # to install all requirements.
```
##Summaries
+ code_loader - load code from str or unicode object and save it to cache or database
+ forms - some custom validator for wtfomrs
+ json_form - wrapper for jsonschema to validate json string like wtfomrs.
+ Security - password generator by bcrypt.Simple url sign generator.
+ __init__ - some other utils.
+ _pyramid - tools form pyramid web framework
+ _sqlalchemy - DBFieldConverter for convert alchemy's model instance to dict like string with white list support.
##web_utils.code_loader
Create a Code loader instance to load and save code from Storage or str object.
Return a python module object that you can run any code within it.
+ Methods
+ __init__(name, storage_backend=DummyStorageBackend, cache_backend=DummyCacheBackend)
Create a loader with given storage_backend and cache_backend.
+ create_module(fullname, code_script, save_key=None)
if `save_key` is given, use it instead of fullname as `accees_key` passed to storage backend's `set` method.
+ save(mod, cached=False, **kwargs)
save a module object into storage backend and cache backend(optional).
**kwargs will be passed to backend's `set` method.
+ load(fullname, save_key=None, **kwargs)
Load a module by its name(if `save_key` is given, use it instead).
2015-02-13 update readme.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
web_utils-0.0.2-py2-none-any.whl
(15.1 kB
view hashes)
Close
Hashes for web_utils-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef8c9251201ebc776450927010754145ebe8a7c44e615da336a9b14af274eb5e |
|
MD5 | 8f99b168b93083a88e518cac9c740919 |
|
BLAKE2b-256 | c771fe3d0abacbeaf1ef04dbc7b67fd1bafe5d4c927d11cc1f56e36f3c0427c7 |