Skip to content

Commit b301f56

Browse files
committed
WIP: Move astropy.samp to PyVO
1 parent cfbd8f6 commit b301f56

27 files changed

+4688
-0
lines changed

pyvo/astropy_samp/__init__.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
"""
3+
This subpackage provides classes to communicate with other applications via the
4+
`Simple Application Messaging Protocal (SAMP)
5+
<http://www.ivoa.net/documents/SAMP/>`_.
6+
7+
Before integration into Astropy (and later PyVO), it was known as
8+
`SAMPy <https://pypi.org/project/sampy/>`_, and was developed by Luigi Paioro
9+
(INAF - Istituto Nazionale di Astrofisica).
10+
"""
11+
12+
from .constants import *
13+
from .errors import *
14+
from .utils import *
15+
from .hub import *
16+
from .client import *
17+
from .integrated_client import *
18+
from .hub_proxy import *
19+
20+
21+
from astropy import config as _config
22+
23+
24+
class Conf(_config.ConfigNamespace):
25+
"""
26+
Configuration parameters for `pyvo.astropy_samp`.
27+
"""
28+
29+
use_internet = _config.ConfigItem(
30+
True,
31+
"Whether to allow `pyvo.astropy_samp` to use "
32+
"the internet, if available.",
33+
aliases=['pyvo.astropy_samp.utils.use_internet'])
34+
35+
n_retries = _config.ConfigItem(10,
36+
"How many times to retry communications when they fail")
37+
38+
39+
conf = Conf()

0 commit comments

Comments
 (0)