# Library for Python by DexTeam - Documentation
# 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 discord server: soon... (I'm already doing it)
Raw data
{
"_id": null,
"home_page": "https://github.com/andrekornyk/Library-for-Python-by-DexTeam?tab=readme-ov-file",
"name": "tensor-library",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "files speedfiles",
"author": "DexTeam",
"author_email": "bankcommandoofficial@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/56/53/71642626c3e3beaef7d07027f6a4503298a65339bbab3872fa43194a3201/tensor_library-0.0.1.tar.gz",
"platform": null,
"description": "# Library for Python by DexTeam - Documentation\r\n\r\n# 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 discord server: soon... (I'm already doing it)\r\n",
"bugtrack_url": null,
"license": "",
"summary": "It is a simple library for the Python programming language. It will be updated frequently.",
"version": "0.0.1",
"project_urls": {
"GitHub": "https://github.com/andrekornyk/Library-for-Python-by-DexTeam?tab=readme-ov-file",
"Homepage": "https://github.com/andrekornyk/Library-for-Python-by-DexTeam?tab=readme-ov-file"
},
"split_keywords": [
"files",
"speedfiles"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "03f92cb244aa94e0b31bd6402cebe23e940a985ab2c7f7bffa7ff2490f879e65",
"md5": "36a8f43c8eb7c01c01b5bb2ac9410a48",
"sha256": "631a9bfaf9f5ae83c9325c28064787edb48bbf2884339a40f38cb79e56ab02f4"
},
"downloads": -1,
"filename": "tensor_library-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "36a8f43c8eb7c01c01b5bb2ac9410a48",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6527,
"upload_time": "2024-02-29T17:17:02",
"upload_time_iso_8601": "2024-02-29T17:17:02.731145Z",
"url": "https://files.pythonhosted.org/packages/03/f9/2cb244aa94e0b31bd6402cebe23e940a985ab2c7f7bffa7ff2490f879e65/tensor_library-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9a9d5c4680553bb9e31b303e6d2f252605ec76f8b070a122095dd0ecafb5e24a",
"md5": "ba936fee674f6b9daa69a9f4c6febae7",
"sha256": "31b584854688d6a20268f4666f37c4a9cb1bb482827835c5f7ad1f1c15b0bc88"
},
"downloads": -1,
"filename": "Tensor_Library-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ba936fee674f6b9daa69a9f4c6febae7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6528,
"upload_time": "2024-02-29T17:16:14",
"upload_time_iso_8601": "2024-02-29T17:16:14.609433Z",
"url": "https://files.pythonhosted.org/packages/9a/9d/5c4680553bb9e31b303e6d2f252605ec76f8b070a122095dd0ecafb5e24a/Tensor_Library-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "565371642626c3e3beaef7d07027f6a4503298a65339bbab3872fa43194a3201",
"md5": "807ae15b5233e29f07c9036f4e04285e",
"sha256": "89b378fe677fa509686e1138afba22355a24249b25345bcf9f30f9473b55bc67"
},
"downloads": -1,
"filename": "tensor_library-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "807ae15b5233e29f07c9036f4e04285e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6254,
"upload_time": "2024-02-29T17:17:03",
"upload_time_iso_8601": "2024-02-29T17:17:03.626331Z",
"url": "https://files.pythonhosted.org/packages/56/53/71642626c3e3beaef7d07027f6a4503298a65339bbab3872fa43194a3201/tensor_library-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-29 17:17:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "andrekornyk",
"github_project": "Library-for-Python-by-DexTeam?tab=readme-ov-file",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "tensor-library"
}