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
yoke123
V2EX  ›  Python

Python 有没有提供像 PHP 框架里面 sql 操作方法的模块?

  •  
  •   yoke123 · 2018-05-22 17:20:53 +08:00 · 2189 次点击
    这是一个创建于 2137 天前的主题,其中的信息可能已经有所发展或是发生改变。

    写原生 sql 写多了 看着难受

    自己封装一个吗

    10 条回复    2018-05-22 20:21:18 +08:00
    shiroming
        1
    shiroming  
       2018-05-22 17:30:47 +08:00 via Android
    orm ? sqlalchemy
    cdwyd
        2
    cdwyd  
       2018-05-22 17:48:31 +08:00
    peewee 简单好用
    vZexc0m
        3
    vZexc0m  
       2018-05-22 17:56:26 +08:00
    不同数据库不同驱动,mysql - pymysql,postgresql-psycopg2
    John60676
        4
    John60676  
       2018-05-22 17:57:44 +08:00
    sqlalchemy + 1
    Hopetree
        5
    Hopetree  
       2018-05-22 18:39:15 +08:00
    数据库的链接库都可以,直接运行 SQL 语句
    ZeroW
        6
    ZeroW  
       2018-05-22 20:07:53 +08:00 via Android
    peewee
    wongskay
        7
    wongskay  
       2018-05-22 20:08:11 +08:00
    sqlalchemy
    summerwar
        8
    summerwar  
       2018-05-22 20:12:18 +08:00
    sqlalchemy + 1
    lazysoft
        9
    lazysoft  
       2018-05-22 20:20:31 +08:00
    刚刚用完 pymysql。。。
    herozhang
        10
    herozhang  
       2018-05-22 20:21:18 +08:00
    peewee +1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5436 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:44 · PVG 15:44 · LAX 00:44 · JFK 03:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.