Skip to main content

Introduction

Castro is a library for recording automated screencasts via a simple API.

Here’s an example:

>>> from castro import Castro
>>> c = Castro()
>>> c.start() >>> # Do something awesome!
>>> c.stop()

Install

1) Install and launch a vncserver. (Hint: Google it.)
2) $ [sudo] easy_install castro
3) There's no step 3!

Test

$ python -c "import castro; castro.test()"

Watch

Video stored in: <default_temp_dir>/castro-video.swf

Video player stored in: <default_temp_dir>/castro-video.html

Linux/OSX:

$ firefox /tmp/castro-video.html

License & Repository

Castro was created by Jason Huggins. It is licensed under the GPLv2, since it is a derivative work of pyvnc2swf, which is also licensed under the GPLv2.

Castro has a git respository at github.com.

Summary

Castro is a minor fork of pyvnc2swf, allowing one to use pyvnc2swf as a regular Python library, instead of a Tk GUI application or command line utility.

The specific improvement Castro brings to pyvnc2swf is the ability to start and stop recording programmatically via a simple Python API. Castro uses a file-based IPC to tell pyvnc2swf when to stop recording.

Ordinarily, pyvnc2swf’s command line utility, vnc2swf.py, expects users to stop recording by manually typing “Control-C”, sending a KeyboardInterrupt and allowing the process to exit cleanly. On Linux, emulating KeyboardInterrupt is simple enough to do by sending a SIGINT signal. But this does not work cross- platform, specifically on Windows. And a big reason for using pyvnc2swf is its ability to record vnc video on any platform from any platform.

Dependencies

  • Python - 2.5 or above

  • Pygame - 1.6 or above

  • Processing - 0.52 or above

  • Simplejson - 2.0.9 or above

Changelog:

  • 1.0.2 - Made stop() block until the recording process is done

    Added support to use Castro in a with statement (e.g “with video(…):”)

  • 1.0.1 - Fixed default vnc password path

  • 1.0 - First Release

Metadata

Release files for castro 1.0.2

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

Source distribution (sdist)

Source distribution for castro 1.0.2
File Size Uploaded Provenance Actions
castro-1.0.2.tar.gz 45.4 kB Without provenance Details for castro-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for castro 1.0.2
File Interpreter ABI Platform Actions
castro-1.0.2-py2.5.egg Legacy Egg format - - Details for castro-1.0.2-py2.5.egg

Total release size: 169.8 kB

Release files / castro-1.0.2.tar.gz

Download URL castro-1.0.2.tar.gz
Size 45.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1a018e94a557cbcbc9f861d2d38cc0e10455f287c469ace1782b71ebfd27600a
BLAKE2b-256 checksum
How to use checksums
acf5d0ad509f968a61119988ded972efce6fad8a40877a26dba12b09dc0ad4d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / castro-1.0.2-py2.5.egg

Download URL castro-1.0.2-py2.5.egg
Size 124.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
b439ea2a674d3520cb23fe8aecd3c42761390772437bbd8e9db0899e8dcd0d60
BLAKE2b-256 checksum
How to use checksums
b81d2760508999cceb9d28111642d77cfcd04803bcf85975df26af1231c97e00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for castro 1.0.2

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