{ "info": { "author": "Tinos Psomadakis", "author_email": "me@hellotinos.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "

Spyll 1.0

\n\n

Welcome

\n

Spyll is an Open-Source Python package that is aimed at making txt file management easier. It was made in python 3.7 and should work on all versions higher than 3.0.

\n\n

Help commands

\n\n\n

Features

\n\n

spyll.write(file, text, split)

\n\n

Writes to a specified text file with optional split which is only available for tuples and lists.

\n

Example

\n\n```python\nimport spyll\n\nspyll.write(file=\"./folder/Hello_World.txt\",text=\"This is a new text file!\")\nspyll.write(file=\"./folder/Goodbye_World.txt\", text=[\"First Line\", \"Second Line\", \"Third Line\"], split=\"\\n\")\n```\n\n

spyll.read(file)

\n\n

Simply reads text file to string

\n

Example

\n\n```python\nimport spyll\n\ntext = spyll.read(file=\"./folder/Hello_World.txt\")\nprint(text)\n```\n\n

spyll.search(file, text)

\n\n

Checks to see if the file contains the specified value

\n

Example

\n\n```python\nimport spyll\n\nif spyll.search(file=\"./folder/Hello_World.txt\", \"username\"):\n print(\"Contains Username!\")\n```\n\n

Why use Spyll?

\n\n

Spyll was created to make managing python text files much easier to work with. It's purpose is to turn multi-line code snippets into a single function.

\n\n

Comparisons

\n\n

Normal Python

\n\n```python\n\nsentence = [\"Wow, \",\"I\",\"Love\",\"Python\"]\ntext=\"\"\nwith open(\"directory_to_file\", \"w\") as file:\n for i in sentence:\n text+=f\"{i} \"\n file.write(text)\n\nwith open(\"directory_to_file\", \"r\") as file:\n value = file.read()\n\nwith open(\"directory_to_file\", \"r\") as file:\n value = file.read()\n if \"username\" in file:\n print(\"Username spotted!\")\n\nwith open(\"directory_to_file\", \"r\") as file:\n text = file.read()\n number = text.count(\"username\")\n```\n\n

Using Spyll

\n\n```python\nimport spyll\n\nsentence = [\"Wow, \",\"I\",\"Love\",\"Python\"]\nspyll.write(\"directory_to_file\", sentence, \" \")\n\nvalue = spyll.read(\"directory_to_file\")\n\nif spyll.search(\"directory_to_file\", \"username\"):\n print(\"Username spotted!\")\n\nnumber = spyll.count(\"directory_to_file\",\"username\")\n\n```\n\n

Contribute!

\n\n[GitHub Page](https://github.com/pTinosq/spyll)\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://hellotinos.com", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "spyll", "package_url": "https://pypi.org/project/spyll/", "platform": "", "project_url": "https://pypi.org/project/spyll/", "project_urls": { "Homepage": "https://hellotinos.com" }, "release_url": "https://pypi.org/project/spyll/1.0/", "requires_dist": null, "requires_python": "", "summary": "Spyll is an Open-Source Python package that is aimed at making txt file management easier. It was made in python 3.7 and should work on all versions higher than 3.0.", "version": "1.0" }, "last_serial": 5828245, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d7a45cfb052f6cf98fb7b122f1006d5b", "sha256": "a6ded93c919fbe8729dd4ce660b4f527a3c7ebf06410b5b94235c2320f6c71fe" }, "downloads": -1, "filename": "spyll-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d7a45cfb052f6cf98fb7b122f1006d5b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4194, "upload_time": "2019-09-12T21:19:56", "url": "https://files.pythonhosted.org/packages/58/e5/c52cf991be1971a54decb1b6ab49a6267a39e4980163d99d74484dcededd/spyll-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f18795bb84497e77a2b3d8fb25c26fa", "sha256": "f2d36b5c5ee8d026bd7910ae1b67c963f19ae7c6233ec5ada6757e33bbe3cd92" }, "downloads": -1, "filename": "spyll-0.1.tar.gz", "has_sig": false, "md5_digest": "1f18795bb84497e77a2b3d8fb25c26fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2354, "upload_time": "2019-09-12T21:19:59", "url": "https://files.pythonhosted.org/packages/a4/b2/3658162de5f81dfbde41c9ad5700b0e79160311ab580b9aee5c8032ac46c/spyll-0.1.tar.gz" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "6fcf42018a93dbf5416f5066cd4ad420", "sha256": "83ea5d8192bfd11857ac4495509db4a0ae87a47d386dd700b7fdaef916bf3ee1" }, "downloads": -1, "filename": "spyll-0.11-py3-none-any.whl", "has_sig": false, "md5_digest": "6fcf42018a93dbf5416f5066cd4ad420", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4747, "upload_time": "2019-09-12T21:33:36", "url": "https://files.pythonhosted.org/packages/fb/f8/e81586a96e84aba8a6c12e96b1c9ab938b94bfd2030c553ce3ca733f2e28/spyll-0.11-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "75a5bcb127943ca30dcb41a1e231a8d2", "sha256": "8d653f389ba785ee69088335a479a2cfb720cb53aa1735dbf5748ed8afabb006" }, "downloads": -1, "filename": "spyll-0.11.tar.gz", "has_sig": false, "md5_digest": "75a5bcb127943ca30dcb41a1e231a8d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3003, "upload_time": "2019-09-12T21:33:38", "url": "https://files.pythonhosted.org/packages/53/09/5c8c415a2cfe4b8ca1b700c09114a3c7e594d0ee490f351755a5ddc31f10/spyll-0.11.tar.gz" } ], "0.12": [ { "comment_text": "", "digests": { "md5": "650b1b1e9afc4d2029dddd194eb2bc1a", "sha256": "1bbd6e558561349fdb9252284e3df28e3d27e8851c3aa1d8d5f1b77d1cc232bb" }, "downloads": -1, "filename": "spyll-0.12-py3-none-any.whl", "has_sig": false, "md5_digest": "650b1b1e9afc4d2029dddd194eb2bc1a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4594, "upload_time": "2019-09-12T21:54:02", "url": "https://files.pythonhosted.org/packages/e7/46/2626ea5bd7539fa7a6ec4466887e1f6c17669c78c9bbf0efc944f6d5cae0/spyll-0.12-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d89b13dbc7fee55a6b12d301f35340e", "sha256": "41cc04f6e99e9833ef12254b3bcae71c4c289be0f7c9f222cee264b0f458be38" }, "downloads": -1, "filename": "spyll-0.12.tar.gz", "has_sig": false, "md5_digest": "2d89b13dbc7fee55a6b12d301f35340e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2804, "upload_time": "2019-09-12T21:54:04", "url": "https://files.pythonhosted.org/packages/52/78/6b318f31dde2e4af0dc52cc2a3570c32e7a6cad27f25c98027f21eaaaec6/spyll-0.12.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "9cedbfe543bbd24f55e42717474c4d8e", "sha256": "cb9991dd560194ff39371078a5413a2f134e322cac0348b4ec00f3f193e40c68" }, "downloads": -1, "filename": "spyll-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9cedbfe543bbd24f55e42717474c4d8e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6159, "upload_time": "2019-09-14T00:27:57", "url": "https://files.pythonhosted.org/packages/95/c2/406c504ada03b9db849fc87dd80c7d0b70440293525004104440f3da0fb7/spyll-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b11bbbd82d211d42f6b7d30cd76c3bd6", "sha256": "06e6d77713cb1f5a0e38ccea224081c944613c3d419a410f74ee76643f1631fd" }, "downloads": -1, "filename": "spyll-1.0.tar.gz", "has_sig": false, "md5_digest": "b11bbbd82d211d42f6b7d30cd76c3bd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4439, "upload_time": "2019-09-14T00:27:59", "url": "https://files.pythonhosted.org/packages/45/ef/1262ceabda7ac504f55c4c8337aa0186e1c3d9f945e6b7b4cb7024673640/spyll-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9cedbfe543bbd24f55e42717474c4d8e", "sha256": "cb9991dd560194ff39371078a5413a2f134e322cac0348b4ec00f3f193e40c68" }, "downloads": -1, "filename": "spyll-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9cedbfe543bbd24f55e42717474c4d8e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6159, "upload_time": "2019-09-14T00:27:57", "url": "https://files.pythonhosted.org/packages/95/c2/406c504ada03b9db849fc87dd80c7d0b70440293525004104440f3da0fb7/spyll-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b11bbbd82d211d42f6b7d30cd76c3bd6", "sha256": "06e6d77713cb1f5a0e38ccea224081c944613c3d419a410f74ee76643f1631fd" }, "downloads": -1, "filename": "spyll-1.0.tar.gz", "has_sig": false, "md5_digest": "b11bbbd82d211d42f6b7d30cd76c3bd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4439, "upload_time": "2019-09-14T00:27:59", "url": "https://files.pythonhosted.org/packages/45/ef/1262ceabda7ac504f55c4c8337aa0186e1c3d9f945e6b7b4cb7024673640/spyll-1.0.tar.gz" } ] }