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

求推荐 python 靠谱的 mock server

  •  
  •   SlipStupig · Oct 7, 2016 · 4759 views
    This topic created in 3580 days ago, the information mentioned may be changed or developed.
    这两天由于折腾一个前后对接的 case ,用了两个 python 的 mock server 项目: mockpy 和 mock-server , mockpy 死活运行不起来, mock-server 可以运行但是连个文档都没有,实在不知道从哪里下手,求各位帮助
    9 replies    2016-10-08 23:17:59 +08:00
    neoblackcap
        1
    neoblackcap  
       Oct 7, 2016
    还后端 mock 个毛线,叫前端用 express 自己解决。反正他们现在工作不是也要开 dev server 么?
    SlipStupig
        2
    SlipStupig  
    OP
       Oct 8, 2016
    @neoblackcap 情况比较特殊,我也不想,但是没办法,都得我来做
    findex
        3
    findex  
       Oct 8, 2016
    不懂你的具体需求是做什么
    SlipStupig
        4
    SlipStupig  
    OP
       Oct 8, 2016
    @findex 前端需要有一个假的后端方便开发
    VicYu
        5
    VicYu  
       Oct 8, 2016 via Android
    swagger ,就是配置麻烦
    winkidney
        6
    winkidney  
       Oct 8, 2016   ❤️ 1
    mock-server 不需要文档……
    直接在 web 界面添加某个 URL 的返回就好了……
    https://github.com/tomashanacek/mock-server
    也是刚好贡献过两行没用的代码, boom
    lrh3321
        7
    lrh3321  
       Oct 8, 2016
    自己用 flask 写一个,路由规则里匹配所有的。

    然后,根据 url 去数据库里取预置的数据,返回给前端。
    leopku
        8
    leopku  
       Oct 8, 2016   ❤️ 1
    json-server
    nodejs 的,很好用
    mingyun
        9
    mingyun  
       Oct 8, 2016
    @leopku 这个方便
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3323 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:15 · PVG 20:15 · LAX 05:15 · JFK 08:15
    ♥ Do have faith in what you're doing.