Name | stdl JSON |
Version |
0.6.3
JSON |
| download |
home_page | None |
Summary | Extended Python Standard Library |
upload_time | 2025-07-18 17:26:18 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License
Copyright (c) 2022 Žiga Ivanšek
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
ansi colors
color formats
filesystem
lazy import
list utils
logging configuration
python lazy import
python utilites
standard library
stdl
string utils
terminal links
terminal output
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# stdl
[](https://github.com/zigai/stdl/actions/workflows/tests.yml)
[](https://stdl.readthedocs.io/en/latest/?badge=latest)
[](https://badge.fury.io/py/stdl)

[](https://pepy.tech/project/stdl)
[](https://github.com/zigai/stdl/blob/master/LICENSE)
`stdl` is a collection of Python utilities that complement the standard library.
## Features
- File and directory operations
- String manipulation
- ANSI color support for terminal output
- Date and time formatting
- List utils
- Lazy imports
- Logging configuration for `logging` and `loguru`
- [See docs](https://stdl.readthedocs.io/en/latest/?badge=latest)
## Installation
### Using pip
```sh
pip install stdl
```
### Using uv
```sh
uv add stdl
```
### From source
```sh
pip install git+https://github.com/zigai/stdl.git
# or
uv add git+https://github.com/zigai/stdl.git
```
## Examples
### Lazy imports
```python
from typing import TYPE_CHECKING
from stdl.import_lazy import import_lazy
if TYPE_CHECKING:
from os.path import abspath, join
import numpy as np
import torch
else:
import_lazy("os.path", ["join", "abspath"], verbose=True)
import_lazy("numpy", alias="np", verbose=True)
import_lazy("torch", verbose=True)
print(np.zeros(4))
# importing "numpy" took 0.060s
# [0. 0. 0. 0.]
print(torch)
# <LazyImport: torch>
print(torch.randn(8))
# importing "torch" took 1.118s
# tensor([0., 0., 0., 0., 0., 0., 0., 0.])
print(torch)
# <module 'torch' from .../torch/__init__.py'
```
## License
[MIT License](https://github.com/zigai/stdl/blob/master/LICENSE)
Raw data
{
"_id": null,
"home_page": null,
"name": "stdl",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "ANSI colors, color formats, filesystem, lazy import, list utils, logging configuration, python lazy import, python utilites, standard library, stdl, string utils, terminal links, terminal output",
"author": null,
"author_email": "\u017diga Ivan\u0161ek <ziga.ivansek@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/77/4d/e3cb1e28e573e55a14a218ddb132ed7bb0588d3c095702a0ac055fae27a5/stdl-0.6.3.tar.gz",
"platform": null,
"description": "# stdl\n\n[](https://github.com/zigai/stdl/actions/workflows/tests.yml)\n[](https://stdl.readthedocs.io/en/latest/?badge=latest)\n[](https://badge.fury.io/py/stdl)\n\n[](https://pepy.tech/project/stdl)\n[](https://github.com/zigai/stdl/blob/master/LICENSE)\n\n`stdl` is a collection of Python utilities that complement the standard library.\n\n## Features\n\n- File and directory operations\n- String manipulation\n- ANSI color support for terminal output\n- Date and time formatting\n- List utils\n- Lazy imports\n- Logging configuration for `logging` and `loguru`\n- [See docs](https://stdl.readthedocs.io/en/latest/?badge=latest)\n\n## Installation\n\n### Using pip\n\n```sh\npip install stdl\n```\n\n### Using uv\n\n```sh\nuv add stdl\n```\n\n### From source\n\n```sh\npip install git+https://github.com/zigai/stdl.git\n# or\nuv add git+https://github.com/zigai/stdl.git\n```\n\n## Examples\n\n### Lazy imports\n\n```python\nfrom typing import TYPE_CHECKING\nfrom stdl.import_lazy import import_lazy\n\nif TYPE_CHECKING:\n from os.path import abspath, join\n import numpy as np\n import torch\nelse:\n import_lazy(\"os.path\", [\"join\", \"abspath\"], verbose=True)\n import_lazy(\"numpy\", alias=\"np\", verbose=True)\n import_lazy(\"torch\", verbose=True)\n\nprint(np.zeros(4))\n# importing \"numpy\" took 0.060s\n# [0. 0. 0. 0.]\nprint(torch)\n# <LazyImport: torch>\nprint(torch.randn(8))\n# importing \"torch\" took 1.118s\n# tensor([0., 0., 0., 0., 0., 0., 0., 0.])\nprint(torch)\n# <module 'torch' from .../torch/__init__.py'\n```\n\n## License\n\n[MIT License](https://github.com/zigai/stdl/blob/master/LICENSE)\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2022 \u017diga Ivan\u0161ek\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.",
"summary": "Extended Python Standard Library",
"version": "0.6.3",
"project_urls": {
"Documentation": "https://stdl.readthedocs.io",
"Homepage": "https://github.com/zigai/stdl",
"Issues": "https://github.com/zigai/stdl/issues",
"Repository": "https://github.com/zigai/stdl"
},
"split_keywords": [
"ansi colors",
" color formats",
" filesystem",
" lazy import",
" list utils",
" logging configuration",
" python lazy import",
" python utilites",
" standard library",
" stdl",
" string utils",
" terminal links",
" terminal output"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "b405d733612423cb0b722b0814d88d686ff22757617d8f67ae6109f1d887823a",
"md5": "4c5fdefef9544af5dc6467c95c65d5fa",
"sha256": "e8a74bc25f132bb039c57f8773a7842bfee4eeabbc4312f9fab7380d17470c76"
},
"downloads": -1,
"filename": "stdl-0.6.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4c5fdefef9544af5dc6467c95c65d5fa",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 31214,
"upload_time": "2025-07-18T17:26:17",
"upload_time_iso_8601": "2025-07-18T17:26:17.231402Z",
"url": "https://files.pythonhosted.org/packages/b4/05/d733612423cb0b722b0814d88d686ff22757617d8f67ae6109f1d887823a/stdl-0.6.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "774de3cb1e28e573e55a14a218ddb132ed7bb0588d3c095702a0ac055fae27a5",
"md5": "115a2188619e316425c0999c45ee1da0",
"sha256": "28ce41a5f5dbff879e2d75c8bc9eed201388ef445de6b655d61de7e602f7d3e4"
},
"downloads": -1,
"filename": "stdl-0.6.3.tar.gz",
"has_sig": false,
"md5_digest": "115a2188619e316425c0999c45ee1da0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 72875,
"upload_time": "2025-07-18T17:26:18",
"upload_time_iso_8601": "2025-07-18T17:26:18.106229Z",
"url": "https://files.pythonhosted.org/packages/77/4d/e3cb1e28e573e55a14a218ddb132ed7bb0588d3c095702a0ac055fae27a5/stdl-0.6.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-18 17:26:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zigai",
"github_project": "stdl",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "stdl"
}