{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Unix Shell", "Topic :: Utilities" ], "description": "\n\n[![](https://img.shields.io/badge/OS-Unix-blue.svg?longCache=True)]()\n[![](https://img.shields.io/pypi/pyversions/github-blog.svg?longCache=True)](https://pypi.org/project/github-blog/)\n\n#### Installation\n```bash\n$ [sudo] pip install github-blog\n```\n\n#### Features\n+ github blog models, views, url patterns, management commands, scripts and templates\n+ static site generator\n\n#### `settings.py`\n```python\nINSTALLED_APPS = [\"django_summernote\",\"github_blog\",\"taggit\"] + DJANGO_APPS\n\nTEMPLATES[0]['OPTIONS']['context_processors']+=[\n \"github_blog.context_processors.count\",\n \"github_blog.context_processors.username\"\n]\n\nGITHUB_TOKEN=\"\"\nGITHUB_USERNAME=\"\"\n\n# optional:\nGITHUB_BLOG_NEW_GIST_COUNT = 5 # 10 by default\nGITHUB_BLOG_NEW_POST_COUNT = 5 # 10 by default\nGITHUB_BLOG_NEW_REPO_COUNT = 5 # 10 by default\nGITHUB_BLOG_POST_PAGINATE_BY = 5 # 10 by default\n```\n\n#### Models\nmodel|`__doc__`\n-|-\n`github_blog.models.StarredRepo` |StarredRepo(id, node_id, name, full_name, private, fork, description, homepage, language, forks_count, stargazers_count, watchers_count, open_issues_count, subscribers_count, network_count, size, has_issues, has_projects, has_wiki, has_pages, has_downloads, archived, disabled, pushed_at, created_at, updated_at, starred_at)\n`github_blog.models.Category` |Category(id, title, slug, parent, is_published)\n`github_blog.models.StarredRepoTopic` |StarredRepoTopic(id, tag, content_object)\n`github_blog.models.PostTag` |PostTag(id, tag, content_object)\n`github_blog.models.RepoTopic` |RepoTopic(id, tag, content_object)\n`github_blog.models.Gist` |Gist(id, node_id, public, created_at, updated_at, description, comments, description_noemoji)\n`github_blog.models.Post` |Post(id, title, slug, intro, body, category, is_published, created_by, created_at, updated_at)\n`github_blog.models.Repo` |Repo(id, node_id, name, full_name, private, fork, description, homepage, language, forks_count, stargazers_count, watchers_count, open_issues_count, subscribers_count, network_count, size, has_issues, has_projects, has_wiki, has_pages, has_downloads, archived, disabled, pushed_at, created_at, updated_at)\n`github_blog.models.StarredGist` |StarredGist(id, node_id, public, created_at, updated_at, description, comments, description_noemoji)\n\n#### Commands\ncommand|`help`\n-|-\n`python manage.py collect_github` |collect github repos, gists, starred repos and starred gists\n`python manage.py collect_github_gists` |collect github gists\n`python manage.py collect_github_repos` |collect github repos\n`python manage.py collect_github_starred_gists` |collect github starred gists\n`python manage.py collect_github_starred_repos` |collect github starred repos\n`python manage.py staticgen` |static site generator\n\n#### Scripts usage\ncommand|`usage`\n-|-\n`github-blog-clean` |`usage: github-blog-clean path`\n`github-blog-push` |`usage: github-blog-push path`\n\n#### Examples\n`urls.py`\n```python\nfrom django.contrib import admin\nfrom github_blog.urls import github_blog_urls\n\nurlpatterns = [\n path('admin/', admin.site.urls),\n path('summernote/', include('django_summernote.urls')),\n]+ github_blog_urls\n```\n\n```bash\n$ python -u manage.py collect_github\n```\n\nstatic site generator:\n```bash\n$ github-blog-clean path/to/.github.com # remove .html files\n$ python -u manage.py staticgen path/to/.github.com # generate .html files\n$ github-blog-push path/to/.github.com # push to github\n```\n\n

\n django-readme-generator\n

", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/andrewp-as-is/github-blog.py", "keywords": "django github", "license": "", "maintainer": "", "maintainer_email": "", "name": "github-blog", "package_url": "https://pypi.org/project/github-blog/", "platform": "", "project_url": "https://pypi.org/project/github-blog/", "project_urls": { "Homepage": "https://github.com/andrewp-as-is/github-blog.py" }, "release_url": "https://pypi.org/project/github-blog/2019.8.12/", "requires_dist": null, "requires_python": "", "summary": "github blog based on Django", "version": "2019.8.12" }, "last_serial": 5666822, "releases": { "2019.5.2": [ { "comment_text": "", "digests": { "md5": "552e9ff978bda1ba76b427b8b584e63b", "sha256": "0d8eb998a79b193e6b1d7495d1632dbd8f3f623540359b2b0018d878a4bb668f" }, "downloads": -1, "filename": "github-blog-2019.5.2.tar.gz", "has_sig": false, "md5_digest": "552e9ff978bda1ba76b427b8b584e63b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8691, "upload_time": "2019-07-13T20:45:53", "url": "https://files.pythonhosted.org/packages/61/ea/6ccf104fc4187ecc63a657ad99fb9decada75bb9ae40d861f3b45131be19/github-blog-2019.5.2.tar.gz" } ], "2019.7.14": [ { "comment_text": "", "digests": { "md5": "2d6c0128d3638f0d071fd08353fe7735", "sha256": "a4033b35e914aa0b9dd642a2f769a8ea6cb0d6338e3fe963a096bb95ac48271d" }, "downloads": -1, "filename": "github-blog-2019.7.14.tar.gz", "has_sig": false, "md5_digest": "2d6c0128d3638f0d071fd08353fe7735", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8702, "upload_time": "2019-07-15T15:10:30", "url": "https://files.pythonhosted.org/packages/84/d6/1ee4ad66f3d16c88ac8339bb769a97935db79e6a4fdf6eab16cafe0fcbb4/github-blog-2019.7.14.tar.gz" } ], "2019.7.18": [ { "comment_text": "", "digests": { "md5": "d1c9b3024ed800e410b3aa859e352373", "sha256": "a2ad7fc188fa20b690dcb6b3c63948b3c276723076f3aa22537e65196804d55a" }, "downloads": -1, "filename": "github-blog-2019.7.18.tar.gz", "has_sig": false, "md5_digest": "d1c9b3024ed800e410b3aa859e352373", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9714, "upload_time": "2019-07-18T16:17:09", "url": "https://files.pythonhosted.org/packages/ab/c9/c250ff32b6af221abaec19a3c3c1bb8535c4303b6cec04cc98e900f26150/github-blog-2019.7.18.tar.gz" } ], "2019.7.25": [ { "comment_text": "", "digests": { "md5": "97814ebcabcb7f3b35db0b54addda4df", "sha256": "39141642654606000f41673c33a12e2169f6418646d1f23d91dae021ac93c09d" }, "downloads": -1, "filename": "github-blog-2019.7.25.tar.gz", "has_sig": false, "md5_digest": "97814ebcabcb7f3b35db0b54addda4df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9718, "upload_time": "2019-07-25T07:25:43", "url": "https://files.pythonhosted.org/packages/cb/70/337da35d979cdabfd7bebd512a70cf702a364fe2fd862d7484f96ef0a273/github-blog-2019.7.25.tar.gz" } ], "2019.7.26": [ { "comment_text": "", "digests": { "md5": "5f4baeb21b0e116684167e7761c1ee39", "sha256": "9bbcd9ec6709fc91ac78b33989d8f7e6cdc192c4ff07ef3d2acbe4fc2fc94d42" }, "downloads": -1, "filename": "github-blog-2019.7.26.tar.gz", "has_sig": false, "md5_digest": "5f4baeb21b0e116684167e7761c1ee39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9776, "upload_time": "2019-07-26T16:51:03", "url": "https://files.pythonhosted.org/packages/db/ae/749fd51dce6b33d91519c415f148119d084f889c4ba367373701090b9422/github-blog-2019.7.26.tar.gz" } ], "2019.7.27": [ { "comment_text": "", "digests": { "md5": "8b891fdbaef4dd64de27eea10940934b", "sha256": "773a0a0e4eb2e1841bc79f238e941785b2e68616a550a358343df779e8703194" }, "downloads": -1, "filename": "github-blog-2019.7.27.tar.gz", "has_sig": false, "md5_digest": "8b891fdbaef4dd64de27eea10940934b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9775, "upload_time": "2019-07-26T20:34:33", "url": "https://files.pythonhosted.org/packages/dd/38/62b9b0152d90e295864409f401272de2ca6ceb8dc0167c7be6d1e2ea0e6f/github-blog-2019.7.27.tar.gz" } ], "2019.7.28": [ { "comment_text": "", "digests": { "md5": "5a25c23a4f226cf879c320d0cb958390", "sha256": "3df8f53e2b1cbba45411d817f2ea075f0e79661bb748644bfbb7566566a9f3f6" }, "downloads": -1, "filename": "github-blog-2019.7.28.tar.gz", "has_sig": false, "md5_digest": "5a25c23a4f226cf879c320d0cb958390", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9748, "upload_time": "2019-07-27T17:37:47", "url": "https://files.pythonhosted.org/packages/22/cd/16292cd709d7a6ac642fb7176ffa8b15cf13a5d1e43a37460002e94f5362/github-blog-2019.7.28.tar.gz" } ], "2019.7.31": [ { "comment_text": "", "digests": { "md5": "3401bc92e2bb3bdcf0ad00f7f2411cf8", "sha256": "8b4ce17734451a530f282f25fd4cafe3f9da97a18f6fcf803cc59fca0a512801" }, "downloads": -1, "filename": "github-blog-2019.7.31.tar.gz", "has_sig": false, "md5_digest": "3401bc92e2bb3bdcf0ad00f7f2411cf8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9752, "upload_time": "2019-07-31T12:35:57", "url": "https://files.pythonhosted.org/packages/a0/5d/a5283caa9835c5bf96560f55cd3ac3c546e83b46ad7f3f272741688be346/github-blog-2019.7.31.tar.gz" } ], "2019.8.12": [ { "comment_text": "", "digests": { "md5": "a0cbb7ad50f90d699fc56f1634165501", "sha256": "6b143792431449cb2bee50c2e1afce7d10ee7f006500a232cfc28245f58ba2e8" }, "downloads": -1, "filename": "github-blog-2019.8.12.tar.gz", "has_sig": false, "md5_digest": "a0cbb7ad50f90d699fc56f1634165501", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11271, "upload_time": "2019-08-12T14:39:43", "url": "https://files.pythonhosted.org/packages/57/ba/8a2a8dd7f06756877d7e2ea22454b0b65bd0af16a72512250b5cffa3e133/github-blog-2019.8.12.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a0cbb7ad50f90d699fc56f1634165501", "sha256": "6b143792431449cb2bee50c2e1afce7d10ee7f006500a232cfc28245f58ba2e8" }, "downloads": -1, "filename": "github-blog-2019.8.12.tar.gz", "has_sig": false, "md5_digest": "a0cbb7ad50f90d699fc56f1634165501", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11271, "upload_time": "2019-08-12T14:39:43", "url": "https://files.pythonhosted.org/packages/57/ba/8a2a8dd7f06756877d7e2ea22454b0b65bd0af16a72512250b5cffa3e133/github-blog-2019.8.12.tar.gz" } ] }