Skip to main content

Screencasting library

Project description

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.1 - Fixed default vnc password path

  • 1.0 - First Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

castro-1.0.1.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

castro-1.0.1-py2.5.egg (123.9 kB view details)

Uploaded Source

File details

Details for the file castro-1.0.1.tar.gz.

File metadata

  • Download URL: castro-1.0.1.tar.gz
  • Upload date:
  • Size: 45.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for castro-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3e86f16d1d3f5dcd097450d50b6d3a973a628625c9ce402887cd1f243cf47174
MD5 535063b4e8f10245b44ac50365af0c9a
BLAKE2b-256 f0a4993ec903b5e79888bd253d694a39f8e130ff6bb43ac760bea74ac72740ab

See more details on using hashes here.

File details

Details for the file castro-1.0.1-py2.5.egg.

File metadata

  • Download URL: castro-1.0.1-py2.5.egg
  • Upload date:
  • Size: 123.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for castro-1.0.1-py2.5.egg
Algorithm Hash digest
SHA256 183d374d1de3f2daa4bc8de49a01696b669a90bb50e2574b723e5081b3daeda3
MD5 ed1677797128b1cbe9918e77c4f51cf6
BLAKE2b-256 3f60e63e3caf6362e2f1130fd6993291c3547045024aae59b392a4dbf7c327d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page