Skip to content
Draft
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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