{ "info": { "author": "Kai Lautaportti", "author_email": "kai.lautaportti@hexagonit.fi", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python", "Topic :: Multimedia", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "The ``hexagonit.swfheader`` package provides a single function --\n``parse`` -- that is able to parse the metadata in a SWF (Flash\nanimation) file. The main use case is to interrogate the dimensions of\na SWF file to help in embedding the file in a HTML page.\n\n.. contents::\n\nUsage\n*****\n\nUsing the parser is very simple, simply call the\n``hexagonit.swfheader.parse`` function and call it with either a\nfilesystem path or a file-like object.\n\n >>> import hexagonit.swfheader\n >>> metadata = hexagonit.swfheader.parse(TEST_SWF)\n >>> pprint(metadata)\n {'compressed': False,\n 'fps': 12,\n 'frames': 1,\n 'height': 400,\n 'size': 153,\n 'version': 5,\n 'width': 550,\n 'xmax': 550,\n 'xmin': 0,\n 'ymax': 400,\n 'ymin': 0}\n\n\nThe ``parse`` function returns a dictionary that contains the\nfollowing items:\n\n``version (int)``\n\n The version of the Flash format, e.g. 7.\n\n``compressed (bool)``\n\n ``True``, if the contents of the file are compressed using zlib\n compression, ``False`` otherwise.\n\n``size (int)``\n\n Byte size of the (uncompressed) contents of the SWF file.\n\n``xmin (int)``\n\n The lesser x-coordinate of the bounding rectangle of the contents.\n\n``xmax (int)``\n\n The greater x-coordinate of the bounding rectangle of the contents.\n\n``ymin (int)``\n\n The lesser y-coordinate of the bounding rectangle of the contents.\n\n``ymax (int)``\n\n The greater y-coordinate of the bounding rectangle of the contents.\n\n``width (int)``\n\n The width of the SWF file in pixels.\n\n``height (int)``\n\n The height of the SWF file in pixels.\n\n``frames (int)``\n\n The number of frames in the SWF file.\n\n``fps (int)``\n\n Frames per second.\n\nCommand line\n************\n\nWhen installed with setuptools a script named ``swfheader`` is placed\nin your bin directory which can be used to easily introspect SWF files\non the filesystem::\n\n $ swfheader some_file.swf\n SWF header\n ----------\n Version: 7\n Compression: False\n Dimensions: 1105 x 1629\n Bounding box: (0, 1105, 0, 1629)\n Frames: 64\n FPS: 1\n\nChange history\n**************\n\n1.2 (2012-07-18)\n================\n\n - Only close file handles explicitly opened by the parser itself. Fixes an\n issue where file handles that were passed in as parameters were prematurely\n closed. See https://github.com/dokai/hexagonit-swfheader/pull/1\n [aleksandr-rakov]\n\n1.1 (2010-05-08)\n================\n\n - Fixed a bug with parsing the \"fps\" and \"frames\" fields. The order of the\n fields were reversed and additionally the \"fps\" field was parsed\n incorrectly. Bug reported by Valeriy Zmiyevskoy.\n [dokai]\n\n1.0.1 (2008-04-29)\n==================\n\n - Refacted a reversed() call to make the package Python 2.3 compatible.\n\n1.0 (2008-04-16)\n================\n\n - First public release [dokai]\n\n\nDownload\n*********", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "SWF", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "hexagonit.swfheader", "package_url": "https://pypi.org/project/hexagonit.swfheader/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hexagonit.swfheader/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/hexagonit.swfheader/1.2/", "requires_dist": null, "requires_python": null, "summary": "SWF metadata parser", "version": "1.2" }, "last_serial": 887017, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "60022b9a6c148750e10107a1124a8057", "sha256": "033bd7c34107bb376c79543dfd939342ed80f369ca1bb714b22800a2bb2ec63b" }, "downloads": -1, "filename": "hexagonit.swfheader-1.0.tar.gz", "has_sig": false, "md5_digest": "60022b9a6c148750e10107a1124a8057", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3940, "upload_time": "2008-04-16T10:23:03", "url": "https://files.pythonhosted.org/packages/3d/31/503c21cf511dac290face911f239f195f3be928cc75f0fa6f0379021b59b/hexagonit.swfheader-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6428127630722c97a91d9fb2a5d80c90", "sha256": "9c63a475c639efdff03e773e22208f607fe95b3c42f028cadc0925aba77406b5" }, "downloads": -1, "filename": "hexagonit.swfheader-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6428127630722c97a91d9fb2a5d80c90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4233, "upload_time": "2008-04-29T06:03:31", "url": "https://files.pythonhosted.org/packages/85/4e/1c5fd75e5f2318d0cf0dbe16914bb4a69fc91f950d6cd72dfbbc67bf9072/hexagonit.swfheader-1.0.1.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "c8fe27cfc252d6807ab99e4e0204ee31", "sha256": "0d99635754bd091c659f8d130f29c4ed72e978fcab31ac5ca7c88660204ffb67" }, "downloads": -1, "filename": "hexagonit.swfheader-1.1.tar.gz", "has_sig": false, "md5_digest": "c8fe27cfc252d6807ab99e4e0204ee31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5095, "upload_time": "2011-05-08T06:22:03", "url": "https://files.pythonhosted.org/packages/20/50/bbeacb5c636c97e88be22acfafe73799b45a533590153c94d0936096f092/hexagonit.swfheader-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "aecdb9de27804b73b6270f8d37aa77c2", "sha256": "ab095d44ac5dbc7ac54654423d42cdc9aff3515d07eb0da4faaf907cbcffefb6" }, "downloads": -1, "filename": "hexagonit.swfheader-1.2.tar.gz", "has_sig": false, "md5_digest": "aecdb9de27804b73b6270f8d37aa77c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5012, "upload_time": "2012-07-18T12:40:29", "url": "https://files.pythonhosted.org/packages/5b/cb/c29aee75a9c6464140db2288140e0aff8bbaab23a6cece3831235765254d/hexagonit.swfheader-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aecdb9de27804b73b6270f8d37aa77c2", "sha256": "ab095d44ac5dbc7ac54654423d42cdc9aff3515d07eb0da4faaf907cbcffefb6" }, "downloads": -1, "filename": "hexagonit.swfheader-1.2.tar.gz", "has_sig": false, "md5_digest": "aecdb9de27804b73b6270f8d37aa77c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5012, "upload_time": "2012-07-18T12:40:29", "url": "https://files.pythonhosted.org/packages/5b/cb/c29aee75a9c6464140db2288140e0aff8bbaab23a6cece3831235765254d/hexagonit.swfheader-1.2.tar.gz" } ] }