=====
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
-------
$ pip install pyswf==1.5.4
or:
$ git clone git@github.com:timknip/pyswf.git
$ cd pyswf
$ python setup.py install
or you might need do:
$ sudo python setup.py install
WINDOWS
-------
Install Pillow, lxml and pylzma from a binary distribution before running setup.
- [Pillow 2.9.0](http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow)
- [lxml 3.4.0](https://pypi.python.org/pypi/lxml/3.4.0#downloads)
- [pylzma 0.4.6](http://www.lfd.uci.edu/~gohlke/pythonlibs/#pylzma)
Installing the *.whl files:
$ pip install the-downloaded.whl
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())
```
Metadata
Release files for pyswf 1.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyswf-1.5.4.zip | 52.1 kB | Without provenance | Details for pyswf-1.5.4.zip |
Release files / pyswf-1.5.4.zip
| Download URL | pyswf-1.5.4.zip |
|---|---|
| Size | 52.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
162f04dfd12ece0c4104cf78f5420d6fd0de47f0bf96778e6ba55dba30269736
|
|
BLAKE2b-256 checksum How to use checksums |
202fdc97952987091168e2d62a947ac293ca48c1a2afbe57b6e86104845804d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyswf 1.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.