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模拟存储库对象从controller testcase返回空结果?   Java扫描程序跳行异常   c#混淆If语句?   java为什么日志中的stacktrace前面没有这一行?   java如何使SSHJ在非标准端口上启动出站SFTP?   java我如何确定为什么每周收入没有在我的程序中显示前三次?   java如何判断堆叠条形图的轴的行为?   java rest json API的Web服务器体系结构   java ClassCastException:javax。摆动按扭   Java在Linux上不读取excel文件(使用Apache POI)   反馈错误后,java Wicket 1.4.9无法从modal使用AjaxRequestTarget!   java方法头中“静态”的含义是什么?   java无法在我的tomcat应用程序中添加外部库   java使用Itext Pdf将图像添加到Pdf文件   java为什么当我调用universe时java3d会闪烁。getCanvas()。getView()。重新油漆();   java Gson嵌套类在使用proguard时为空   java如何确定JSON路径对文档是否有效   java在使用Jsoup解析时保持HTML布尔属性的原始形式   使用Java SDK,如何在Azure存储文件服务中为文件设置元数据?