Skip to content

Commit 79276ed

Browse files
authored
Merge pull request #729 from fjebaker/main
Move `astropy.samp` to `pyvo.astropy_samp`
2 parents 5fe74ff + c1308d5 commit 79276ed

29 files changed

+5097
-1
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Enhancements and Fixes
77
- Provide an API for SoftId-compliant management of the 'User-Agent'
88
header [#719]
99

10+
- The ``astropy.samp`` module has been relocated and is now accessible under
11+
``pyvo.samp`` [#729]
12+
1013

1114
Deprecations and Removals
1215
-------------------------

pyvo/samp/__init__.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 Protocol (SAMP)
5+
<http://www.ivoa.net/documents/SAMP/>`_.
6+
7+
Before integration into Astropy 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 astropy import config as _config
13+
14+
from .client import *
15+
from .constants import *
16+
from .errors import *
17+
from .hub import *
18+
from .hub_proxy import *
19+
from .integrated_client import *
20+
from .utils import *
21+
from .vo_helpers import *
22+
23+
24+
class Conf(_config.ConfigNamespace):
25+
"""
26+
Configuration parameters for `pyvo.samp`.
27+
"""
28+
29+
use_internet = _config.ConfigItem(
30+
True,
31+
"Whether to allow `pyvo.samp` to use the internet, if available.",
32+
aliases=["pyvo.samp.utils.use_internet"],
33+
)
34+
35+
n_retries = _config.ConfigItem(
36+
10, "How many times to retry communications when they fail"
37+
)
38+
39+
40+
conf = Conf()

0 commit comments

Comments
 (0)