# Speed File Library #
## What is this? ##
The module allows you to work with files in just one line of code, without the need to manually open and close the file each time
## Quick Guide ##
The module is based on the following structure:
f = open('data.txt')
data = f.readlines()
f.close()
Which Python provides by standard.
----------
### Using ###
Using the library is as simple and convenient as possible:
Let's import it first:
First, import everything from the library (use the `from `...` import *` construct).
Examples of all operations:
Writing the contents of an entire file to a variable using the `read()` function:
temp = File(path='test.txt').read()
Writing the contents of an entire file to a variable line by line using the `readlines()` function:
temp = File(path='test.txt').readlines()
Write only the first line from a file using the `readline()` function:
temp = File(path='test.txt').readline()
Writing data from a variable to a file using write() (overwriting or creating a file):
temp = "Test data"
File(path='test.txt', data=temp).write()
Adding data from a variable to a file using write() (or creating a file):
temp = "Test data"
File(path='test.txt', data=temp).add()
----------
## Developer ##
My site: [link](https://y-a-r-i-k.github.io/)
Raw data
{
"_id": null,
"home_page": "https://github.com/Mun-Robbery",
"name": "firstlib",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "files speedfiles",
"author": "antrisole",
"author_email": "gleb.zar.03@mail.ru",
"download_url": "https://files.pythonhosted.org/packages/d4/6b/a6be61d4b2cb79460e107d14facbe89a41732f001b38d82c7d6a6a67689c/firstlib-0.1.tar.gz",
"platform": null,
"description": "# Speed File Library #\r\n\r\n## What is this? ##\r\nThe module allows you to work with files in just one line of code, without the need to manually open and close the file each time\r\n\r\n## Quick Guide ##\r\nThe module is based on the following structure:\r\n\r\n \r\n f = open('data.txt')\r\n data = f.readlines()\r\n f.close()\r\n \r\nWhich Python provides by standard.\r\n\r\n\r\n----------\r\n\r\n\r\n### Using ###\r\n\r\n\r\nUsing the library is as simple and convenient as possible:\r\n\r\nLet's import it first:\r\nFirst, import everything from the library (use the `from `...` import *` construct).\r\n\r\nExamples of all operations:\r\n\r\nWriting the contents of an entire file to a variable using the `read()` function:\r\n\r\n temp = File(path='test.txt').read()\r\n\r\n\r\nWriting the contents of an entire file to a variable line by line using the `readlines()` function:\r\n\r\n temp = File(path='test.txt').readlines()\r\n\r\n\r\nWrite only the first line from a file using the `readline()` function:\r\n\r\n temp = File(path='test.txt').readline()\r\n\r\n\r\nWriting data from a variable to a file using write() (overwriting or creating a file):\r\n\r\n temp = \"Test data\"\r\n File(path='test.txt', data=temp).write()\r\n \r\n\r\nAdding data from a variable to a file using write() (or creating a file):\r\n\r\n temp = \"Test data\"\r\n File(path='test.txt', data=temp).add()\r\n\r\n\r\n----------\r\n\r\n\r\n## Developer ##\r\nMy site: [link](https://y-a-r-i-k.github.io/) \r\n",
"bugtrack_url": null,
"license": "",
"summary": "This is myh first module on python.",
"version": "0.1",
"project_urls": {
"GitHub": "https://github.com/Mun-Robbery",
"Homepage": "https://github.com/Mun-Robbery"
},
"split_keywords": [
"files",
"speedfiles"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "33cb780fcbe29213055cddb4fb111faf2e1cc729b4327ba5cbbdd89f2cff004b",
"md5": "18ef00ea13a75e13a16aabbdbff3b020",
"sha256": "1568d258a8e6667b5f381c22787c1eb5e7c5be7fff2b330f7fd526d1e33e67f8"
},
"downloads": -1,
"filename": "firstlib-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "18ef00ea13a75e13a16aabbdbff3b020",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 2446,
"upload_time": "2023-12-10T14:49:55",
"upload_time_iso_8601": "2023-12-10T14:49:55.301368Z",
"url": "https://files.pythonhosted.org/packages/33/cb/780fcbe29213055cddb4fb111faf2e1cc729b4327ba5cbbdd89f2cff004b/firstlib-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d46ba6be61d4b2cb79460e107d14facbe89a41732f001b38d82c7d6a6a67689c",
"md5": "f3c69fbe0021ab3634faca8bf074c267",
"sha256": "575dc9b787a149bccc7d7029d0df9e181d86c346e2c95d10311f554839b60217"
},
"downloads": -1,
"filename": "firstlib-0.1.tar.gz",
"has_sig": false,
"md5_digest": "f3c69fbe0021ab3634faca8bf074c267",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2052,
"upload_time": "2023-12-10T14:49:57",
"upload_time_iso_8601": "2023-12-10T14:49:57.224497Z",
"url": "https://files.pythonhosted.org/packages/d4/6b/a6be61d4b2cb79460e107d14facbe89a41732f001b38d82c7d6a6a67689c/firstlib-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-10 14:49:57",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "firstlib"
}