speedcurve api的python包装器(https://api.speedcurve.com/)

speedcurve.p的Python项目详细描述


https://travis-ci.org/itsmemattchung/speedcurve.py.svg?branch=master

用于SpeedCurve API v1周围的python包装器。受到github3.py

的严重影响

Full documentation

示例使用

fromspeedcurveimportSpeedCurvesc=SpeedCurve(api_key='your-api-key-here')# Get all sites for a usersites=sc.sites()# Get trends and all tests for a URLurls=sc.urls()# Get trends and chrome tests for a URLurls=sc.url(browser='14419')# Get a testtest=sc.test(id='140317_BA_3W8')# Get all the notes for the main sitenotes=sc.notes()# Add a note. Timestamp defaults to now()note=sc.create_note(note="Cleared CDN Cache",detail="Testing origin response times")# Get latest deploymentlatest_deployment=sc.get_latest_deployment()# Get a deployment specified by iddeployment=sc.get_deployment(id=16627)# Add a deployment to default Site for API keysc.add_deployment(note="Code deployment",detail="Triggered a deployment to test session capability")# Add a deployment and trigger round of testing specified by site idsc.add_deployment(site_id=123,note="Code deployment",detail="Triggered a deployment to test origin response times.""")

测试

运行pip install -r dev-requirements.txt。然后可以执行tox

贡献

  1. 分叉存储库并进行更改(将自己添加到authors.rst
  2. 通过运行tox在本地测试更改
  3. 将更改压缩为单个提交
  4. 创建对development的拉取请求分支

注:

如果没有100%的测试覆盖率,travis ci失败。请在找零钱时附上一份测验。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java对来自同一基类的不同对象进行迭代   java打印在JtextArea或JtextPane上   java无法使用Play Core库提供的inapp更新支持更新应用程序   javafxgui中关注点的java分离   onPreferenceChange方法中的java奇怪值   lambda调用包含在Java中可选值的列表中?   servlet中的java int值(无法将字符串转换为int)   尽管有终止表达式,java循环仍不会结束   java是否可以通过编程方式启用远程jmx监视?   java如何创建集合的新实例   如何将自定义Java模块更新为JRE映像   java无法点击Chrome和IE11上的自定义复选框   java Here Android SDK在“无车无车”和“无车无车”街道上导航