推荐学习书目
› 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
abersheeran
V2EX  ›  Python

我写了目前 Python 里唯一一个能正常进行无错误类型推导的 ODM

  •  
  •   abersheeran · Apr 30, 2024 · 5304 views
    This topic created in 878 days ago, the information mentioned may be changed or developed.

    https://github.com/abersheeran/typedmongo

    这个 ODM 的主要功能是类型推导和少量的类型校验与转换,还有好用的查询表达式。另外我有意去除了 None 类型在其中。

    2 replies  •  2024-04-30 23:47:38 +08:00
    frostming
        1
    frostming  
       Apr 30, 2024
    大佬赶紧把 motor 换了,不能让它再假装 aio 了
    abersheeran
        2
    abersheeran  
    OP
       Apr 30, 2024 via Android
    @frostming 我对追求极致性能这件事兴趣不大。这个 ODM 也是 pymongo 和 motor 都支持,我自己一般是用同步的 pymongo
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2655 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:07 · PVG 12:07 · LAX 21:07 · JFK 00:07
    ♥ Do have faith in what you're doing.