| Name | networking-utils JSON |
| Version |
0.1.6
JSON |
| download |
| home_page | None |
| Summary | A small collection of networking-related utility helpers (demo). |
| upload_time | 2025-10-09 10:44:59 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.8 |
| license | MIT |
| keywords |
networking
utilities
demo
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# networking-utils
Small utilities for networking-related scripts. Current focus: a simple `Timestamp` helper.
## What’s included
- `Timestamp` class for generating current time in two formats:
- `timestamp`: `YYYY_MM_DD_HH_MM_SS` (good for filenames)
- `time_str`: `YYYY-MM-DD HH:MM:SS` (good for logs/UI)
Source: `src/networking_utils/timestamp.py`
## Installation
```bash
pip install networking-utils
```
Install from TestPyPI (optional):
```powershell
# Windows PowerShell
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple networking-utils
```
## Usage
```python
from networking_utils.timestamp import Timestamp
ts = Timestamp()
ts.get_timestamp() # populates fields with the current time
print(ts.timestamp) # e.g., '2025_10_09_14_23_45'
print(ts.time_str) # e.g., '2025-10-09 14:23:45'
```
### Practical examples
- Unique filenames
```python
from pathlib import Path
from networking_utils.timestamp import Timestamp
ts = Timestamp(); ts.get_timestamp()
path = Path(f"backup_{ts.timestamp}.zip")
```
- Log lines
```python
from networking_utils.timestamp import Timestamp
ts = Timestamp(); ts.get_timestamp()
print(f"[{ts.time_str}] job started")
```
## Development
```powershell
# Windows PowerShell
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .[dev]
```
Build locally:
```powershell
python -m pip install --upgrade pip setuptools wheel build
python -m build
```
## Versioning
Semantic versioning (MAJOR.MINOR.PATCH).
## License
MIT
Raw data
{
"_id": null,
"home_page": null,
"name": "networking-utils",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "networking, utilities, demo",
"author": null,
"author_email": "Your Name <you@example.com>",
"download_url": "https://files.pythonhosted.org/packages/73/14/c45cde2bc4766eadb226b6dd3c435f536bc9b39ac6d6f385599ecfcdf3e8/networking_utils-0.1.6.tar.gz",
"platform": null,
"description": "# networking-utils\r\n\r\nSmall utilities for networking-related scripts. Current focus: a simple `Timestamp` helper.\r\n\r\n## What\u2019s included\r\n- `Timestamp` class for generating current time in two formats:\r\n\t- `timestamp`: `YYYY_MM_DD_HH_MM_SS` (good for filenames)\r\n\t- `time_str`: `YYYY-MM-DD HH:MM:SS` (good for logs/UI)\r\n\r\nSource: `src/networking_utils/timestamp.py`\r\n\r\n## Installation\r\n```bash\r\npip install networking-utils\r\n```\r\n\r\nInstall from TestPyPI (optional):\r\n```powershell\r\n# Windows PowerShell\r\npip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple networking-utils\r\n```\r\n\r\n## Usage\r\n```python\r\nfrom networking_utils.timestamp import Timestamp\r\n\r\nts = Timestamp()\r\nts.get_timestamp() # populates fields with the current time\r\n\r\nprint(ts.timestamp) # e.g., '2025_10_09_14_23_45'\r\nprint(ts.time_str) # e.g., '2025-10-09 14:23:45'\r\n```\r\n\r\n### Practical examples\r\n- Unique filenames\r\n```python\r\nfrom pathlib import Path\r\nfrom networking_utils.timestamp import Timestamp\r\n\r\nts = Timestamp(); ts.get_timestamp()\r\npath = Path(f\"backup_{ts.timestamp}.zip\")\r\n```\r\n\r\n- Log lines\r\n```python\r\nfrom networking_utils.timestamp import Timestamp\r\n\r\nts = Timestamp(); ts.get_timestamp()\r\nprint(f\"[{ts.time_str}] job started\")\r\n```\r\n\r\n## Development\r\n```powershell\r\n# Windows PowerShell\r\npython -m venv .venv\r\n.\\.venv\\Scripts\\Activate.ps1\r\npip install -e .[dev]\r\n```\r\n\r\nBuild locally:\r\n```powershell\r\npython -m pip install --upgrade pip setuptools wheel build\r\npython -m build\r\n```\r\n\r\n## Versioning\r\nSemantic versioning (MAJOR.MINOR.PATCH).\r\n\r\n## License\r\nMIT\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A small collection of networking-related utility helpers (demo).",
"version": "0.1.6",
"project_urls": {
"Homepage": "https://example.com/networking-utils",
"Issues": "https://example.com/networking-utils/issues",
"Repository": "https://example.com/networking-utils/repo"
},
"split_keywords": [
"networking",
" utilities",
" demo"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1f72bd6e8a8aebed4097aebd204cde296fd99abd414cabf5a3632df173da574b",
"md5": "88aea4508aa75d55f6387059963da257",
"sha256": "b6f64cb8686b2757999fd1ad0c5145537a575602b4931a12a7cdc19e69816704"
},
"downloads": -1,
"filename": "networking_utils-0.1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "88aea4508aa75d55f6387059963da257",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3573,
"upload_time": "2025-10-09T10:44:58",
"upload_time_iso_8601": "2025-10-09T10:44:58.349921Z",
"url": "https://files.pythonhosted.org/packages/1f/72/bd6e8a8aebed4097aebd204cde296fd99abd414cabf5a3632df173da574b/networking_utils-0.1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7314c45cde2bc4766eadb226b6dd3c435f536bc9b39ac6d6f385599ecfcdf3e8",
"md5": "7da290629119e5cd72db3c1cacdd124d",
"sha256": "d609de433c262524437455be49b04a4ecdf5dd641214f2c7d03cfbf5ee6c9946"
},
"downloads": -1,
"filename": "networking_utils-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "7da290629119e5cd72db3c1cacdd124d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3371,
"upload_time": "2025-10-09T10:44:59",
"upload_time_iso_8601": "2025-10-09T10:44:59.099622Z",
"url": "https://files.pythonhosted.org/packages/73/14/c45cde2bc4766eadb226b6dd3c435f536bc9b39ac6d6f385599ecfcdf3e8/networking_utils-0.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-09 10:44:59",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "networking-utils"
}