{ "info": { "author": "Pixelapse", "author_email": "hello@pixelapse.com", "bugtrack_url": null, "classifiers": [], "description": "# pyglass: Preview Mac OS X Documents\n\npyglass is a python wrapper around Apple's [QuickLook](https://developer.apple.com/library/mac/documentation/userexperience/conceptual/quicklook_programming_guide/Introduction/Introduction.html) to extract preview images\nfrom common filetypes.\n\nAdditionally, pyglass wraps around [SketchTool](http://bohemiancoding.com/sketch/tool/) to generate previews\nfrom [Sketch](bohemiancoding.com/sketch/) files.\n\n## Usage\n\n### Basic Previews\n\n >>> import pyglass\n >>> previews = pyglass.preview('design_v1.sketch')\n >>> previews\n ['/var/folders/fq/xtn_qh1x6c3drpp3ycytx1fr0000gn/T/pyglassY92Xqs.png',\n '/var/folders/fq/xtn_qh1x6c3drpp3ycytx1fr0000gn/T/pyglassZ34Jab.png']\n\nEach preview returned in the list is a PNG, one for each page in the source document.\n\n### Sketch\n\n#### Pages\n\nTo get a flat list, use `sketch.pages`. Note that slices and artboards lists within each page are not populated automatically with this command. Use `sketch.list_artboards` and `sketch.list_slices` respectively if you're interested in artboard and slice data.\n\n >>> pyglass.sketch.pages('/Users/Vayu/Development/src/pyglass/tests/data/sketch/pages.sketch')\n [,\n slices=[],\n artboards=[]\n )>'\n >,\n ,\n slices=[],\n artboards=[]\n )>'\n >,\n ,\n slices=[],\n artboards=[]\n )>'\n >]\n\n#### Artboards\n\nTo get a flat list, use `sketch.artboards`\n\n >>> pyglass.sketch.artboards('/Users/Vayu/Development/src/pyglass/tests/data/sketch/artboards.sketch')\n [)\n >'>,\n )\n >'>\n ]\n\nTo get the entire hierarchy, use `sketch.list_artboards`\n\n >>> pyglass.sketch.list_artboards('/Users/Vayu/Development/src/pyglass/tests/data/sketch/artboards.sketch')\n [,\n slices=[],\n artboards=[\n \n )>\\'>,\n \n )>\\'>\n ]\n )>\n '>]\n\n## Requirements\n\n### System Requirements\n * Mac OS X 10.7+\n * [Xcode Command Line Tools](https://developer.apple.com/downloads)\n\n### External Dependencies\n * [Sketch Tool](http://bohemiancoding.com/sketch/tool/)\n * [sips](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/sips.1.html)\n\n## Installation\n\nSimply run:\n\n $ pip install pyglass\n\n## Tests\n\nTo run the test suite, execute:\n\n python setup.py nosetests\n\n## License\n MIT. See `LICENSE` file.\n\n Written by Shravan Reddy. Copyright (c) Pixelapse.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/Pixelapse/pyglass/tarball/v0.1.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/Pixelapse/pyglass", "keywords": null, "license": "The MIT License\n\nCopyright (c) 2014 Pixelapse. http://pixelapse.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "pyglass", "package_url": "https://pypi.org/project/pyglass/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyglass/", "project_urls": { "Download": "https://github.com/Pixelapse/pyglass/tarball/v0.1.2", "Homepage": "http://github.com/Pixelapse/pyglass" }, "release_url": "https://pypi.org/project/pyglass/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Mac OS X File Preview Generator", "version": "0.1.2" }, "last_serial": 1249901, "releases": { "0.0.7": [ { "comment_text": "", "digests": { "md5": "519f99afe9e6e1994f68255318877c5f", "sha256": "e039bfc5871fe441ec8a6d1997f3c1f7b62ffc2d8da31311441362917a526e43" }, "downloads": -1, "filename": "pyglass-0.0.7.tar.gz", "has_sig": false, "md5_digest": "519f99afe9e6e1994f68255318877c5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12284, "upload_time": "2014-07-18T23:04:01", "url": "https://files.pythonhosted.org/packages/f8/a3/6c36211c1f89f84321d376a6ca733754a67ffd077623b8aec11ae077f35c/pyglass-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "079401ef728738509f934aa6f78abf7e", "sha256": "88d905af45f440b760f95897bb9dcb61334e1b58fa1898a10a7d2d6d9cee8f2c" }, "downloads": -1, "filename": "pyglass-0.0.8.tar.gz", "has_sig": false, "md5_digest": "079401ef728738509f934aa6f78abf7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1949020, "upload_time": "2014-07-18T23:47:10", "url": "https://files.pythonhosted.org/packages/20/07/d4dc6894319554b3f872d7675c5c867980c408ec5d486ae6d7931f604176/pyglass-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "f31157cdadfcd632f897861b76b4833c", "sha256": "dbc8cf5ed23dce50574758f12b382efe1d78fea527c36e7e91a264dd5020ab66" }, "downloads": -1, "filename": "pyglass-0.0.9.tar.gz", "has_sig": false, "md5_digest": "f31157cdadfcd632f897861b76b4833c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1949059, "upload_time": "2014-07-29T02:43:23", "url": "https://files.pythonhosted.org/packages/4b/ac/5045da04cc9ce37cc0588e3f0ce0001f8ae27585a0cf0d02c8ee3a6f65c0/pyglass-0.0.9.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "872c4563928e1416ca1864db3837cce1", "sha256": "d8dd745797edea59d44301daac35bb0468c02cae950d4f71caa0abcc2f02beba" }, "downloads": -1, "filename": "pyglass-0.1.0.tar.gz", "has_sig": false, "md5_digest": "872c4563928e1416ca1864db3837cce1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1949177, "upload_time": "2014-07-31T02:08:18", "url": "https://files.pythonhosted.org/packages/f3/74/c01915ff3b2b67627c4c434e55a793856652623920059c6e7209f704ac74/pyglass-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ff55cefac5e1e713e3370d18b1547b93", "sha256": "33281626933ef42e5b6ba9826c6efa596da4df98b9702154d480d8572c9c970f" }, "downloads": -1, "filename": "pyglass-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ff55cefac5e1e713e3370d18b1547b93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2595197, "upload_time": "2014-10-03T23:35:56", "url": "https://files.pythonhosted.org/packages/2a/92/78f48a44635a22d2a3ab5509d52ddb5921773e912ca926a0c859ba65a4be/pyglass-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a32b6aa968569194adfaff3b840d6e5f", "sha256": "e329766620df68b2a405197aee8def5452786567df33ef787c66032431e9f3ff" }, "downloads": -1, "filename": "pyglass-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a32b6aa968569194adfaff3b840d6e5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2595224, "upload_time": "2014-10-06T19:46:33", "url": "https://files.pythonhosted.org/packages/b8/d1/3ea1a5c68751de15d7a66c83862b791aa9b3504fc4a2a5d3f80e2cf6510b/pyglass-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a32b6aa968569194adfaff3b840d6e5f", "sha256": "e329766620df68b2a405197aee8def5452786567df33ef787c66032431e9f3ff" }, "downloads": -1, "filename": "pyglass-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a32b6aa968569194adfaff3b840d6e5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2595224, "upload_time": "2014-10-06T19:46:33", "url": "https://files.pythonhosted.org/packages/b8/d1/3ea1a5c68751de15d7a66c83862b791aa9b3504fc4a2a5d3f80e2cf6510b/pyglass-0.1.2.tar.gz" } ] }