Name | wixok.txttoolkit JSON |
Version |
25.8.3
JSON |
| download |
home_page | None |
Summary | Simple Python utility for text file operations. |
upload_time | 2025-08-03 16:03:16 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
text
file
io
toolkit
txttoolkit
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# TXTToolkit
Simple Python utility for text file operations.
## Install
```bash
pip install txttoolkit
```
## Usage
```python
from txt_toolkit import TXTToolkit
# Read file
lines = TXTToolkit.load("data.txt")
print(lines) # ['line 1', 'line 2', 'line 3', 'line 4']
# Count lines
count = TXTToolkit.count("data.txt")
print(count) # 4
# Add a line
add = TXTToolkit.add("data.txt", "line 4")
print(add) # True
# Clear file
clear = TXTToolkit.clear("data.txt")
print(clear) # True
```
## Methods
| Method | Description | Returns |
|--------|-------------|---------|
| `load(path)` | Read file lines into list | `list[str]` |
| `count(path)` | Count non-empty lines | `int` |
| `add(path, text)` | Append line to file | `bool` |
| `clear(path)` | Empty the file | `bool` |
## Debug Mode
```python
TXTToolkit.debug = True # Enable error messages
```
## License
MIT
Raw data
{
"_id": null,
"home_page": null,
"name": "wixok.txttoolkit",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Mohammed Dellihr <mohammeddellihr@maildoo.com>",
"keywords": "text, file, io, toolkit, txttoolkit",
"author": null,
"author_email": "Wixok <contact@wixok.com>",
"download_url": "https://files.pythonhosted.org/packages/39/97/a287be52ffe4d56fc3e94f87fb4fe4d68dc84bdd3b00b90850383391575e/wixok_txttoolkit-25.8.3.tar.gz",
"platform": null,
"description": "# TXTToolkit\r\n\r\nSimple Python utility for text file operations.\r\n\r\n## Install\r\n\r\n```bash\r\npip install txttoolkit\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom txt_toolkit import TXTToolkit\r\n\r\n# Read file\r\nlines = TXTToolkit.load(\"data.txt\")\r\nprint(lines) # ['line 1', 'line 2', 'line 3', 'line 4']\r\n\r\n# Count lines\r\ncount = TXTToolkit.count(\"data.txt\")\r\nprint(count) # 4\r\n\r\n# Add a line\r\nadd = TXTToolkit.add(\"data.txt\", \"line 4\")\r\nprint(add) # True\r\n\r\n# Clear file\r\nclear = TXTToolkit.clear(\"data.txt\")\r\nprint(clear) # True\r\n```\r\n\r\n## Methods\r\n\r\n| Method | Description | Returns |\r\n|--------|-------------|---------|\r\n| `load(path)` | Read file lines into list | `list[str]` |\r\n| `count(path)` | Count non-empty lines | `int` |\r\n| `add(path, text)` | Append line to file | `bool` |\r\n| `clear(path)` | Empty the file | `bool` |\r\n\r\n## Debug Mode\r\n\r\n```python\r\nTXTToolkit.debug = True # Enable error messages\r\n```\r\n\r\n## License\r\n\r\nMIT\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Simple Python utility for text file operations.",
"version": "25.8.3",
"project_urls": {
"Homepage": "https://txttoolkit.wixok.com",
"Issues": "https://github.com/wixok/txttoolkit/issues",
"Repository": "https://github.com/wixok/txttoolkit"
},
"split_keywords": [
"text",
" file",
" io",
" toolkit",
" txttoolkit"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "ac0e442f8174a97daec21a8d9cb8ae1af44354a367ac9463e9052f097a99aa81",
"md5": "40cf689e7f0f2fb29e1e1104d56f6896",
"sha256": "c2d3fd6480086287fc075ec234eef61682459dc07a6c3f1a9ca7f95bb5ba14bd"
},
"downloads": -1,
"filename": "wixok_txttoolkit-25.8.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "40cf689e7f0f2fb29e1e1104d56f6896",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3545,
"upload_time": "2025-08-03T16:03:14",
"upload_time_iso_8601": "2025-08-03T16:03:14.668580Z",
"url": "https://files.pythonhosted.org/packages/ac/0e/442f8174a97daec21a8d9cb8ae1af44354a367ac9463e9052f097a99aa81/wixok_txttoolkit-25.8.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3997a287be52ffe4d56fc3e94f87fb4fe4d68dc84bdd3b00b90850383391575e",
"md5": "8753c1c24ab4de93d50f271a8a0a48bb",
"sha256": "18f73f44631bade4c0f582cb6118573ad27cd57dd58c0472b9f1f7b6023a7175"
},
"downloads": -1,
"filename": "wixok_txttoolkit-25.8.3.tar.gz",
"has_sig": false,
"md5_digest": "8753c1c24ab4de93d50f271a8a0a48bb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3681,
"upload_time": "2025-08-03T16:03:16",
"upload_time_iso_8601": "2025-08-03T16:03:16.057463Z",
"url": "https://files.pythonhosted.org/packages/39/97/a287be52ffe4d56fc3e94f87fb4fe4d68dc84bdd3b00b90850383391575e/wixok_txttoolkit-25.8.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-03 16:03:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "wixok",
"github_project": "txttoolkit",
"github_not_found": true,
"lcname": "wixok.txttoolkit"
}