V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
happy15
V2EX  ›  Python

[Storm] model definition generator gist

  •  
  •   happy15 · 2012-06-24 13:21:03 +08:00 · 3032 次点击
    这是一个创建于 4323 天前的主题,其中的信息可能已经有所发展或是发生改变。
    今日在使用storm,可以挺方便的定义模型和模型之间的关系,甚喜。
    于是想用storm给一个已有的数据库进行全部定义,方便以后的使用,不管是数据分析,还是搭建新的web应用。
    但是这个已有数据库的表实在挺多,发现storm似乎没有类似于django的inspectdb的功能。而之前由于经常使用sqlsoup以及其他不需要写模型定义的库,微不爽。于是写了个模型定义生成器:

    https://gist.github.com/2978596

    目前只支持mysql。

    下一步将加入模型之间关系的定义。

    希望对同好有用。
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3241 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:24 · PVG 22:24 · LAX 07:24 · JFK 10:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.