semvec/pypi-packages huggingface dataset:
python-project-stub 0.0.23
Stub files to use as the basis of a Python project that can be packaged and uploaded to PyPI
License: MIT

.. image:: https://img.shields.io/pypi/v/python-project-stub
   :alt: PyPI
   :target: https://pypi.org/project/python-project-stub

.. image:: https://static.pepy.tech/badge/python-project-stub
   :alt: Downloads
   :target: https://pepy.tech/project/python-project-stub

.. image:: https://img.shields.io/github/license/striebel/python-project-stub
   :alt: License
   :target: https://github.com/striebel/python-project-stub/blob/master/LICENSE 

.. image:: https://img.shields.io/badge/python_3-gray
   :alt: Python 3
   :target: https://docs.python.org/3/

.. image:: https://img.shields.io/badge/linux-gray
   :alt: Linux
   :target: https://kernel.org/

The ``python-project-stub`` codebase provides stub files that
can be used to create a Python project that is able to
be packaged and uploaded to the Python Package Index
and hence can be conveniently installed with

.. code-block:: sh
   
   pip install my-project-name
   
The ``Makefile`` provided in the codebase has targets for
building, uploading,
downloading, installing, and executing the package.

Project links
-------------

* Repo: `https://github.com/striebel/python-project-stub
  <https://github.com/striebel/python-project-stub>`_
* PyPI: `https://pypi.org/project/python-project-stub
  <https://pypi.org/project/python-project-stub>`_
* Docs: `https://striebel.github.io/python-project-stub
  <https://striebel.github.io/python-project-stub>`_
just-playback 0.1.8
A small package for playing audio in python                     with file format independent methods for playback control
License: MIT
Keywords: audio,music,wave,wavmp3,media,song,play,player,playback,audioplayer,mp3player


just_playback
=========
A small library for playing audio files in python. Provides file format independent methods for loading audio files, playing, pausing, resuming, stopping, seeking, getting the current playback position, and changing the volume.

The package uses [miniaudio](https://github.com/mackron/miniaudio) for awesome cross-platform, dependency-free asynchronous audio playback that stays away from your main thread.

Installation
-------------
	pip install just_playback

Usage
-------------
``` python
>>> from just_playback import Playback
>>> playback = Playback() # creates an object for managing playback of a single audio file
>>> playback.load_file('music-files/sample.mp3')
# or just pass the filename directly to the constructor

>>> playback.play() # plays loaded audio file from the beginning
>>> playback.pause() # pauses playback. No effect if playback is already paused
>>> playback.resume() # resumes playback. No effect if playback is playing
>>> playback.stop() # stops playback. No effect if playback is not active

>>> playback.seek(60) # positions playback at 1 minute from the start of the audio file. No effect
# if playback is not active
>>> playback.set_volume(0.5) # sets the playback volume to 50% of the audio file's original value

>>> playback.loop_at_end(True) # since 0.1.5. Causes playback to automatically restart when it completes.

>>> playback.active # True if playback is active i.e playing or paused
>>> playback.playing # True if playback is active and not paused
>>> playback.curr_pos # current absolute playback position in seconds from 
				  #	the start of the audio file (unlike pygame.mixer.get_pos). 
>>> playback.paused # True if playback is paused.
>>> playback.duration # length of the audio file in seconds. 
>>> playback.volume # current playback volume
>>> playback.loops_at_end # True if playback is set to restart when it completes.
```