Skip to main content

Motivation

Sometimes all you want to do is to lie in bed and watch a few episodes. But navigating to the right folder and choosing an episode which you haven’t seen yesterday is too much work. With this small script all you have to do is to type “playfuturama” (using tab completion of course!) if you have set up e.g. this alias:

alias playfuturama='choose-next -c "mplayer -fs" "/media/usb/Futurama"'

News

3.0.0

2021-03-29

Require Python 3.6 (no new features, just usage of “try … from”)

2.0.1

2017-05-01

Small fixes, Windows compatible

2.0.0

2017-04-30

Bugfixes, Python 3 support, extensive test suite

1.1

2011-04-26

Bugfixes, --exclude, --include, and -d

1.0

2010-04-26

First working version

Examples

Over the next few weeks you want to watch all Futurama episodes in strict rotation:

# clear existing log file
choose-next --clear /media/usb/Futurama
# no special options needed
alias playfuturama='choose-next -c "mplayer -fs" "/media/usb/Futurama"'

You want to see a random episode (out of order!), but not one you have already seen. You want to prepend the filename so that the rotation order is retained:

playfuturama -rp

You were somehow distracted, and want to watch the last episode again:

playfuturama -l

You want to watch a specific episode, and continue to watch from this point on:

playfuturama -n10 "/media/usb/Futurama/S04E01.avi"

Usage

choose-next [OPTION]... DIR [FILE]...

  DIR        directory to choose from
  FILES      prefer these files before all others

Some options:

  -c CMD, --command=CMD      execute CMD on every selected file; %s in CMD is
                             substituted with the filename, otherwise it is
                             appended to CMD
  --clear                    remove log file and exit
  -l, --last                 play last played file
  -n NUM, --number=NUM       number of files to select (-1: infinite)
  -p, --prepend              prepend selected filename instead of appending
  -r, --random               choose a random file from DIR

Metadata

Release files for choose-next 3.0.0

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

Source distribution (sdist)

Source distribution for choose-next 3.0.0
File Size Uploaded Provenance Actions
choose-next-3.0.0.tar.gz 19.2 kB Without provenance Details for choose-next-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for choose-next 3.0.0
File Interpreter ABI Platform Actions
choose_next-3.0.0-py3-none-any.whl Python 3 none any Details for choose_next-3.0.0-py3-none-any.whl

Total release size: 38.9 kB

Release files / choose-next-3.0.0.tar.gz

Download URL choose-next-3.0.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8f46f2a152bef59bf8429c0323957000c2e63d1fdc4b833f72ef5b6204a529f9
BLAKE2b-256 checksum
How to use checksums
7276523b7386a128375ec49990e9114629ad05ae82a0bf36697b22484953d78b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.4.2 requests/2.25.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

Release files / choose_next-3.0.0-py3-none-any.whl

Download URL choose_next-3.0.0-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba25e56cd1434ccd599bcf1ebdc42dd8bbbebb1be977cce60a0d755fb3415716
BLAKE2b-256 checksum
How to use checksums
314547d4ba80f4536ff3fd8e283f4d70f38eb143a9ce7fec15bb0bb5b268a8b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.4.2 requests/2.25.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

Security for choose-next 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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