Skip to main content

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.

Source Distribution

supaharrisclient-1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

supaharrisclient-1.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file supaharrisclient-1.0.tar.gz.

File metadata

  • Download URL: supaharrisclient-1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for supaharrisclient-1.0.tar.gz
Algorithm Hash digest
SHA256 08d4dec6be61e0467f5e2b52cebb91434d57d4b666b28d6f59f6a775b3115143
MD5 8c6a192d4e4efcb6d667ff0d5080ed61
BLAKE2b-256 01d73d103e4a0458f534bd3cad629d0945fbfc0bd69955273cd628bd73014f5c

See more details on using hashes here.

File details

Details for the file supaharrisclient-1.0-py3-none-any.whl.

File metadata

  • Download URL: supaharrisclient-1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for supaharrisclient-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf291340c4ab2d37179634a1591fa823c68e61bb16d2ea71c6fda6ecdbf6bf80
MD5 32bb988de006196ad50cad5133c646a7
BLAKE2b-256 7cb6726778946e12b3446880dfd33c0f935edcb2169a53eb4acebb763c0eb721

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