Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

tlrh314/supaharris-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supaharris-client

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

Software license Build Status

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()

Pushing new version to PyPi

  • git tag -t v1.0
  • python setup.py sdist bdist_wheel
  • twine upload dist/*