Uptime Robot http://uptimerobot.com 的 Python 项目集成。有一个 Django 版本(https://github.com/arteria/django-uptimerobot)可用,其中包含了 Uptime Robot API 实现,以及 Djangonauts 使用的底层架构。
项目描述
Uptime Robot 的 Python 集成
============
Uptime Robot http://uptimerobot.com 为您的 Python 项目提供集成。
有一个 Django 版本(https://github.com/arteria/django-uptimerobot)可用,其中包含了 Uptime Robot API 实现
和 Djangonauts 使用的底层架构。
安装
------------
从 PyPi 获取最新稳定版
.. code-block:: bash
$ pip install python-uptimerobot
从 GitHub 获取最新提交
.. code-block:: bash
$ pip install -e git+git://github.com/arteria/python-uptimerobot.git#egg=uptimerobot
用法
-----
与 Python 一起使用
.. code-block:: python
>>> from uptimerobot.uptimerobot import UptimeRobot
>>> up = UptimeRobot(UPTIME_ROBOT_API_KEY)
>>> up.addMonitor("arteria-webpage", "https://www.arteria.ch/")
True
在 Shell 中使用:(如果返回值为 0 或 null,则为成功)
.. code-block:: bash
cd /path/to/script/
chmod 755 uptimerobot.py # 如果需要的话
./uptimerobot.py monitorFriendlyName=arteria-webpage monitorURL=https://www.arteria.ch/
历史
-------
最新版
0.1.4
- 扩展 API 的 `.editMonitor()`。
- 默认使用 HTTPs。
0.1.3
- 扩展 API 的 `.deleteMonitorById()`。
0.1.1
- 扩展 API 的 `.getMonitors()`。
0.1.0
- 升级版本
0.0.7
- 支持 Python 3.x
关于 API
-------------
完整的 API 文档在这里:https://uptimerobot.com/api
============
Uptime Robot http://uptimerobot.com 为您的 Python 项目提供集成。
有一个 Django 版本(https://github.com/arteria/django-uptimerobot)可用,其中包含了 Uptime Robot API 实现
和 Djangonauts 使用的底层架构。
安装
------------
从 PyPi 获取最新稳定版
.. code-block:: bash
$ pip install python-uptimerobot
从 GitHub 获取最新提交
.. code-block:: bash
$ pip install -e git+git://github.com/arteria/python-uptimerobot.git#egg=uptimerobot
用法
-----
与 Python 一起使用
.. code-block:: python
>>> from uptimerobot.uptimerobot import UptimeRobot
>>> up = UptimeRobot(UPTIME_ROBOT_API_KEY)
>>> up.addMonitor("arteria-webpage", "https://www.arteria.ch/")
True
在 Shell 中使用:(如果返回值为 0 或 null,则为成功)
.. code-block:: bash
cd /path/to/script/
chmod 755 uptimerobot.py # 如果需要的话
./uptimerobot.py monitorFriendlyName=arteria-webpage monitorURL=https://www.arteria.ch/
历史
-------
最新版
0.1.4
- 扩展 API 的 `.editMonitor()`。
- 默认使用 HTTPs。
0.1.3
- 扩展 API 的 `.deleteMonitorById()`。
0.1.1
- 扩展 API 的 `.getMonitors()`。
0.1.0
- 升级版本
0.0.7
- 支持 Python 3.x
关于 API
-------------
完整的 API 文档在这里:https://uptimerobot.com/api
项目详情
关闭
python-uptimerobot-0.1.5.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 1e5cfd9cd097f8239ccc731d71ad939832c21e546444c44605f0dd5a78ce7806 |
|
MD5 | b68f4882e9ac940169aa26154cc0ffd0 |
|
BLAKE2b-256 | edffbcc7b145be5a327a835b8a9cd020b7cfce1966356a836f8ccac77bb55493 |