development/libraries

pyswf - SWF Parsing Utilities

Website: https://github.com/timknip/pyswf
License: MIT
Vendor: Tim Knip <tim@floorplanner.com>
Description:
PYSWF
=====
A Python library for reading and writing SWF files.
PYSWF is a Python port of Claus Wahlers *great* SWF parser https://github.com/claus/as3swf
Can't thank Claus enough!

INSTALL
=======

    python setup.py install

or you might need do:

    $sudo python setup.py install

DEPENDENCIES
============
- lxml
- StringIO
- Image (PIL)

You can use easy_install or pip to install these.
NOTE: this code is only tested with python 2.6

USAGE
=====

Basic example:
--------------
```python
from swf.movie import SWF


file = open('path/to/swf', 'rb')


print SWF(file)
```


SVG export example:
-------------------
```python
from swf.movie import SWF
from swf.export import SVGExporter


file = open('path/to/swf', 'rb')


swf = SWF(file)


svg_exporter = SVGExporter()


svg = swf.export(svg_exporter)


open('path/to/svg', 'wb').write(svg.read())
```

Packages

pyswf-1.5.1-1.noarch [84 KiB] (no changelog entry)

Listing created by Repoview-0.6.6-1.el6