Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    pyswf 1.3

    Download button

    No screenshots available
    Downloads: 132  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tim Knip | More programs
    MIT/X Consortium Lic... / FREE
    August 21st, 2012, 15:37 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    pyswf description

    A Python library to read and write SWF files

    pyswf is 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

    USAGE

    Basic example:

    ```python
    from swf.movie import SWF

    # create a file object
    file = open('path/to/swf', 'rb')

    # print out the SWF file structure
    print SWF(file)
    ```


    SVG export example:

    ```python
    from swf.movie import SWF
    from swf.export import SVGExporter

    # create a file object
    file = open('path/to/swf', 'rb')

    # load and parse the SWF
    swf = SWF(file)

    # create the SVG exporter
    svg_exporter = SVGExporter()

    # export!
    svg = swf.export(svg_exporter)

    # save the SVG
    open('path/to/svg', 'wb').write(svg.read())
    ```



    Product's homepage

    Requirements:

    · Python
    · lxml
    · StringIO
    · PIL

      


    TAGS:

    SWF reader | SWF writer | Python library | Python | SWF | reader

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM