Skip to main content

Smarty

Latest version Number of PyPI downloads

A smart playlist generator for MPD written in python.

Installation

Using pip

$ pip install smarty

Using easy_install

$ easy_install smarty

Usage

In default configuration, smarty will try to use $MPD_HOST (environment variable) and port 6600. If $MPD_HOST is not set, it will use localhost.

usage: smarty [-h] [-i <ip>] [-p <port>] [--maxnum <num>] [--dist <num>]
                [--norepeat] [-v] [--exclude <genre> [<genre> ...]]


Smart playlist generator written in python.

optional arguments:
  -h, --help            show this help message and exit
  -i <ip>, --ip <ip>    IP address of mpd server
  -p <port>, --port <port>
                        Port mpd server is listening on
  --maxnum <num>        Maximal number of songs in playlist
  --dist <num>          Add new song if only <x> songs are left to play in current playlist
  --norepeat            Don't add songs which are already in playlist.
  -v, --verbose         Print information about running process
  --exclude <genre> [<genre> ...]
                        Never add these genres to playlist

Example

Smarty could be used like this

smarty --norepeat --maxnum 3000 --verbose --exclude Comedy

This would only add songs which are not already in the current playlist, allow a maximum number of 3000 songs (deletes from the beginning if that number is exceeded). It will furthermore display the genre of each added song and not add the genre ‘Comedy’.

Bug Reports

Please submit any bugs you find to https://github.com/kpj/Smarty/issues.

Metadata

Release files for smarty 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smarty 0.3.3
File Size Uploaded
smarty-0.3.3.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smarty 0.3.3
File Interpreter ABI Platform
smarty-0.3.3-py3.3.egg Legacy Egg format - - Details

Total release size: 13.9 kB

Release files / smarty-0.3.3.tar.gz

Download URL smarty-0.3.3.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4674650d5d72b2fe6d3bcb99722f591646d7c2055536b50db16507f23a905480
BLAKE2b-256 checksum
How to use checksums
d9931ed1188cbed581f9869509a26123815e48fc5665463aa27c65c06b0c8152
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / smarty-0.3.3-py3.3.egg

Download URL smarty-0.3.3-py3.3.egg
Size 10.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
7d79948587f36e20924708fb1c0aa066e4b4e3de5b57dea90dde6f060715e592
BLAKE2b-256 checksum
How to use checksums
6cc4d1a8bb63793ee8817c36258e829e156633dffbe9db8c90e4f33828553756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page