{ "info": { "author": "", "author_email": "James Rao ", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Simple SSG\n\nThis is a very simple static site generator. It was made for one purpose alone: to decouple a static sites content from its document structure.\n\n## Install \nTo install the package run the following command:\n\n```\npip install sssg\n```\n\n## Use\nBefore running, you should create a ```pages.json``` file, and all template and content files references in it. Below is an example of how a directory structure might look.\n\n```\n\u251c\u2500\u2500 pages.json\n\u251c\u2500\u2500 templates\n| \u251c\u2500\u2500 home.html\n| \u251c\u2500\u2500 ...\n\u2514\u2500\u2500 content\n \u251c\u2500\u2500 title.txt\n \u251c\u2500\u2500 ...\n```\nBy default the path of the ```pages.json``` is named as such and located in the root directory. The base template and content directory are also as above, but all three can be configured with command line arguments. To see the list of arguments run the following command.\n\n```\npython -m sssg -h\n```\n\nYour ```pages.json``` file contents may look something like this:\n```\n[\n {\n \"template\": \"./home.html\",\n \"target\": \"./index.html\",\n \"content\": {\n \"title\": \"./title.txt\"\n }\n }\n]\n```\nFor the example lets say your ```/templates/home.html``` file contents looks like this:\n\n```html\n\n\n\n\n {title}\n\n\n

{title}

\n\n\n```\n\nAnd lets say your ```/content/title.txt``` looks like this:\n```\nTest Title\n```\n\nNow run the following command:\n\n```\npython -m sssg\n```\nThis will generate your static files, which will look like this:\n\n```\n...\n\u2514\u2500\u2500 static\n \u251c\u2500\u2500 index.html\n \u251c\u2500\u2500 ...\n```\n\nWhere the contents of ```index.html``` is:\n\n```html\n\n\n\n Test Title\n\n\n

Test Title

\n\n\n```\n\nI hope this explains the basics of how to use ```sssg```.\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "sssg", "package_url": "https://pypi.org/project/sssg/", "platform": null, "project_url": "https://pypi.org/project/sssg/", "project_urls": { "Bug Tracker": "https://github.com/pypa/sampleproject/issues", "Homepage": "https://github.com/JamesRao98/sampleproject" }, "release_url": "https://pypi.org/project/sssg/0.0.4/", "requires_dist": null, "requires_python": ">=3.7", "summary": "A Simple Static Site Generator", "version": "0.0.4", "yanked": false, "yanked_reason": null }, "last_serial": 16332140, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "blake2b_256": "f3b415f88a148c2271416e02c56ac989180e4427bb2f141e8f580e542cb77fcd", "md5": "763a8e609c81a463c678b37cca126d47", "sha256": "cbecdeee3253b32631f2167176aa19a8db5c8239168fc083eee64468e1282068" }, "downloads": -1, "filename": "sssg-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "763a8e609c81a463c678b37cca126d47", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 15259, "upload_time": "2023-01-06T02:12:22", "upload_time_iso_8601": "2023-01-06T02:12:22.205024Z", "url": "https://files.pythonhosted.org/packages/f3/b4/15f88a148c2271416e02c56ac989180e4427bb2f141e8f580e542cb77fcd/sssg-0.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "blake2b_256": "f822f8c549deac6051d59c57aee11691e36e6e733f285bcc45be457aa4c8df79", "md5": "85bc2daa5d1d05be9b8fa79e2fb6b8a7", "sha256": "1de3d288fa7b22c54a13998edc4eb1eafc50a2679781ea0e0b94f13e5835200d" }, "downloads": -1, "filename": "sssg-0.0.1.tar.gz", "has_sig": false, "md5_digest": "85bc2daa5d1d05be9b8fa79e2fb6b8a7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 14578, "upload_time": "2023-01-06T02:12:23", "upload_time_iso_8601": "2023-01-06T02:12:23.729765Z", "url": "https://files.pythonhosted.org/packages/f8/22/f8c549deac6051d59c57aee11691e36e6e733f285bcc45be457aa4c8df79/sssg-0.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.2": [ { "comment_text": "", "digests": { "blake2b_256": "ed4cd09bb22e6f6be37b4f08da475bab8be1555b8ca4bd121febc601947996a7", "md5": "094b6c6c27e14d72792f9d3fe6a79fd0", "sha256": "38f3bce7111ef6348810bc76890e1edbd1388bf14f79e168bf1f9b4741e4072b" }, "downloads": -1, "filename": "sssg-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "094b6c6c27e14d72792f9d3fe6a79fd0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 15267, "upload_time": "2023-01-06T13:49:05", "upload_time_iso_8601": "2023-01-06T13:49:05.388671Z", "url": "https://files.pythonhosted.org/packages/ed/4c/d09bb22e6f6be37b4f08da475bab8be1555b8ca4bd121febc601947996a7/sssg-0.0.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "blake2b_256": "b3b60a19e64d4461bb6fb07686a29b7300316fa7aeab41e59f6d3aef783ac794", "md5": "c9c9df523d918db110e97ce3b928a447", "sha256": "497e06dc417ae4ea8f384300d27f0c1bf849a770292398ccfaf3abc987a3c962" }, "downloads": -1, "filename": "sssg-0.0.2.tar.gz", "has_sig": false, "md5_digest": "c9c9df523d918db110e97ce3b928a447", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 14560, "upload_time": "2023-01-06T13:49:07", "upload_time_iso_8601": "2023-01-06T13:49:07.906387Z", "url": "https://files.pythonhosted.org/packages/b3/b6/0a19e64d4461bb6fb07686a29b7300316fa7aeab41e59f6d3aef783ac794/sssg-0.0.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.3": [ { "comment_text": "", "digests": { "blake2b_256": "dcbe8cdef36d474ee452916573784eb0997ee4297813dac82f9f117f0c89354d", "md5": "43ce86970b0ff55bd95b15bdeda0595a", "sha256": "aa277cfbe2d52ce1e24db1f589681e5034075039f112a7edb96dc40dd183cdf1" }, "downloads": -1, "filename": "sssg-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "43ce86970b0ff55bd95b15bdeda0595a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 15268, "upload_time": "2023-01-06T14:07:27", "upload_time_iso_8601": "2023-01-06T14:07:27.343620Z", "url": "https://files.pythonhosted.org/packages/dc/be/8cdef36d474ee452916573784eb0997ee4297813dac82f9f117f0c89354d/sssg-0.0.3-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "blake2b_256": "66ae78ce4e91d1b61393fd1fa247bf37316fa338d89674e3562c5eaa331cc437", "md5": "3b3773274ff3007da28d5ad6dd055134", "sha256": "090ae4e1526fdd4fb37a9d8c4aa7130f25e7e833444403eab16216d67b928030" }, "downloads": -1, "filename": "sssg-0.0.3.tar.gz", "has_sig": false, "md5_digest": "3b3773274ff3007da28d5ad6dd055134", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 14572, "upload_time": "2023-01-06T14:07:30", "upload_time_iso_8601": "2023-01-06T14:07:30.174776Z", "url": "https://files.pythonhosted.org/packages/66/ae/78ce4e91d1b61393fd1fa247bf37316fa338d89674e3562c5eaa331cc437/sssg-0.0.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.4": [ { "comment_text": "", "digests": { "blake2b_256": "1e23afc8176b39bd1be2276f0bcf4bd21ee3e42f570c702a06cd1074054a2485", "md5": "668e91b93251dbb67751bb3642e797b0", "sha256": "9834fadfe4a61b70644854d34b5734ae2558f581a989e99bb61de8042a59400e" }, "downloads": -1, "filename": "sssg-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "668e91b93251dbb67751bb3642e797b0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 15991, "upload_time": "2023-01-06T15:41:39", "upload_time_iso_8601": "2023-01-06T15:41:39.998219Z", "url": "https://files.pythonhosted.org/packages/1e/23/afc8176b39bd1be2276f0bcf4bd21ee3e42f570c702a06cd1074054a2485/sssg-0.0.4-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "blake2b_256": "a383f877692ddea036736ff03904dcb5acc5f37b66ebe707dc13c6133c584bcb", "md5": "afabdf2d853829ad373817629101c461", "sha256": "fd7501c8a082d4632609250c9a8c28a62ab17515126216e24d6a673ac47b7fd3" }, "downloads": -1, "filename": "sssg-0.0.4.tar.gz", "has_sig": false, "md5_digest": "afabdf2d853829ad373817629101c461", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 15213, "upload_time": "2023-01-06T15:41:44", "upload_time_iso_8601": "2023-01-06T15:41:44.188417Z", "url": "https://files.pythonhosted.org/packages/a3/83/f877692ddea036736ff03904dcb5acc5f37b66ebe707dc13c6133c584bcb/sssg-0.0.4.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "blake2b_256": "1e23afc8176b39bd1be2276f0bcf4bd21ee3e42f570c702a06cd1074054a2485", "md5": "668e91b93251dbb67751bb3642e797b0", "sha256": "9834fadfe4a61b70644854d34b5734ae2558f581a989e99bb61de8042a59400e" }, "downloads": -1, "filename": "sssg-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "668e91b93251dbb67751bb3642e797b0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 15991, "upload_time": "2023-01-06T15:41:39", "upload_time_iso_8601": "2023-01-06T15:41:39.998219Z", "url": "https://files.pythonhosted.org/packages/1e/23/afc8176b39bd1be2276f0bcf4bd21ee3e42f570c702a06cd1074054a2485/sssg-0.0.4-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "blake2b_256": "a383f877692ddea036736ff03904dcb5acc5f37b66ebe707dc13c6133c584bcb", "md5": "afabdf2d853829ad373817629101c461", "sha256": "fd7501c8a082d4632609250c9a8c28a62ab17515126216e24d6a673ac47b7fd3" }, "downloads": -1, "filename": "sssg-0.0.4.tar.gz", "has_sig": false, "md5_digest": "afabdf2d853829ad373817629101c461", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 15213, "upload_time": "2023-01-06T15:41:44", "upload_time_iso_8601": "2023-01-06T15:41:44.188417Z", "url": "https://files.pythonhosted.org/packages/a3/83/f877692ddea036736ff03904dcb5acc5f37b66ebe707dc13c6133c584bcb/sssg-0.0.4.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }