Metadata-Version: 2.1
Name: soloman
Version: 2.1
Summary: For the love of python and qml
Home-page: https://github.com/deuteronomy-works/soloman
Author: Amoh - Gyebi Godwin Ampofo Michael
Author-email: amohgyebigodwin@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/deuteronomy-works/soloman/issues/
Project-URL: Documentation, https://github.com/deuteronomy-works/soloman/wiki/
Project-URL: Source Code, https://github.com/deuteronomy-works/soloman/
Keywords: audio,pyaudio,ffmpeg,qml,pyffmpeg
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: pyaudio
Requires-Dist: pyffmpeg

# soloman
For the love of python and qml

## Installation
    pip install soloman

## Usage for python

### Play audio
```python
from soloman import Audio


aud = Audio()
aud.play('/path/to/music.mp3')
```

## Qml Usage
example.py
```python
import soloman
...
engine = QQmlApplicationEngine()
...
engine.load('example.qml')

```

### Play audio
*example.qml*

```qml
import QtQuick 2.14
...
import soloman 2.1

SAudio {
    id: aud
}

Button {
    text: "Play"
    onClicked: aud.play('path/to/music.mp3')
}

```

### Play videos
*example.qml*

#### Play a video file

```qml
import QtQuick 2.14
...
import soloman 2.1

SVideo {
    id: vid
}

Button {
    text: "Play video"
    onClicked: vid.play('path/to/video.mp4')
}
```

### Play stills

##### Option one

```qml
...
    onClicked: vid.play('path/to/video_stills_01.jpg') # possibly the first image
...
```

##### Option two

```qml
...
    onClicked: vid.play('path/to/') # make sure folder contains only stills
...
```





## Wiki

The wiki can be located [here](https://github.com/deuteronomy-works/soloman/wiki)


