semvec/pypi-packages huggingface dataset:
supertools 1.0.1
A simple python module to provide .__super ability to python 2 classes.
License: MIT
Keywords: super supertools superable

supertools
==========

A simple python 2 decorator that provide ``.__super`` member to python2 classes as private static member 
in order to not have to specify the current class name.

Without super nor supertools:

.. code:: python

    class MyClass(MyParent) :
        def __init__(self) :
            MyParent.__init__(self)

Classical implementation using super (python 2 syntax):

.. code:: python

    class MyClass(MyParent) :
        def __init__(self) :
            super(MyClass,self).__init__()

Using supertools:

.. code:: python

    from supertools import superable

    @superable
    class MyClass(MyParent) :
        def __init__(self) :
            self.__super.__init__()

Syntax is nice, dosn't repeat neither classname nor parent classname, and doesn't parse callstack at runtime like
other similar modules does.

Note that this syntax is however not compatible with python 3 syntax, which would be in this case:

.. code:: python

    class MyClass(MyParent) :
        def __init__(self) :
            super().__init__()
pysao 1.0.1
python wrapper around SAO XPA and DS9
License: MIT

pysao
=====

This project is aimed to provide a python interface for some programs
developed by Smithsonian Astrophysical Observatory(SAO). One of the
main goal is to communicate with ds9 from python shell via the XPA
protocol. It provides a python wrapper for subset of XPA library and
python module for ds9 based on the XPA module.

Homepage : http://leejjoon.github.com/pysao/

pysao is "easy_install"able.

http://pypi.python.org/pypi/pysao

```
pip install pysao
```

USAGE
=====


```python
>>> import pysao

# run new instance of ds9
>>> ds9 = pysao.ds9()

>>> import numpy
>>> im = numpy.reshape(numpy.arange(100), (10, 10))
# display 2-d array
>>> ds9.view(im)



>>> import pyfits
>>> f = pyfits.open('test.fits')
# display first extension of fits file
>>> ds9.view(f[0])

# access with XPA method. 
>>> ds9.set('file test.fits')
>>> ds9.get('file')

# list available xpa commands
>>> ds9.xpa_help()

# help on the specific xpa command
>>> ds9.xpa_help("tile")
```