{ "info": { "author": "David Jenkins, Deepak Bhalla, Jonathan Dektiar", "author_email": "djenkinsdev@gmail.com, contact@deepakrb.com, contact@jonathandekhtiar.eu", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Readtime plugin for pelican\n===========================\n\n.. image:: https://travis-ci.com/JenkinsDev/pelican-readtime.svg?branch=master\n :target: https://travis-ci.com/JenkinsDev/pelican-readtime\n\nPlugin for `Pelican`_ that computes a piece of content's read time.\n\nIt adds a ``readtime`` and ``readtime_string`` attributes to every\narticle and/or page, with the time estimation for reading the article.\n\nSetting Up\n----------\n\nAdding \u2018ReadTime\u2019 to the list of plugins:\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n**In pelicanconf.py:**\n\n.. code:: python\n\n PLUGINS = [\n ... ,\n 'readtime'\n ]\n\n1. Words Per Minute Only\n^^^^^^^^^^^^^^^^^^^^^^^^\n\nIn your settings you would use assign the ``READTIME_WPM`` variable to\nan integer like so:\n\n**In pelicanconf.py:**\n\n.. code:: python\n\n READTIME_WPM = 180\n\nEvery article\u2019s read time would be calculated using this average words\nper minute count. (See the Usage section for how to use the calculated\nread times in templates). This is the simplest read time method.\n\n2. Words Per Minute per language\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nThis is the preferred method if you are dealing with multiple languages.\nTake a look at the following settings\n\n**In pelicanconf.py:**\n\n.. code:: python\n\n READTIME_WPM = {\n 'default': {\n 'wpm': 200,\n 'min_singular': 'minute',\n 'min_plural': 'minutes',\n 'sec_singular': 'second',\n 'sec_plural': 'seconds'\n },\n 'es': {\n 'wpm': 220,\n 'min_singular': 'minuto',\n 'min_plural': 'minutos',\n 'sec_singular': 'segundo',\n 'sec_plural': 'segundos'\n }\n }\n\nIn this example the default reading time for all articles is 200 words\nper minute. Any articles in spanish will be calculated at 220 wpm. This\nis useful for information dense languages where the read time varies\nrapidly.\n\nChances are the average reading time will not vary rapidly from language\nto language, however using this method also allows you to set plurals\nwhich make templating easier in the long run.\n\nUsage\n-----\n\nFour variables are accessible through the read time plugin:\n**readtime**, **readtime\\_string**, **readtime\\_with\\_seconds**, and **readtime\\_string\\_with\\_seconds**\n\n.. code:: html\n\n {% if article.readtime %} This article takes {{article.readtime}} minute(s) to read.{% endif %}\n // This article takes 4 minute(s) to read.\n\n.. code:: html\n\n {% if article.readtime_string %} This article takes {{article.readtime_string}} to read.{% endif %}\n // This article takes 4 minutes to read.\n\n.. code:: html\n\n {% if article.readtime_with_seconds %}\n This article takes {{article.read_with_seconds[0]}} minutes(s) and {{article.read_with_seconds[1]}} second(s) to read.\n {% endif %}\n // This article takes 4 minutes and 21 second(s) to read.\n\n.. code:: html\n\n {% if article.readtime_string_with_seconds %} This article takes {{article.readtime_string_with_seconds}} to read.{% endif %}\n // This article takes 4 minutes, 1 second to read.\n\n\nLinks\n-----\n\n.. _Pelican: http://getpelican.com/", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/JenkinsDev/pelican-readtime", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/JenkinsDev/pelican-readtime", "keywords": "pelican blogging blog static webdevelopment plugin pelican-plugin readtime python python3 python2", "license": "MIT", "maintainer": "David Jenkins, Deepak Bhalla, Jonathan Dektiar", "maintainer_email": "djenkinsdev@gmail.com, contact@deepakrb.com, contact@jonathandekhtiar.eu", "name": "pelican-readtime", "package_url": "https://pypi.org/project/pelican-readtime/", "platform": "", "project_url": "https://pypi.org/project/pelican-readtime/", "project_urls": { "Download": "https://github.com/JenkinsDev/pelican-readtime", "Homepage": "https://github.com/JenkinsDev/pelican-readtime" }, "release_url": "https://pypi.org/project/pelican-readtime/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Plugin for Pelican that computes average read time.", "version": "0.2.0" }, "last_serial": 5204216, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4bb28bc0354c957e98fb6e4484cecb30", "sha256": "732b37769d12c7c20beeeca92520335ce0dae9ba26ee093b9e13831f42712869" }, "downloads": -1, "filename": "pelican-readtime-0.1.0.zip", "has_sig": false, "md5_digest": "4bb28bc0354c957e98fb6e4484cecb30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3800, "upload_time": "2014-12-05T22:39:44", "url": "https://files.pythonhosted.org/packages/55/e2/6e7403c322b62e6fd7bddb4ca7c40101cfd7769e2971f60f9e3a6b0b9dce/pelican-readtime-0.1.0.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "38999987ad7f4e00f5f1370a44a15589", "sha256": "fa5eb78e3ab5953f92ffad11fe56ec2fa53d5da629fa247707ade24c2e187d58" }, "downloads": -1, "filename": "pelican-readtime-0.1.1.zip", "has_sig": false, "md5_digest": "38999987ad7f4e00f5f1370a44a15589", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5029, "upload_time": "2014-12-05T22:49:24", "url": "https://files.pythonhosted.org/packages/e6/6a/d8b49583a7a574999f60cbcb05f9ef8b5c205212a100a8e874a9ef9c7663/pelican-readtime-0.1.1.zip" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "27b08181bbd92ab6fc3d0c1c37a0fc59", "sha256": "c63a7481087d2dc60946491a1f0babd277b916c30f0888fb7a9afa7123e17675" }, "downloads": -1, "filename": "pelican-readtime-0.1.2.zip", "has_sig": false, "md5_digest": "27b08181bbd92ab6fc3d0c1c37a0fc59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6677, "upload_time": "2016-06-10T19:32:04", "url": "https://files.pythonhosted.org/packages/3c/3b/9d1e905a8a9044c80003e91757319dcfd46610e4e6633b6b88ba115bce97/pelican-readtime-0.1.2.zip" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "09c913a65bbb6271571809a4a1d60d7e", "sha256": "e4ebc0fafa27a0a2e92bde6efc45635fc4e9f8c7f58ee5ab370766b6fe80896a" }, "downloads": -1, "filename": "pelican-readtime-0.1.5.tar.gz", "has_sig": false, "md5_digest": "09c913a65bbb6271571809a4a1d60d7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3798, "upload_time": "2019-04-28T13:49:17", "url": "https://files.pythonhosted.org/packages/5b/3f/de9c0e56521ac9f351e60af68177d17d39299754c7de814cb4d90fe7f833/pelican-readtime-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "de0a0c97c391b4d990407ae55d2b5a49", "sha256": "468969238deb1a26c65a667abbf29d61697e2ec7f17ada47c36f277bbbf7cb7b" }, "downloads": -1, "filename": "pelican-readtime-0.1.6.tar.gz", "has_sig": false, "md5_digest": "de0a0c97c391b4d990407ae55d2b5a49", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3722, "upload_time": "2019-04-28T14:11:53", "url": "https://files.pythonhosted.org/packages/01/ab/29068fb141e7c0bdb600bee5d9248105c09517a92b445e2a73c4ad39c05c/pelican-readtime-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "1efb00f504bfa17a4b7791af39b972a3", "sha256": "7d1ce65c674dedfe6f57f55d124f47af0032205216049e5ca985daa637c14589" }, "downloads": -1, "filename": "pelican-readtime-0.1.7.tar.gz", "has_sig": false, "md5_digest": "1efb00f504bfa17a4b7791af39b972a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6012, "upload_time": "2019-04-28T14:22:07", "url": "https://files.pythonhosted.org/packages/23/da/6c1c6c16aa0bbd1ba1cd6cb3d47b57f16450400ec0b956e83e4d2de171fc/pelican-readtime-0.1.7.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "670cdab083b7e642b4c0c9147a933ee0", "sha256": "e0e48e0abcb4b14a287cc24a89b236221e5999033ce81965004f03ff38aae9c5" }, "downloads": -1, "filename": "pelican-readtime-0.2.0.tar.gz", "has_sig": false, "md5_digest": "670cdab083b7e642b4c0c9147a933ee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6504, "upload_time": "2019-04-29T17:28:00", "url": "https://files.pythonhosted.org/packages/64/16/d18e6794c012e51bb0ab13f38d425a8ad335fee512e7248a0d1396827773/pelican-readtime-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "670cdab083b7e642b4c0c9147a933ee0", "sha256": "e0e48e0abcb4b14a287cc24a89b236221e5999033ce81965004f03ff38aae9c5" }, "downloads": -1, "filename": "pelican-readtime-0.2.0.tar.gz", "has_sig": false, "md5_digest": "670cdab083b7e642b4c0c9147a933ee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6504, "upload_time": "2019-04-29T17:28:00", "url": "https://files.pythonhosted.org/packages/64/16/d18e6794c012e51bb0ab13f38d425a8ad335fee512e7248a0d1396827773/pelican-readtime-0.2.0.tar.gz" } ] }