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
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
Built Distribution
File details
Details for the file castro-1.0.tar.gz
.
File metadata
- Download URL: castro-1.0.tar.gz
- Upload date:
- Size: 45.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 879497ad11533aa74647e0fb6f78f8c5e57dedd17b6c0f8859be3d9853d932d3 |
|
MD5 | 9257b902a6ee9a9b30ef2d8d3755e1e4 |
|
BLAKE2b-256 | 02f0c9676082f41850e405d088c540f5008b499e440d39d305281c60d82e9cca |
File details
Details for the file castro-1.0-py2.5.egg
.
File metadata
- Download URL: castro-1.0-py2.5.egg
- Upload date:
- Size: 123.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4778670501dfa0a6e27db94f45d840e0bdf393d794e27671856cc0c1d57ee20b |
|
MD5 | ef970da0cc70921fc4375e4e58fd6956 |
|
BLAKE2b-256 | 8b714becc8d36297d1df5975e38074b9a99d969b83215cbd54a087318e1a49e4 |