Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install rstyoutube

How to install rstyoutube

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install rstyoutube
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.1 Available View build log
Windows (64-bit)
0.1.1 Available View build log
Mac OS X (10.5+)
0.1.1 Available View build log
Linux (32-bit)
0.1.1 Available View build log
Linux (64-bit)
0.1.1 Available View build log
 
Author
License
LICENSE.txt
Dependencies
Imports
Lastest release
version 0.1.1 on Dec 16th, 2011

rstyoutube is a package for embedding youtube videos in reStructuredText documents.

The code lives at http://bitbucket.org/cliff/rstyoutube. Bug reports, feature requests, and contributions are all welcome. If you find the code useful, hop on bitbucket and send me a quick message letting me know.

Usage

To use with pelican or another docutils-based system, add the following to your pelican configuration file:

import rstyoutube
rstyoutube.setup_docutils()

To use rstyoutube in standalone rst files, you can use the included rst2html+youtube.py script, which should get installed onto your PATH.

In your reST document, include a youtube directive with the video's id as the sole argument as follows:

This is my document

.. youtube:: 5blbv4WFriM

Hope you enjoyed the video.

That's all it takes.

Options

If you want more fine-grained control, you can add various options:

.. youtube:: 5blbv4WFriM
    :start: 67
    :width: 640
    :height: 480
    :ssl:
    :hd:
start

The number of seconds into the video where you want to start playback.

width
height

The size of the embedded viewer. Defaults to 640x480, or if the hd option is set, defaults to 1080x720.

ssl

This option takes no arguments. If it is present, the player is embedded over https, rather than http.

hd

This option takes no arguments. If it is present, the embedded video is shown in HD. The player's default size becomes 1080x720, but can still be overridden using the width and height options.

Changelog

0.1.1 -- 2011/12/15

Added options

0.1.0 -- 2011/12/15

Initial release

To Do

  • Add options to allow people to customize their videos.

Subscribe to package updates

Last updated Dec 16th, 2011

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.