Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

API client for the supaharris.com globular & star cluster database

Project description

supaharris-client

API client for the supaharris.com globular and star cluster database

Software license Build Status

Usage with https://www.supaharris.com

from supaharrisclient import SupaHarrisClient

shc = SupaHarrisClient()

shc.print_parameters()
shc.print_astro_object_classifications()
shc.print_astro_objects()

print("\nRetrieved {0} references".format(len(shc.references)))
print("\nReference 0\n  {0:<25s}{1}".format("Key", "Value"))
for k, v in shc.references_json[0].items():
    print("  {0:<25s}{1}".format(k, v))

print("shc.observations.shape:\n{}\n".format(shc.observations.shape))
print("shc.observations.dtype:\n{}\n".format(shc.observations.dtype))
print("shc.observations['RA']:\n{}\n".format(shc.observations['RA']))
print("shc.observations_ref['RA']:\n{}\n".format(shc.observations_ref['RA']))

Usage with local development setup

from supaharrisclient import SupaHarrisClient

shc = SupaHarrisClient(base_url="https://nginx/api/v1/", verify=False)
shc.print_parameters()

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for supaharrisclient, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size supaharrisclient-1.0-py3-none-any.whl (18.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size supaharrisclient-1.0.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page