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
Metadata
Release files for yspacepy 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yspacepy-0.2.2.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yspacepy-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / yspacepy-0.2.2.tar.gz
| Download URL | yspacepy-0.2.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a7765b598acb82a4367f996f297b8d0e6dd23edcb17012ecca1166071cb8869
|
|
BLAKE2b-256 checksum How to use checksums |
78ad9a6aa5db44dfe5bed6e28308299b1c648a733e75abecd9b2f23e269a34db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / yspacepy-0.2.2-py3-none-any.whl
| Download URL | yspacepy-0.2.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81e88ee91d357ea5bbbf89c309a4725b65481b11a38282f9f28e90bb1e21e490
|
|
BLAKE2b-256 checksum How to use checksums |
f760d136a188a93598b198f14d6ac4bf9e4f45745ab0a4d75000c2f489db097b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|