Metadata-Version: 2.1
Name: yspacepy
Version: 0.2
Summary: http://y-space.pw companion package
Home-page: https://github.com/y-space/yspacepy
Author: Nuno Carvalho
Author-email: narcarvalho@gmail.com
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: astropy


# yspacepy

## Synopsis

```python
>>> from yspacepy.objects import sun, earth
>>> sun.radius.value
695508.0
>>> sun.radius.unit
Unit("km")
>>> sun.radius
<Quantity 695508. km>
>>> sun.dist('earth')
<Quantity 1.496e+08 km>
```

## Using the API interface

Using the interface for the [y-space API](http://y-space.pw/api):

```python
>>> from yspacepy.api import ysapi
>>> api = ysapi()
>>> api.messier.list()
['m1', 'm2', 'm3', 'm4', 'm5', ...
>>> api.messier.id('m1')
{'con': 'Tau', 'dec': '+22° 01′', 'dist': '6300', ...
```

## Installation

    $ pip install yspacepy



