Skip to main content

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.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yspacepy-0.2.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file yspacepy-0.2.1.tar.gz.

File metadata

  • Download URL: yspacepy-0.2.1.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

Hashes for yspacepy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 78e0c1a7d672530942941d020137d687b402bf30feaa8d787e76068b1eb57e81
MD5 2d67c8d7f50eaae624133bcfd5190f6b
BLAKE2b-256 157da089210b1c54e350cfa48b2594d53152c3a192513230e7c45ce4f5705980

See more details on using hashes here.

File details

Details for the file yspacepy-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: yspacepy-0.2.1-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

Hashes for yspacepy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a7837ee62594259ce257487a6e29b05c99bc21a2dcf9b54e5add74de01c30a4
MD5 d45adf0347904b7ec1c572075e2a94d4
BLAKE2b-256 839d2b9c99e826a2fafa987962a84ec48cb4e6f79aa123bbca0c5762b5b3c719

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page