# Test Liba #
## 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://x-y.io)
Raw data
{
"_id": null,
"home_page": "https://github.com/Holodische/LibTest",
"name": "infotest",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "files infotest",
"author": "Eugene Bez",
"author_email": "holodische@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a9/8f/c7cc98ecea4ab89e9266357bfb460027c2fac3536d8b1cd1863f44a0b176/infotest-0.1.2.tar.gz",
"platform": null,
"description": "# Test Liba #\n\n## What is this? ##\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\n\n## Quick Guide ##\nThe module is based on the following structure:\n\n \n f = open('data.txt')\n data = f.readlines()\n f.close()\n \nWhich Python provides by standard.\n\n\n----------\n\n\n### Using ###\n\n\nUsing the library is as simple and convenient as possible:\n\nLet's import it first:\nFirst, import everything from the library (use the `from `...` import *` construct).\n\nExamples of all operations:\n\nWriting the contents of an entire file to a variable using the `read()` function:\n\n temp = File(path='test.txt').read()\n\n\nWriting the contents of an entire file to a variable line by line using the `readlines()` function:\n\n temp = File(path='test.txt').readlines()\n\n\nWrite only the first line from a file using the `readline()` function:\n\n temp = File(path='test.txt').readline()\n\n\nWriting data from a variable to a file using write() (overwriting or creating a file):\n\n temp = \"Test data\"\n File(path='test.txt', data=temp).write()\n \n\nAdding data from a variable to a file using write() (or creating a file):\n\n temp = \"Test data\"\n File(path='test.txt', data=temp).add()\n\n\n----------\n\n\n## Developer ##\nMy site: [link](https://x-y.io) \n\n",
"bugtrack_url": null,
"license": "",
"summary": "This is a test module to demonstrate the creation of libraries.",
"version": "0.1.2",
"project_urls": {
"GitHub": "https://github.com/Holodische/LibTest",
"Homepage": "https://github.com/Holodische/LibTest"
},
"split_keywords": [
"files",
"infotest"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7d9b8a6b3456aa3ccd8e48ac604aa17f77a28c5901a99d48b3a82a0af77c158b",
"md5": "9cb311cd7573843302a985619df958ef",
"sha256": "0c3fe461066a68e4df485a372f676475e55b79a03a29b6fd82788a13582c6095"
},
"downloads": -1,
"filename": "infotest-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9cb311cd7573843302a985619df958ef",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 2260,
"upload_time": "2023-10-19T07:22:21",
"upload_time_iso_8601": "2023-10-19T07:22:21.905684Z",
"url": "https://files.pythonhosted.org/packages/7d/9b/8a6b3456aa3ccd8e48ac604aa17f77a28c5901a99d48b3a82a0af77c158b/infotest-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a98fc7cc98ecea4ab89e9266357bfb460027c2fac3536d8b1cd1863f44a0b176",
"md5": "3cd58c62bc785501d82100bf14f81ee6",
"sha256": "70991cee4a3b039a9cb65947c28768c614a52dad894ae1f74337144125f0bcfa"
},
"downloads": -1,
"filename": "infotest-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "3cd58c62bc785501d82100bf14f81ee6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 2111,
"upload_time": "2023-10-19T07:22:23",
"upload_time_iso_8601": "2023-10-19T07:22:23.280430Z",
"url": "https://files.pythonhosted.org/packages/a9/8f/c7cc98ecea4ab89e9266357bfb460027c2fac3536d8b1cd1863f44a0b176/infotest-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-19 07:22:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Holodische",
"github_project": "LibTest",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "infotest"
}