{ "info": { "author": "Nathan Lepori", "author_email": "nathan.lepori@hotmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# pydiary\nMatLab style commands logger for the Python interpreter, with added features.\n\n## Usage\nImport the Diary class from the package and create a new instance. The commands you type in from now on will be logged into a file. Call `diary.off()` to disable logging.\n```python\nfrom pydiary import Diary\n\nDiary() # Turns diary on, saving commands to the default file diary.py\n\n...\n\n# The current active diary is automatically assigned to a variable called \"diary\"\ndiary.off() # Turns diary off\n```\n\nYou can pass a custom path for the diary file and save the instance to re-enable it afterwards:\n```python\n# Turns diary on, saving commands to a file called mydiary.py in the current directory\nmy_diary = Diary('mydiary.py') # You can save a reference to the Diary instance to use it later\n\n...\n\nmy_diary.off()\n\n...\n\nmy_diary.on() # Turns on the previously created diary\n```\n\n## Advanced usage\n\n### Buffered mode\nBy default pydiary uses an internal string buffer to keep the diary file free for manual changes, and only writes to it when you turn off the diary.\nYou can force pydiary to flush commands to the file by calling `diary.flush()`.\n\nCall `diary.discard()` if you want to discard all commands not yet written to the diary file.\n\n### Direct mode\nYou can force pydiary to operate in direct mode by setting the `buffered` parameter to `False` when creating an instance.\n\n```python\nDiary(buffered=False)\n```\n\nIn this mode pydiary will write commands directly to the diary file. Note that due to the way Python handles writing to files, the commands may not be written immediately and you may still need to call `diary.off()` to see them in the file.\n\n## Improvement, Issues report\nSuggest improvements or features, report bugs at [https://github.com/nathanlepori/pydiary/issues](https://github.com/nathanlepori/pydiary/issues)\n\n## Authors\n* Nathan Lepori\n\n\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/nathanlepori/pydiary", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pydiary", "package_url": "https://pypi.org/project/pydiary/", "platform": "", "project_url": "https://pypi.org/project/pydiary/", "project_urls": { "Homepage": "https://github.com/nathanlepori/pydiary" }, "release_url": "https://pypi.org/project/pydiary/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "MatLab style commands logger for the Python interpreter", "version": "1.1.0" }, "last_serial": 5361793, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "bb8c5c8aa6e8c5c541e86a12de78a466", "sha256": "c4ab47d36ebac151082040cdb90aebff7de1c8c0014f69f31471156ce34d834b" }, "downloads": -1, "filename": "pydiary-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bb8c5c8aa6e8c5c541e86a12de78a466", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2051, "upload_time": "2019-02-28T10:59:05", "url": "https://files.pythonhosted.org/packages/f7/a6/0a683bb466afafa123d0e5f2789b90872b0127547c9b4e44d1fa709fdec6/pydiary-1.0.0.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "71217cde8f7ff9ada59c81ce26a81d86", "sha256": "1c238af8fbcdfb0f5499d98aa3d3518ca96497ce2a6ffca39ffb9b1a25ee9996" }, "downloads": -1, "filename": "pydiary-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "71217cde8f7ff9ada59c81ce26a81d86", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3135, "upload_time": "2019-02-28T11:56:05", "url": "https://files.pythonhosted.org/packages/f3/7c/38f1e5d7d0b76ba025889cc68780d8a134c3f7a7436ac14edbb72e384fe2/pydiary-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf7250808a768b8ff17af7e444c35c67", "sha256": "15e7df03b9d61b8fc5cf67dcd23cd65a29fa9041c7c96196811893ddf8224433" }, "downloads": -1, "filename": "pydiary-1.0.2.tar.gz", "has_sig": false, "md5_digest": "bf7250808a768b8ff17af7e444c35c67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2021, "upload_time": "2019-02-28T11:56:07", "url": "https://files.pythonhosted.org/packages/6e/93/93e39d6c0396868da563fa000a7b22b40c38985c2502b9d25652719a934f/pydiary-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "de5a478d57ae67771abe13929fecc49c", "sha256": "95247c3e970488be65105230ccce8a64d7d9878072228d7be723b481816dffad" }, "downloads": -1, "filename": "pydiary-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "de5a478d57ae67771abe13929fecc49c", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 4241, "upload_time": "2019-04-16T12:27:13", "url": "https://files.pythonhosted.org/packages/60/8a/42717fe2859cae7fe0ef6976498182157c5c7d0a3c800c0e5669665304c3/pydiary-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4f29ab2291c7104e3a15d23af3308ae", "sha256": "71d9fb484808301e7152d606c43b24266daa7f1069b4e3f1a4496b0eb0dc0507" }, "downloads": -1, "filename": "pydiary-1.0.3.tar.gz", "has_sig": false, "md5_digest": "a4f29ab2291c7104e3a15d23af3308ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2928, "upload_time": "2019-04-16T12:27:11", "url": "https://files.pythonhosted.org/packages/91/1f/f42de024c5b537a9aa3eb2df47989f2c0e92a581623008324387cf265907/pydiary-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "15b6eb4d66e0ab43b3cc71d3e5468206", "sha256": "50dabcbf524837587dedd76c8de88cbf59aa248e4510a42a775d7161d55fc241" }, "downloads": -1, "filename": "pydiary-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "15b6eb4d66e0ab43b3cc71d3e5468206", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4242, "upload_time": "2019-04-16T12:29:03", "url": "https://files.pythonhosted.org/packages/c5/c8/1f4ca2a4c81751f320fd75b6b43092071edf71fa5ef91579d5ce398ff5ad/pydiary-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c8b48b73a27e925362ce3f0d8a88269e", "sha256": "a08d707fb3fe5e1a36e6ebd58bbb02adb0160cfd7882b0ed0bc7324c5c219312" }, "downloads": -1, "filename": "pydiary-1.0.4.tar.gz", "has_sig": false, "md5_digest": "c8b48b73a27e925362ce3f0d8a88269e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2926, "upload_time": "2019-04-16T12:29:05", "url": "https://files.pythonhosted.org/packages/44/d3/501701a9fbe04e964a3e98bf5b088299c1129b71f8672642d709de5aeb00/pydiary-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "6b695b0cbe4af666fe3a80b97e2cfafd", "sha256": "7b43f674be2ec46afc5df437b07e228d5fcbc77d5e7026c682380b31c3f6b0cf" }, "downloads": -1, "filename": "pydiary-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "6b695b0cbe4af666fe3a80b97e2cfafd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4117, "upload_time": "2019-04-17T08:09:12", "url": "https://files.pythonhosted.org/packages/c0/e6/02df51af794957215a73a98c90f87fef4e827ab4e40a03d0bb8212edc0d4/pydiary-1.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3a09d015a744e87d924615ade8cf1c6a", "sha256": "c9fb812f293de2a602869bb18057fa16bbc1f718b6e08876728f82a3265d183f" }, "downloads": -1, "filename": "pydiary-1.0.5.tar.gz", "has_sig": false, "md5_digest": "3a09d015a744e87d924615ade8cf1c6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2758, "upload_time": "2019-04-17T08:09:13", "url": "https://files.pythonhosted.org/packages/94/6e/aefb076db242c8e246156e14a9b61cc6949b700783109e25855fc57cf160/pydiary-1.0.5.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "6ffcb71cbd5c9bca3009f4abb3ec7eeb", "sha256": "e255e17639c4fa56dc77bec96391a1040996e2d762b30200e48ee3368f09a8cd" }, "downloads": -1, "filename": "pydiary-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6ffcb71cbd5c9bca3009f4abb3ec7eeb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4793, "upload_time": "2019-06-05T09:47:57", "url": "https://files.pythonhosted.org/packages/66/f8/4be48922c5db18a0e64f88210361634c747fdc3bebe767a8c5e72b973e0f/pydiary-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "29d5d7aff07fdb64fb5513397e305071", "sha256": "5cfba62a7827128ed04872c65f63b119aa7355b678fb0f3898c790a03848e30c" }, "downloads": -1, "filename": "pydiary-1.1.0.tar.gz", "has_sig": false, "md5_digest": "29d5d7aff07fdb64fb5513397e305071", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3522, "upload_time": "2019-06-05T09:47:58", "url": "https://files.pythonhosted.org/packages/83/24/01e767904e88b92919850d3d1733756a90e660ec5295c1b2ea0a1b474754/pydiary-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ffcb71cbd5c9bca3009f4abb3ec7eeb", "sha256": "e255e17639c4fa56dc77bec96391a1040996e2d762b30200e48ee3368f09a8cd" }, "downloads": -1, "filename": "pydiary-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6ffcb71cbd5c9bca3009f4abb3ec7eeb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4793, "upload_time": "2019-06-05T09:47:57", "url": "https://files.pythonhosted.org/packages/66/f8/4be48922c5db18a0e64f88210361634c747fdc3bebe767a8c5e72b973e0f/pydiary-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "29d5d7aff07fdb64fb5513397e305071", "sha256": "5cfba62a7827128ed04872c65f63b119aa7355b678fb0f3898c790a03848e30c" }, "downloads": -1, "filename": "pydiary-1.1.0.tar.gz", "has_sig": false, "md5_digest": "29d5d7aff07fdb64fb5513397e305071", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3522, "upload_time": "2019-06-05T09:47:58", "url": "https://files.pythonhosted.org/packages/83/24/01e767904e88b92919850d3d1733756a90e660ec5295c1b2ea0a1b474754/pydiary-1.1.0.tar.gz" } ] }