semvec/pypi-packages huggingface dataset:
fetch-deepl 0.1.2
Fetch result from a deepl-fastapi API.
License: MIT
Requires Python: >=3.8.3,<4.0.0

# fetch-deepl
[![pytest](https://github.com/ffreemt/fetch-deepl/actions/workflows/routine-tests.yml/badge.svg)](https://github.com/ffreemt/fetch-deepl/actions)[![python](https://img.shields.io/static/v1?label=python+&message=3.8%2B&color=blue)](https://www.python.org/downloads/)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![PyPI version](https://badge.fury.io/py/fetch_deepl.svg)](https://badge.fury.io/py/fetch_deepl)

Fetch translation text from a deepl-fastapi API.

## Install it

```shell
pip install fetch-deepl

# pip install git+https://github.com/ffreemt/fetch-deepl
# poetry add git+https://github.com/ffreemt/fetch-deepl
# git clone https://github.com/ffreemt/fetch-deepl && cd fetch-deepl
```

## Use it
```python
from fetch_deepl import fetch_deepl

print(fetch_deepl("Tell me and I forget. Teach me and I remember. Involve me and I learn."))
# 告诉我，我就忘了。教导我，我就记住。让我参与，我就学

print(fetch_deepl("书山有路勤为径"))
# There is a path to the mountain of books and diligence is the path

print(fetch_deepl("There is a path to the mountain of books and diligence is the path", from_lang="en", to_lang="de"))
# Es gibt einen Weg zum Berg der Bücher und Fleiß ist der Weg

print(fetch_deepl("书山有路勤为径", from_lang="zh", to_lang="de"))
# Es gibt einen Weg durch die Berge des Lernens und des Fleißes
```

Supported languages can be obtained from deepl's homepage, as of today:
```python
from pprint import pprint
from fetch_deepl import lang_dict
pprint(lang_dict)
```
```shell
{'bg': 'Bulgarian',
 'cs': 'Czech',
 'da': 'Danish',
 'de': 'German',
 'el': 'Greek',
 'en': 'English',
 'es': 'Spanish',
 'et': 'Estonian',
 'fi': 'Finnish',
 'fr': 'French',
 'hu': 'Hungarian',
 'id': 'Indonesian',
 'it': 'Italian',
 'ja': 'Japanese',
 'lt': 'Lithuanian',
 'lv': 'Latvian',
 'pl': 'Polish',
 'pt': 'Portuguese',
 'ro': 'Romanian',
 'ru': 'Russian',
 'sk': 'Slovak',
 'sl': 'Slovenian',
 'sv': 'Swedish',
 'tr': 'Turkish',
 'zh': 'Chinese (simpl.)'}
```
pyqt-music-player-widget 0.0.31
PyQt music player widget
License: MIT


# pyqt-music-player-widget
PyQt music player widget

## Requirements
PyQt5 >= 5.8

## Setup
`python -m pip install pyqt-music-player-widget`

## Included Packages
* <a href="https://mutagen.readthedocs.io/en/latest/index.html">mutagen</a>
* <a href="https://github.com/yjg30737/pyqt-media-slider.git">pyqt-media-slider</a>
* <a href="https://github.com/yjg30737/pyqt-svg-button.git">pyqt-svg-button</a>

This is using `mutagen` to get the full length of the media.

This only works for mp3 extension.

## Method/Signal Overview
* Methods - `play()`, `pause()`, `stop()`
* Signals - `played(bool)`, `positionUpdated(int)`, `durationUpdated(int)`

## Example
```python
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QApplication, QFormLayout
from pyqt_find_path_widget import FindPathWidget  # https://github.com/yjg30737/pyqt-find-path-widget.git

from pyqt_music_player_widget import MusicPlayerWidget


class MusicPlayerExample(QWidget):
    def __init__(self):
        super().__init__()
        self.__initUi()

    def __initUi(self):
        self.__findPathWidget = FindPathWidget()
        self.__findPathWidget.setExtOfFiles('Audio Files (*.mp3)')
        self.__findPathWidget.added.connect(self.__added)

        lay = QFormLayout()
        lay.addRow('Audio File', self.__findPathWidget)
        lay.setContentsMargins(0, 0, 0, 0)

        pathFindWidget = QWidget()
        pathFindWidget.setLayout(lay)

        self.__musicPlayerWidget = MusicPlayerWidget()

        lay = QVBoxLayout()
        lay.addWidget(pathFindWidget)
        lay.addWidget(self.__musicPlayerWidget)

        self.setLayout(lay)

    def __added(self, filename: str):
        self.__musicPlayerWidget.setMedia(filename)


if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    player = MusicPlayerExample()
    player.show()
    sys.exit(app.exec_())
```

Result

![image](https://user-images.githubusercontent.com/55078043/180103955-9e2012ce-33dc-4eca-9d28-446b1119404e.png)
pyqt-media-slider 0.0.13
PyQt media slider
License: MIT


# pyqt-media-slider
This is QSlider which supports the smoothly draggable handle, direct handle placement to click position for media(audio, video).

## Requirements
PyQt5 >= 5.8

## Setup
`python -m pip install pyqt-media-slider`

## Included Packages
* <a href="https://github.com/yjg30737/pyqt-resource-helper.git">pyqt-resource-helper</a>

## Signal
* ```pressed(int)``` Signal emit when presses the handle
* ```dragged(int)``` Signal emit when drags the handle
* ```released(int)``` Signal emit when releases the handle

## Example

```python
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QApplication

from pyqt_media_slider.mediaSlider import MediaSlider


class MediaSliderExample(QWidget):

    def __init__(self):
        super().__init__()
        self.__initUi()

    def __initUi(self):
        self.__slider = MediaSlider()
        lay = QHBoxLayout()
        lay.addWidget(self.__slider)
        self.setLayout(lay)


if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    player = MediaSliderExample()
    player.show()
    app.exec_()
```

Result

https://user-images.githubusercontent.com/55078043/151730656-42ecb8e1-3987-415c-bc5f-8ae1d10bf2e6.mp4
exencolor 1.1.3
A modern module for colored output.
License: MIT
Requires Python: >=3.10,<4.0
Keywords: colored,ansi

![tests](https://github.com/Exenifix/exencolor/actions/workflows/test.yml/badge.svg)
![PyPI - Downloads](https://img.shields.io/pypi/dm/exencolor)
![License](https://img.shields.io/github/license/Exenifix/exencolor)
![PyPI - Version](https://img.shields.io/pypi/v/exencolor)
![CodeFactor](https://www.codefactor.io/repository/github/exenifix/exencolor/badge)

# ExenColor
A modern module for colored output.


## Installation
The module is available for installation from PyPI via pip:
```shell
$ pip install exencolor
```

## Examples

### Foreground

```python
from exencolor import colored, Color

print(colored("Hello World!", foreground=Color.GREEN))
```
![output](https://github.com/Exenifix/exencolor/blob/master/.github/img/foreground.png?raw=true)

### Background

```python
from exencolor import colored, Color

print(colored("Hello World!", background=Color.BLUE))
```
![output](https://github.com/Exenifix/exencolor/blob/master/.github/img/background.png?raw=true)

### Decorations

```python
from exencolor import colored, Decoration

print(colored("Hello World!", decoration=Decoration.UNDERLINE))
```
![output](https://github.com/Exenifix/exencolor/blob/master/.github/img/deco1.png?raw=true)

```python
from exencolor import colored, Decoration

print(colored("Hello World!", decorations=[Decoration.UNDERLINE, Decoration.BOLD]))
```
![output](https://github.com/Exenifix/exencolor/blob/master/.github/img/deco2.png?raw=true)

### Combined

```python
from exencolor import colored, Decoration, Color

print(colored("Hello World!", foreground=Color.BRIGHT_CYAN, background=Color.BRIGHT_YELLOW, decoration=Decoration.UNDERLINE))
```
![output](https://github.com/Exenifix/exencolor/blob/master/.github/img/combined.png?raw=true)