Skip to main content

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)

Source distribution for yspacepy 0.2.2
File Size Uploaded
yspacepy-0.2.2.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yspacepy 0.2.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page