Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
74515fa
`SAMPy` code added within `astropy.vo.samp` package, and `sampy` scri…
Apr 10, 2013
9589367
Add astropy license line to sampy files
cdeil Apr 12, 2013
3150f5f
Add docstring to `vo` and `vo.samp` packages
cdeil Apr 12, 2013
8e71a8d
Fix imports in `vo/samp/__init__.py`
cdeil Apr 12, 2013
9231841
Remove unused imports in sampy
cdeil Apr 13, 2013
092eff1
Remove vo.cfg
cdeil Apr 13, 2013
546e894
Add first unit test for vo.samp
cdeil Apr 13, 2013
97930c7
Add docs/vo/samp/index.rst file
cdeil Apr 13, 2013
ac301f4
Fix except statement in vo.samp.core
cdeil Apr 13, 2013
4ed20f8
Removed the GPL license and the automatic Subversion keywords
Apr 16, 2013
615acad
Modified exceptions format in order to follow the Astropy style guide…
Jun 19, 2013
8421e04
Code modified in order to support Python 3.
Jun 21, 2013
be361c8
Completed the set of test for classes instatiation. SAMP Hub start/st…
Jun 21, 2013
cc49d20
First implementation of an alternative Web Profile "popup" message fo…
Jun 24, 2013
247fa7e
Useless cross_domain limitation to http protocol removed
Aug 7, 2013
a588e10
Import `sampy` changed to import `astropy.vo.samp` in order to avoid …
Aug 8, 2013
305b82c
Missing reference to the package fixed, and some `print` made complia…
Aug 8, 2013
4dad296
__doctest_skip__ added
Aug 8, 2013
be58730
Web Profile disabled for tests (port 21012 could be closed on testing…
Aug 8, 2013
9ec973a
SAMPHubServer attribute _is_running initialized at the very beginning…
Aug 8, 2013
3a7d97d
Decorator `@remote_data` set for those tests that require a socket op…
Aug 8, 2013
5823603
Added `@remote_data` decorator to all tests which potentially try to …
Aug 8, 2013
d7858e1
Useless `if __name__ == "__main__"` removed
Aug 9, 2013
ef200a1
Additional docstrings added which briefly describe the internal classes.
Aug 9, 2013
e552e35
Move comments from samp core.py to __init__.py
cdeil Aug 14, 2013
94d8414
Move extensive example to sphinx docs; minor cleanup
cdeil Aug 14, 2013
00b2dec
Remove unused includes
cdeil Aug 14, 2013
4911d90
Rename astropy.vo.samp.core to astropy.vo.samp.utils
cdeil Aug 14, 2013
09f6708
Break up astropy.vo.samp into multiple files.
cdeil Aug 14, 2013
4ec5b64
Remove import * in vo.samp ... now imports are fixed for Python 3
cdeil Aug 14, 2013
2cbd0be
Fix docstring parsing error in vo.samp with Python 3
cdeil Aug 14, 2013
d8b938a
Simplify Python 2 / 3 imports a bit by using the six compat module
cdeil Aug 14, 2013
f08fb47
Manually convert all vo.samp docstrings from epydoc to numpydoc format
cdeil Aug 14, 2013
978d06f
Run autopep8 to clean up all astropy.vo.samp code
cdeil Aug 14, 2013
d0b8e3a
Fix import in sampy command line script
cdeil Sep 25, 2013
caa05ad
minor vo.samp docstring fixes
cdeil Sep 25, 2013
e9a2c6d
Format and expand vo.samp documentation
cdeil Sep 25, 2013
3f928ff
Subclass SAMPProxyError from xmlrpc.Fault
cdeil Sep 25, 2013
c6ce444
Remove workarounds for Python 2.5 and earlier
astrofrog Dec 14, 2013
dcd6f4b
Fix imports
astrofrog Dec 14, 2013
6098125
More code cleanup, removed more code for Python versions prior to 2.6
astrofrog Dec 14, 2013
9cb1e24
Fixed docstring syntax for optional arguments
astrofrog Dec 14, 2013
e3f50b6
Docstring cleanup
astrofrog Dec 14, 2013
ea0d04c
Disable testing of docs
astrofrog Dec 15, 2013
9b76d1a
Removed SAMPLog and use Astropy logging class instead
astrofrog Dec 15, 2013
7b2e805
Added TOPCAT table examples
astrofrog Dec 15, 2013
050b282
Move SAMPIntegratedClient below SAMPClient and re-use docstrings for …
astrofrog Dec 15, 2013
128a157
Fixed warning in docs
astrofrog Dec 15, 2013
7f06a03
Remove Tk code (and use terminal prompt as the default instead).
astrofrog Dec 16, 2013
23e716e
Split up client.py into multiple files
astrofrog Dec 19, 2013
d1f9259
Separate out code for hub script into a separate file
astrofrog Dec 19, 2013
e0b27bc
Esthetic fixes
astrofrog Dec 19, 2013
fbacd67
Fix documentation failure
astrofrog Dec 19, 2013
add6cce
Fix typo
astrofrog Dec 19, 2013
df62f62
Improve documentation for sending/receiving tables
astrofrog Dec 19, 2013
66c3bdc
Improved examples for sending/receiving tables and images
astrofrog Dec 19, 2013
b5132f2
Change icon to Astropy
astrofrog Dec 19, 2013
beffa0f
Fix TOC
astrofrog Dec 19, 2013
7747adc
Fix command-line hub (logging was broken) and remove --log-error comm…
astrofrog Dec 19, 2013
532d94a
Renamed sampy script to samp_hub to avoid name conflict for people wh…
astrofrog Dec 19, 2013
4c06a79
Fix intersphinx and syntax
astrofrog Dec 19, 2013
04e97ee
Update references
astrofrog Dec 19, 2013
7874376
Improvements to docs
astrofrog Dec 19, 2013
fa05a58
Fix Sphinx warning
astrofrog Dec 19, 2013
09af384
Make all method names PEP8-compliant
astrofrog Dec 20, 2013
bde3d7c
Added more tests for SAMPIntegratedClient
astrofrog Dec 28, 2013
2ef3799
Fixed call to callAndWait
astrofrog Dec 28, 2013
4ab51c1
More tests for SAMPIntegratedClient
astrofrog Dec 28, 2013
6d445fd
PEP8
astrofrog Dec 28, 2013
1401168
Added simple tests for SAMPHubProxy
astrofrog Dec 28, 2013
800ffec
Use temporary SAMP lock file
astrofrog Dec 28, 2013
ae474aa
Use temporary lockfile
astrofrog Dec 28, 2013
2aea26d
Update docs to lowercase API
astrofrog Dec 28, 2013
921743e
Small fixes
astrofrog Dec 28, 2013
ca86617
Small improvements to docs
astrofrog Dec 28, 2013
b8ab195
Added test for ecall_and_wait
astrofrog Dec 31, 2013
bbba202
Added configuration item to always disable internet, use it for tests…
astrofrog Dec 31, 2013
61ce644
Improvements to documentation
astrofrog Jan 1, 2014
d9a8025
Fixes to use web profile
astrofrog Jan 1, 2014
7752c8d
Fixed errors reported by pylint
astrofrog Jan 1, 2014
5725c99
PEP8 fixes
astrofrog Jan 1, 2014
5f303a3
Fix docstrings
astrofrog Jan 1, 2014
933c1ae
Removed remaining references to SAMPy
astrofrog Jan 3, 2014
9f717dc
Fix imports
astrofrog Jan 4, 2014
7d8c2f2
Use a new function to make sure we wait until the client attribute ex…
astrofrog Jan 4, 2014
5a28809
Fix table receiving example to include the reply to calls
astrofrog Jan 11, 2014
0bc116c
Update full example for receiving table
astrofrog Jan 12, 2014
f6ab52b
Fix error formatting
astrofrog Jan 14, 2014
eaad160
Generalize the dialog for web profile connections
astrofrog Jan 14, 2014
6bb2009
Refactored how the web profile confirmation dialog is handled, and ad…
astrofrog Jan 15, 2014
20ce6a3
Improvements to documentation on starting hub
astrofrog Jan 15, 2014
2df6cc8
More tidying up of docs
astrofrog Jan 15, 2014
53cfffd
Added mention of web profile and sampjs
astrofrog Jan 15, 2014
76a67c3
Added CHANGES.rst entry
astrofrog Jan 15, 2014
1420094
Improvements to docstrings and coding style following comments by @md…
astrofrog Jan 16, 2014
5ef976d
Improvements to docstring for SAMPIntegratedClient
astrofrog Jan 16, 2014
74f9fe2
Rename keyfile to key_file and certfile to cert_file for consistency
astrofrog Jan 16, 2014
e194667
Start making exception catching more specific, as suggested by @mdboom
astrofrog Jan 16, 2014
4739941
Clean up ssl_version keyword arguments (always use ``None`` to get th…
astrofrog Jan 17, 2014
93703fc
Make sure that doctests are skipped for vo.samp
astrofrog Jan 17, 2014
e6173b1
Fixes to SAMPClient docstrings
astrofrog Jan 17, 2014
ebef046
Re-factored some imports using six
astrofrog Jan 17, 2014
b46526b
Fix exception catching and keyword arguments
astrofrog Jan 17, 2014
0c6548a
Removed debugging code from ``internet_on``
astrofrog Jan 18, 2014
1508cb2
Remove Berkeley DB code (since bsddb was deprecated in Python 3), and…
astrofrog Jan 18, 2014
d8023a4
More code re-organization
astrofrog Jan 18, 2014
2ba9547
Tidied up code related to lockfiles, and ensure that ID of hubs is tr…
astrofrog Jan 19, 2014
914bb02
Isolate code related to file locking
astrofrog Jan 19, 2014
b9ec977
Distinguish between lockfile itself and custom lockfile name
astrofrog Jan 19, 2014
bde8189
Use cross-platform user home directory, and move code to find main hu…
astrofrog Jan 19, 2014
416dea7
Make use of get_pkg_data_filename for icon
astrofrog Jan 19, 2014
4a7bc7a
Remove SAMP_HUB_SINGLE_INSTANCE and SAMP_HUB_MULTIPLE_INSTANCE consta…
astrofrog Jan 19, 2014
f67ada0
Fix bug in lockfile_helpers
astrofrog Jan 19, 2014
78de23f
Avoid use of eval()
astrofrog Jan 19, 2014
273b151
Tidied up threading to avoid losing handles on threads
astrofrog Jan 19, 2014
c16c4ab
Fix boolean comparisons
astrofrog Jan 19, 2014
de36d56
Fixed single backticks to double backticks for non-literals
astrofrog Jan 19, 2014
e4b9b0c
Fixed & to and
astrofrog Jan 19, 2014
863879b
Fixed read_lockfile for Python 3.x
astrofrog Jan 19, 2014
606883c
More improvements to docstrings
astrofrog Jan 19, 2014
f59167e
Move code to determine the number of arguments in a function to a ded…
astrofrog Jan 19, 2014
aecfa6e
Make use of urlunparse to construct URLs
astrofrog Jan 19, 2014
4704447
Simplify the ``web_profile_dialog`` option
astrofrog Jan 19, 2014
704e5d5
Implement context managers for client, integrated client, and hub, an…
astrofrog Jan 19, 2014
cd7cf62
Raise exception if client was not successfully shut down
astrofrog Jan 19, 2014
76fe49d
Fix tests for integrated client
astrofrog Jan 19, 2014
18ac658
Avoid race condition when creating .samp-1 directory
astrofrog Jan 19, 2014
b3c6f2e
Try and disconnect client1 to fix test_integrated_client tests
astrofrog Jan 19, 2014
8bf0f84
Switched samp_hub to use argparse
astrofrog Jan 20, 2014
0916037
Tidied up exception catching
astrofrog Jan 21, 2014
b3b8f36
Fixed imports
astrofrog Jan 21, 2014
37dc58e
Fixed line wrap in docs
astrofrog Jan 21, 2014
40705fb
Fix minor bug introduced when refactoring exception catching
astrofrog Jan 21, 2014
53b1a8b
More improvements to docstrings
astrofrog Jan 21, 2014
92b660c
Fix docstring
astrofrog Jan 21, 2014
a041be1
Fix docstring for SAMPClient.start and ensure that _is_running does n…
astrofrog Jan 21, 2014
9f9165a
Use _find_home() instead of os.path.expanduser('~')
astrofrog Jan 21, 2014
5392f20
Added initial tests for SSL connection. In the case where both the se…
astrofrog Jan 21, 2014
7f89988
Added test for SAMP hub script
astrofrog Jan 21, 2014
8c8f664
Rename hub_script.main() to hub_script.hub_script() (otherwise covera…
astrofrog Jan 21, 2014
c6e4579
Simplify creating GUI windows for SAMP consent.
mdboom Jan 21, 2014
350852f
Don't require show_dialog to be passed to handle_queue
mdboom Jan 22, 2014
826f747
Make client and hub more robust if host_name from socket.getfqdn does…
astrofrog Jan 22, 2014
a4e16ce
Added helper classes for testing the web profile
astrofrog Jan 22, 2014
e266b95
Added a test for the web profile
astrofrog Jan 22, 2014
67719a7
Check XML files and headers returned for web profile
astrofrog Jan 23, 2014
90590cc
Don't require 2to3 for astropy.vo.samp
astrofrog Jan 23, 2014
77b7cb9
PEP8 Fixes
astrofrog Jan 23, 2014
9506777
Clarify ``callable`` option
astrofrog Jan 23, 2014
51443bf
Set a timeout for the web profile test
astrofrog Jan 23, 2014
f301a5a
Fixed a few more very long lines
astrofrog Jan 23, 2014
0c21309
Tidied up long lines in hub.py and fixed a docstring error in SAMPClient
astrofrog Jan 23, 2014
60981d2
Removed unused code
astrofrog Jan 27, 2014
ef41b39
Fixed a few API links
astrofrog Jan 27, 2014
f4bdff0
Fix bugs related to using SSL in SAMP clients, which solves the previ…
astrofrog Jan 27, 2014
e5d4687
Fix call_and_wait test
astrofrog Jan 28, 2014
3d38c69
Use a random port for web profile tests
astrofrog Jan 28, 2014
f709340
Fixed web profile test on Windows, and remove unused imports from tests
astrofrog Jan 28, 2014
571b6b6
Fix standard profile code for Python 3.1
astrofrog Jan 29, 2014
eb4a3b1
Make sure tests use ALLOW_INTERNET set to False, and also make sure t…
astrofrog Jan 29, 2014
35442bd
Xfail HTTPS tests on Python 3.1
astrofrog Jan 30, 2014
d66e77c
Make sure that timeout threads only get run if needed. Also make sure…
astrofrog Jan 30, 2014
5e524eb
Refactor integrated client tests to speed them up, and remove now red…
astrofrog Jan 30, 2014
50c7584
Avoid duplicated code in web profile test, and fix replies from Recei…
astrofrog Jan 30, 2014
1df7e54
Have web profile tests inherit full communications test from TestStan…
astrofrog Jan 30, 2014
10a8a30
Reply before writing out test file to avoid race condition.
astrofrog Jan 31, 2014
1dcaf7e
Added comment to explain why race condition was occurring
astrofrog Jan 31, 2014
d0d8d87
Fix double backticks in docstrings as reported by @embray
astrofrog Jan 31, 2014
e38de77
Use Thread.daemon instead of Thread.setDaemon, use thread lock contex…
astrofrog Jan 31, 2014
685999e
Fixed another instance os Thread.setDaemon -> Thread.daemon
astrofrog Jan 31, 2014
55cd01f
Clarify client details in web dialog
astrofrog Jan 31, 2014
8f26164
Fixed wrap in docstring
astrofrog Jan 31, 2014
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
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ New Features

- ``astropy.vo``

- A new sub-package, `astropy.vo.samp`, is now available (this was previously
the SAMPy package, which has been refactored for use in Astropy). [#1907]

- ``astropy.wcs``

API Changes
Expand Down
4 changes: 4 additions & 0 deletions astropy/vo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
The `vo` subpackage provides virtual observatory (VO) related functionality.
"""
17 changes: 17 additions & 0 deletions astropy/vo/samp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This subpackage provides classes to communicate with other applications via the
`Simple Application Messaging Protocal (SAMP) <www.ivoa.net/samp>`_.

Before integration into Astropy it was known as
`SAMPy <https://pypi.python.org/pypi/sampy/>`_, and was developed by Luigi Paioro
(INAF - Istituto Nazionale di Astrofisica).
"""

from .constants import *
from .errors import *
from .utils import *
from .hub import *
from .client import *
from .integrated_client import *
from .hub_proxy import *
Loading