Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New module to query Lowell Observatory astorbDB database #3203

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
39 changes: 39 additions & 0 deletions astroquery/astorbdb/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst

"""
ASTORBDB
-------------------------

:author: Henry Hsieh ([email protected])
"""

# Make the URL of the server, timeout and other items configurable
# See <http://docs.astropy.org/en/latest/config/index.html#developer-usage>
# for docs and examples on how to do this
# Below is a common use case

from astropy import config as _config


class Conf(_config.ConfigNamespace):
"""
Configuration parameters for `astroquery.astorbdb`.
"""
server = _config.ConfigItem(
['https://asteroid.lowell.edu/api/asteroids/'],
'AstorbDB')

timeout = _config.ConfigItem(
30,
'Time limit for connecting to template_module server.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix "template_module"



conf = Conf()

# Now import your public class
# Should probably have the same name as your module
from .core import AstInfo, AstInfoClass

__all__ = ['AstInfo', 'AstInfoClass',
'Conf', 'conf',
]
Loading
Loading