Skip to main content

coderius-play

The goal of coderius-play is to help starting programmers to become more capable in programming Python.

Installation

pip install coderius-play

Usage

Please visit the documentation.

Playing video

play.new_video() shows an .mp4 on screen, with built-in controls that appear when the mouse is over it:

import play

video = play.new_video("clip.mp4", width=480, autoplay=True)

@video.when_video_ends
def finished():
    print("that's all folks")

play.start_program()

The video can also be driven from code with video.play(), video.pause(), video.seek(10), video.time, video.volume, video.speed and video.loop. Video decoding uses PyAV, which is installed along with coderius-play and brings its own FFmpeg, so nothing else is needed.

Testing

Install the runtime and development dependencies, then run the suite:

pip install -r requirements.txt -r requirements-dev.txt
pytest tests

CI gates on formatting and linting as well as the tests. To run exactly what it runs before you open a pull request:

black --check ./play ./tests
pylint $(git ls-files 'play/*.py' 'play/**/*.py')
pytest ./tests -n auto --runslow --durations=10

Tests marked slow (and everything under tests/stress/) are skipped unless you pass --runslow.

Contributing

We welcome contributions! If you'd like to contribute, please follow these steps:

  • Fork the repository.

  • Create a new branch (git checkout -b feature/your-feature-name).

  • Commit your changes (git commit -m 'feat: Add a new feature').

  • Push to the branch (git push origin feature/your-feature-name).

  • Open a Pull Request.

Good luck and happy coding!

License

This project is licensed under the MIT License

Acknowledgements

Metadata

Release files for coderius-play 3.4.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 coderius-play 3.4.0
File Size Uploaded Provenance Actions
coderius_play-3.4.0.tar.gz 84.4 kB Without provenance Details for coderius_play-3.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for coderius-play 3.4.0
File Interpreter ABI Platform Actions
coderius_play-3.4.0-py3-none-any.whl Python 3 none any Details for coderius_play-3.4.0-py3-none-any.whl

Total release size: 187.0 kB

Release files / coderius_play-3.4.0.tar.gz

Download URL coderius_play-3.4.0.tar.gz
Size 84.4 kB
Tags Source
SHA-256 checksum
How to use checksums
122f2bd4236446f90f1a56feb0a6850afa1b4b0a4c0b34b795d05e833c25b465
BLAKE2b-256 checksum
How to use checksums
854230137c360568cd69bd46876099100bcdaa26c791a019cfcde1a56c93b8a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / coderius_play-3.4.0-py3-none-any.whl

Download URL coderius_play-3.4.0-py3-none-any.whl
Size 102.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
241b779762df45b0e55087f3a0acf8772e35ab9df9059e4b86035f01978263d0
BLAKE2b-256 checksum
How to use checksums
c68a3a31b5246816d94230eec091485ca002788fa129a05df6ba53d643c20ebd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for coderius-play 3.4.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