http://y-space.pw companion package
Project description
yspacepy
Synopsis
>>> from yspacepy.objects import sun, earth
>>> sun.radius.value
695508.0
>>> sun.radius.unit
Unit("km")
>>> sun.radius.to('au').value
0.004649183820234682
>>> sun.radius.to('au').unit
Unit("AU")
>>> 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:
>>> 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yspacepy-0.2.2.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file yspacepy-0.2.2.tar.gz
.
File metadata
- Download URL: yspacepy-0.2.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7765b598acb82a4367f996f297b8d0e6dd23edcb17012ecca1166071cb8869 |
|
MD5 | de0e0d838ca5ff059cbc48f47ccb5def |
|
BLAKE2b-256 | 78ad9a6aa5db44dfe5bed6e28308299b1c648a733e75abecd9b2f23e269a34db |
File details
Details for the file yspacepy-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: yspacepy-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e88ee91d357ea5bbbf89c309a4725b65481b11a38282f9f28e90bb1e21e490 |
|
MD5 | 8bacaddfeed7d23b635c6748a3c94330 |
|
BLAKE2b-256 | f760d136a188a93598b198f14d6ac4bf9e4f45745ab0a4d75000c2f489db097b |