semvec/pypi-packages huggingface dataset:
quakefeeds 0.2
Python 3 tools for handling USGS earthquake data feeds
License: MIT
Keywords: data json science seismology usgs

quakefeeds
==========

Python 3 tools for handling USGS earthquake data feeds.

The ``quakefeeds`` package provides a class ``QuakeFeed`` that captures data
from a GeoJSON feed, given a valid severity level and time period.
The class provides some shortcuts for accessing data of interest within
the feed and provides other useful methods - e.g. one to generate a simple
Google map plotting quake locations and magnitudes.

The data feeds and a description of their GeoJSON format are available at
http://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php.


Examples of Use
---------------

.. code-block:: python

   >>> from quakefeeds import QuakeFeed
   >>> feed = QuakeFeed("4.5", "day")
   >>> feed.title
   'USGS Magnitude 4.5+ Earthquakes, Past Day'
   >>> feed.time
   datetime.datetime(2015, 4, 16, 19, 18, 39, tzinfo=datetime.timezone.utc)
   >>> len(feed)
   6
   >>> feed[0]
   {'properties': {'cdi': 1, 'tsunami': 0, 'alert': None, ...}
   # full JSON data for first event in feed
   >>> feed.location(0)
   [26.8608, 35.135]
   >>> feed.magnitude(0)
   6.1
   >>> feed.event_title(0)
   'M 6.1 - 47km SW of Karpathos, Greece'
   >>> feed.depth(0)
   20.86
   >>> feed.depths
   <generator object depths at 0x7fef054b5fc0>
   >>> list(feed.depths)
   [20.86, 46.35, 76.54, 48.69, 10, 28.64]
   >>> map1 = feed.create_google_map()
   >>> map2 = feed.create_google_map(style="titled")
   >>> feed.write_google_map("map.html", style="titled")


Scripts
-------

The installation process will install some scripts in addition to the
``quakefeeds`` package:

* ``quakemap``, which plots earthquakes on a Google map
* ``quakestats``, which computes basic statistics for a feed


Dependencies
------------

* Python 3
* `Requests <http://python-requests.org>`_
* `Jinja2 <http://jinja.pocoo.org>`_ template engine (for map generation)
* `docopt <http://docopt.org>`_ (for the scripts)


Installation
------------

Use `pip <http://pip-installer.org>`_ to install the package, its scripts
and their dependencies::

  pip install quakefeeds

Alternatively, you can install from within the unpacked source distribution::

  python setup.py install

(Note that this requires prior installation of
`setuptools <http://pythonhosted.org/setuptools/>`_.)

If you don't want the scripts, copying the ``quakefeeds`` directory from
the source distribution to somewhere in your PYTHONPATH will suffice.
python-hipchat-v1 0.3.5
Easy peasy wrapper for HipChat's v1 API (modified version and credits to kurttheviking)
License: MIT

(Super simple) Python HipChat
=============================

Description
-----------

Easy peasy wrapper for the `HipChat API v1 <https://www.hipchat.com/docs/api>`_. Exposes core URI endpoint wrapper and some basic methods for common integrations.


Dependencies
------------
None beyond the Python standard library.


Usage
-----

Install::

    pip install python-hipchat-v1

Instantiate::

    import hipchat
    hipster = hipchat.HipChat(token=YourHipChatToken)

Request a URI endpoint as described in the HipChat API docs::

    hipster.method(url='method/url/', method="GET/POST", parameters={'name':'value', })

Example::

    # List rooms
    hipster.method('rooms/list')

    # Post a message to a HipChat room
    hipster.method('rooms/message', method='POST', parameters={'room_id': 8675309, 'from': 'HAL', 'message': 'All your base...'})

    # Get history from a room 
    hipster.room_history(room_id='', date=)




Changelog
---------

**v0.3.x**

- Added shortcut method for listing users (thanks @Raizex)
- Added shortcut method for finding user by name (thanks @Raizex)
- Added shortcut method for finding room by name (thanks @Raizex)
- `Added trove classifiers <https://pypi.python.org/pypi?%3Aaction=list_classifiers>`_ (thanks @ghickman)

**v0.2.x**

- `Added Python 3 support without losing support for Python 2 <https://github.com/kurttheviking/python-simple-hipchat/pull/9>`_ (thanks @pimterry)
- `Expose timeout for safer synchronous use <https://github.com/kurttheviking/python-simple-hipchat/pull/3>`_ (thanks @zachsnow)

**v0.1.x**

- Added shortcut method for messaging a room
- Added shortcut method for listing rooms
ucloud-cli 0.6
A simple command-line tool for interacting with UCloud API.
License: MIT
Keywords: ucloud,console,commandline,command

# UCloud API 命令行客户端

本工具提供了一个命令行环境，来方便与 UCloud API 的交互，
如果你对 GNU 系列工具有基本的了解，那么你甚至可以直接上手，无需查看任何帮助。

## 特色功能如下：

1. 完整的命令补全（包含命令名称、枚举参数）；
2. 详尽的帮助文档，与官方保持一致；
3. 数据、代码分离，API 若有变化，仅需更新 .json 配置文件；
4. 支持 OSX / Linux or Unix(?)。

## 安装

```
pip install ucloud-cli
```

## 使用

首先保存如下示例的文件到个人目录的 ~/.ucloudrc 文件中 

```
; Sample UCloud config file

[ucloud]
public_key=
private_key=
base_url=https://api.ucloud.cn
```

接着执行命令

```
ucloud-cli
```

## 说明

### 查看帮助
```
>>> help foo
```

### 切换默认数据中心
```
>>> region bar
```

### 与 API 交互
```
>>> DescribeBucket Offset=0
```

### 非交互模式下使用
```
$ ucloud-cli DescribeBucket Offset=0
```

## 其他
时间仓促，难免有考虑不周的地方，欢迎扔 issue :D