semvec/pypi-packages huggingface dataset:
sle-user 3.1.1
Python implementation of CCSDS SLE User
License: MIT
Requires Python: >=3.4

# SLE User

Implementation of the CCSDS Space Link Extension (SLE) User API in Python. It
provides the [RAF (Return All Frames)](docs/911x1b4.pdf) and
[RCF (Return Channel Frames)](docs/911x2b3.pdf) Return Link Services and the
[CLTU Forward Link Service](docs/912x1b4.pdf).

The CCSDS Space Link Extension (SLE) services are used by all major space
agencies to interconnect ground stations to mission control systems. The
SLE is a standardized protocol that enable such cross-support. In basic terms,
a groundstation communicates with a spacecraft through CCSDS telecommand and
telemetry frames. The transfer of those frames between a groundstation and
a remote mission control system is done via SLE, which is essentially just a
container protocol that runs over [TCP/IP](docs/913x1b2.pdf).
On the side of the groundstation there sits a SLE provider gateway and on
the mission control side there is a SLE user gateway.

This Python package implements the SLE User API and can be used to develop
SLE user gateway applications on top of it.

## Installation

Install via pip:

```bash
$ pip install sle-user
```

## Example

To create a service for receiving all return frames, we create a RAF User.
Then we bind to the remote SLE Provider and start the reception of frames.

```python
import sle

raf_service = sle.RafUser(
    service_instance_identifier=SI_IDENTIFIER,
    responder_host=RESPONDER_HOST,
    responder_port=RESPONDER_PORT,
    auth_level="bind",  # or "all" or None
    local_identifier=LOCAL_IDENTIFIER,
    peer_identifier=PEER_IDENTIFIER,
    local_password=LOCAL_PASSWORD,
    peer_password=PEER_PASSWORD)

raf_service.bind()
raf_service.start()
time.sleep(10)  # wait for 10 seconds to show incoming frames
raf_service.stop()
raf_service.unbind()

```

## Documentation

The API documentation is in [docs/api.md](docs/api.md).

## Contribute

- Issue Tracker: https://gitlab.com/librecube/lib/python-sle-user/-/issues
- Source Code: https://gitlab.com/librecube/lib/python-sle-user

To learn more on how to successfully contribute please read the contributing
information in the [LibreCube guidelines](https://gitlab.com/librecube/guidelines).

## Support

If you are having issues, please let us know. Reach us at
[Matrix](https://app.element.io/#/room/#librecube.org:matrix.org)
or via [Email](mailto:info@librecube.org).

## License

The project is licensed under the MIT license. See the [LICENSE](./LICENSE.txt) file for details.
image-restoration-tools 2.0.4
a package of image restoration by leo
License: MIT

# A package of image restoration by leo

There are three methods in our package, which are 


# import the package

import image_restoration_tools.irt as irt


## 1. input the images dir and the dir path where enhanced images save

irt.restore_dir(imgdir, savedir, path_length=3, isJPEG=False, isBLUR=False)


## 2. input the image path and the path where the enhanced image save

irt.restore_path(imgpath, savepath, path_length=3, isJPEG=False, isBLUR=False)


## 3. input the image and the path where the enhanced image save

import image_restoration_tools.utils

img = utils.imread_uint(imgpath, 3)

irt.restore_image(img, savepath, path_length=3, isJPEG=False, isBLUR=False)



You can set enhancement path by set $path_length$, the smaller the value, the shorter the recovery time will be.

if the degrading process is known as JPEG/Gaussian BLUR, set $isJPEG/isBLUR$ true separately