status.github.com的python包装器

whadup的Python项目详细描述


whadup是一个用python编写的apache许可库,它提供了 易于使用的包装https://status.github.com

安装:

源代码使用

$ python setup.py install

或者从PyPi安装

$ pip install whadup

文档:

  • get/api/status.json

    >>> from whadup import GithubStatus
    >>> gh = GithubStatus()
    >>> gh.status()
    {"status":"good","last_updated":"2015-08-29T15:59:44Z"}
    
  • get/api/last message.json

    >>> gh.lastmessage()
    {"status":"good","body":"Everything operating normally.","created_on":"2015-08-25T13:49:29Z"}
    
  • get/api/messages.json

    >>> gh.messages()
    [
    {
                           "status": "good",
                           "body": "Everything operating normally.",
                           "created_on": "2015-08-25T13:49:29Z"
    },
    {
                           "status": "good",
                           "body": "Service has been restored. We continue to monitor the situation closely.",
                           "created_on": "2015-08-25T12:52:30Z"
    },
    {
                           "status": "minor",
                           "body": "We are restoring service as we mitigate a DDoS attack. Response times may be slower while this work continues.",
                           "created_on": "2015-08-25T12:08:21Z"
    },
    {
                           "status": "minor",
                           "body": "We are restoring service as we mitigate a DDoS attack.",
                           "created_on": "2015-08-25T11:27:21Z"
    },
    {
                           "status": "major",
                           "body": "We are continuing to work to mitigate an ongoing DDoS attack.",
                           "created_on": "2015-08-25T11:06:09Z"
    },
    {
                           "status": "major",
                           "body": "The connectivity problems have been identified as a DDoS attack. We're working to mitigate now.",
                           "created_on": "2015-08-25T10:38:32Z"
    },
    {
                           "status": "minor",
                           "body": "We're continuing to diagnose reports of connectivity problems.",
                           "created_on": "2015-08-25T10:07:20Z"
    },
    {
                           "status": "minor",
                           "body": "We are investigating reports of connectivity problems.",
                           "created_on": "2015-08-25T09:39:12Z"
    },
    {
                           "status": "good",
                           "body": "Everything operating normally.",
                           "created_on": "2015-08-24T16:08:32Z"
    },
    {
                           "status": "minor",
                           "body": "We're investigating a brief capacity overload. Systems are recovering.",
                           "created_on": "2015-08-24T15:58:07Z"
    },
    {
                           "status": "minor",
                           "body": "Minor service outage.",
                           "created_on": "2015-08-24T15:47:02Z"
    }
    ]
    

许可证:

Apache v2.0 License
Copyright 2015-2016 Martin Simon

        Licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at

                         http://www.apache.org/licenses/LICENSE-2.0

        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.

给我买杯咖啡?

如果你想给我买杯咖啡(或啤酒?),欢迎捐款:

WDC : WbcWJzVD8yXt3yLnnkCZtwQo4YgSUdELkj
HBN : F2Zs4igv8r4oJJzh4sh4bGmeqoUxLQHPki
DOGE: DRBkryyau5CMxpBzVmrBAjK6dVdMZSBsuS

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

推荐PyPI第三方库


热门话题
java在创建hashmap时正确使用泛型   java java编译器和模块   从每个ArrayList对象具有多个值的ArrayList写入文本文件(java)   java日程表每日报警管理器   显示客户端屏幕的java   尝试使用jpcap读取数据包时出现网络编程异常(java.lang.InstanceionException)   java如何为API测试创建JSESSIONID   ReportServer中的电子邮件SMTP配置和java错误。没有为PKCS#12密钥库提供密码   java如何最小化UDP数据包丢失   使用自定义hibernate类型时出现java ehcache错误?   java异步servlet,我们为什么需要它   java元数据项错误   security Java安全地存储代码中使用所需的用户帐户详细信息   替换文件中包含的文件名,并使用java将文件重命名为新名称   java Lucene按国家排序   java casting Integer>Object和更高版本的Object>Integer   java如何从电子表格行项将准备好的语句循环到derby数据库   需要安卓 java中模型的值名称