{ "info": { "author": "Honza Pokorny", "author_email": "me@honza.ca", "bugtrack_url": null, "classifiers": [], "description": "# Lenscap\n\nLenscap is a static site generator for creating beautiful photo narratives\n\nWrite your stories in markdown and insert small snippets of code to add small\ngroups of images.\n\n[Demo][1]\n\n# Example\n\nGiven a directory structure of\n\n```\nkitten.md\nphotos/\n 1.jpg\n 2.jpg\n 3.jpg\n```\n\nAnd a markdown file of\n\n # Kittens\n\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean pretium\n elit sit amet posuere congue. Nam felis augue, pretium ac auctor quis,\n facilisis non nunc. Nullam in erat magna. Duis rhoncus felis id erat\n maximus, ac condimentum felis efficitur. Nunc ac mattis ante. Etiam sed\n orci tortor. Ut gravida orci eu dictum vulputate. Vestibulum dui augue,\n condimentum ac tempus ac, mollis non ante. Pellentesque aliquam, est vitae\n sollicitudin tristique, tortor massa tincidunt nibh, eu tempus sem dolor\n vitae diam. Proin sodales velit nec nisi euismod, id facilisis elit\n consequat. Nam eros magna, vulputate ac turpis quis, rhoncus euismod justo.\n\n ```yaml\n rows: 1, 2\n items:\n - 1.jpg\n - 2.jpg\n - 3.jpg\n ```\n\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean pretium\n elit sit amet posuere congue. Nam felis augue, pretium ac auctor quis,\n facilisis non nunc. Nullam in erat magna. Duis rhoncus felis id erat\n maximus, ac condimentum felis efficitur.\n\n Nunc ac mattis ante. Etiam sed orci tortor. Ut gravida orci eu dictum\n vulputate. Vestibulum dui augue, condimentum ac tempus ac, mollis non ante.\n Pellentesque aliquam, est vitae sollicitudin tristique, tortor massa\n tincidunt nibh, eu tempus sem dolor vitae diam. Proin sodales velit nec\n nisi euismod, id facilisis elit consequat. Nam eros magna, vulputate ac\n turpis quis, rhoncus euismod justo.\n\nYou can produce content like [the demo page][1] by running `lenscap kitten.md`.\n\n[1]: http://honza.ca/lenscap/kitten.html\n\n# Installation\n\n`$ pip install lenscap`\n\n# Usage\n\nThrow some high resolution photos into a `photos/` directory and then write\nyour essay in a markdown file. You can use regular markdown and specify your\nphoto layouts using fenced blocks.\n\nThe fenced in block uses simple yaml syntax to specify your meta data. All you\nreally need to do is tell it how many rows of photos you want and how many\nphotos are in each row. Then you list the files and lenscap does the rest.\n\nSo, if you want to have a 2 photos over 3, you'd say `rows: 2, 3`. If you want\na single image, you can skip the `rows` directive.\n\nLenscap will check that your photos are big enough in terms of resolution and\nwill refuse to continue if the photos are too small. You can also tell lenscap\nto resize your high resolution photos to just the right size.\n\nYou invoke the `lenscap` command on your file:\n\n```\n$ lenscap kitten.md\n```\n\nAnd this will create a file called `kitten.html` in the same directory.\n\n```\nUsage: lenscap [options] files\n\nOptions:\n -h, --help show this help message and exit\n -o FILE, --output=FILE Output filename, defaults to same but with .html\n -p DIR, --photos=DIR Directory with photos (default: photos/)\n -t DIR, --templates=DIR Directory with templates (default: None)\n -s FILE, --stylesheet=FILE Stylesheet file\n -m THEME, --theme=THEME Theme (default, narrow)\n -r, --resize Resize images (default: False)\n```\n\n# Themes\n\nCurrently, there are only two themes: defaul and narrow. The default theme\nuses a width of 16 skeleton columns and the narrow one uses a narrower 8 column\nwidth for text and expands to 16 for images.\n\nAdding a new theme is just a matter of copying the `lenscap/templates/default`\ndirectory and editing the `base.html` and `rows.html` files.\n\n# Contributing\n\nContributions are most welcome. If you have any cool ideas, open a ticket.\nEspecially design-related tweaks and new themes are welcome.\n\n# License\n\nBSD, short and sweet", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "lenscap", "package_url": "https://pypi.org/project/lenscap/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lenscap/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/lenscap/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "static photo story generator", "version": "0.2.0" }, "last_serial": 1353918, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "072ae41320386738e946e043197da76c", "sha256": "411c8ea6bccf272124b7f5fb5e2648ac76fbc6a73d52fc64b43e13aab4150b81" }, "downloads": -1, "filename": "lenscap-0.0.1.tar.gz", "has_sig": false, "md5_digest": "072ae41320386738e946e043197da76c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4474, "upload_time": "2014-10-17T15:32:02", "url": "https://files.pythonhosted.org/packages/45/e0/cbf9c24aa8d925ab15835be57ac9555a62179a9457f6855880bb9ac41c5d/lenscap-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "1ae5da52817388deb48b457928cee1dd", "sha256": "e972e1ae34975782bc8ee4b3b70276924b5b1f154b4d07827eeeffe4188b230f" }, "downloads": -1, "filename": "lenscap-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1ae5da52817388deb48b457928cee1dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7563, "upload_time": "2014-10-25T18:22:30", "url": "https://files.pythonhosted.org/packages/ae/3d/1071486e4c49bb638064eb9c8d91a3f23a6d20da7789aa29cbee4b5389e6/lenscap-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "c93ef4543663818a3324ebc2191d635e", "sha256": "d411f3f543271583bb2e624eac85df2c75022c0da4d0d93b130fc44947b8b4ff" }, "downloads": -1, "filename": "lenscap-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c93ef4543663818a3324ebc2191d635e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7588, "upload_time": "2014-10-25T18:38:52", "url": "https://files.pythonhosted.org/packages/78/a6/d43b35894da3e05b4ad7e8af0ade805209f21cea8f09235d4ef9acebecce/lenscap-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b808ad8f51162393b82f11e7a596a1c1", "sha256": "f3abda8e643111889fe827e8236818145c45c54c6701ebc53640538eade7e76d" }, "downloads": -1, "filename": "lenscap-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b808ad8f51162393b82f11e7a596a1c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8080, "upload_time": "2014-11-01T19:18:53", "url": "https://files.pythonhosted.org/packages/70/00/84c7afd9fabe8307d746adf6a07d7fd3094d2d5bba91ebb4290873a2a787/lenscap-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "b5cdefd30b549774e70e2ac0f9321bb7", "sha256": "ea11a7c37b916f42a742ca6826a96d7d7f643e3bacb2a43a3636f777b4d5491b" }, "downloads": -1, "filename": "lenscap-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b5cdefd30b549774e70e2ac0f9321bb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8179, "upload_time": "2014-12-19T05:59:55", "url": "https://files.pythonhosted.org/packages/91/4c/e952678b734be89fe3e607b3bb24707ec442a4ae8d556cd4c0e08c92a29d/lenscap-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b5cdefd30b549774e70e2ac0f9321bb7", "sha256": "ea11a7c37b916f42a742ca6826a96d7d7f643e3bacb2a43a3636f777b4d5491b" }, "downloads": -1, "filename": "lenscap-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b5cdefd30b549774e70e2ac0f9321bb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8179, "upload_time": "2014-12-19T05:59:55", "url": "https://files.pythonhosted.org/packages/91/4c/e952678b734be89fe3e607b3bb24707ec442a4ae8d556cd4c0e08c92a29d/lenscap-0.2.0.tar.gz" } ] }