spydlog 1.0.1.dev0__cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
spydlog/__init__.py
ADDED
spydlog/_version.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# file generated by setuptools-scm
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
TYPE_CHECKING = False
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from typing import Tuple
|
|
16
|
+
from typing import Union
|
|
17
|
+
|
|
18
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
20
|
+
else:
|
|
21
|
+
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
23
|
+
|
|
24
|
+
version: str
|
|
25
|
+
__version__: str
|
|
26
|
+
__version_tuple__: VERSION_TUPLE
|
|
27
|
+
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
30
|
+
|
|
31
|
+
__version__ = version = '1.0.1.dev0'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 0, 1, 'dev0')
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = 'g59de57c2b'
|
|
Binary file
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: spydlog
|
|
3
|
+
Version: 1.0.1.dev0
|
|
4
|
+
Summary: Python bindings for spdlog
|
|
5
|
+
Author-Email: Romain Augier <contact@romainaugier.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Development Status :: 4 - Beta
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Requires-Python: >=3.9
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# spydlog
|
|
21
|
+
|
|
22
|
+
Python bindings for [spdlog](https://github.com/gabime/spdlog) using [nanobind](https://github.com/wjakob/nanobind).
|
|
23
|
+
|
|
24
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
25
|
+
[](https://codecov.io/gh/romainaugier/spydlog)
|
|
26
|
+
|
|
27
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
28
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
29
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
30
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
31
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
32
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
33
|
+
|
|
34
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
35
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
36
|
+
[](https://github.com/romainaugier/spydlog/actions/workflows/ci.yml)
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
Supported Python versions ranges from 3.9 (minimum version) up to the latest (3.14). Supported platforms are Windows, Linux and MacOs.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install spydlog
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Documentation
|
|
47
|
+
|
|
48
|
+
Please refer to the official documentation of [spdlog](https://github.com/gabime/spdlog/wiki) and see the [documentation](https://github.com/romainaugier/spydlog/blob/main/DOCUMENTATION.md) for examples.
|
|
49
|
+
|
|
50
|
+
## Performance
|
|
51
|
+
|
|
52
|
+
A benchmark against the native logger module is avaiable in benchmarks. The results are great, but some improvements can be made to the bindings (for console-logging especially).
|
|
53
|
+
|
|
54
|
+
| Library | Scenario | Messages/Second | Speedup vs Python |
|
|
55
|
+
|---------|----------|-----------------|-------------------|
|
|
56
|
+
| Python | Console | 5,093 | 1.0x |
|
|
57
|
+
| Python | File | 37,270 | 1.0x |
|
|
58
|
+
| Python | Disabled | 6,583,365 | 1.0x |
|
|
59
|
+
| spydlog | Console (MT) | 13,651 | 2.7x |
|
|
60
|
+
| spydlog | Console (ST) | 13,388 | 2.6x |
|
|
61
|
+
| spydlog | File (MT) | 1,302,138 | 34.9x |
|
|
62
|
+
| spydlog | File (ST) | 1,390,776 | 37.3x |
|
|
63
|
+
| spydlog | Async File | 2,305,422 | 61.9x |
|
|
64
|
+
| spydlog | Disabled | 3,955,180 | 0.6x |
|
|
65
|
+
|
|
66
|
+
## License and attribution
|
|
67
|
+
|
|
68
|
+
All material in this repository is licensed under an [MIT License](https://github.com/romainaugier/spydlog/blob/main/LICENSE).
|
|
69
|
+
|
|
70
|
+
## Acknowledgement
|
|
71
|
+
|
|
72
|
+
Some code and text of this repository has been generated by AI using Claude, via the web interface.
|
|
73
|
+
|
|
74
|
+
- Python test code has initially been generated by Claude and modified by the author.
|
|
75
|
+
- Python Stubs have been auto-generated by nanobind and fixed by Claude for better type inference and clear wrapping of C++ types not converted correctly by the nanobind generator.
|
|
76
|
+
- Documentation has been generated by Claude given the existing stubs and code.
|
|
77
|
+
- Benchmark code has been generated by Claude.
|
|
78
|
+
|
|
79
|
+
Although LLMs are not on-par with a human brain for everything, they do a good job when it comes to summarizing/generating text given a good input, that's why it was practical to use them in that case. Critical code (cpp bindings) has been written by hand and carefully reviewed and tested.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
spydlog/__init__.py,sha256=bCf934znsv8MBDwaPJT6Xe7wHxqHQtulgIY9PNgFynM,276
|
|
2
|
+
spydlog/_version.py,sha256=Esyj5s0t8uIVo3iMCA5kSR6GR0XD4JSOiGpQr63CPRM,725
|
|
3
|
+
spydlog/spydlog.cpython-313-x86_64-linux-gnu.so,sha256=MoYzSRlVBZZ3a5wTdpt1MNSKFahgp30FAllsI18FGxE,615840
|
|
4
|
+
spydlog-1.0.1.dev0.dist-info/METADATA,sha256=KzD-5H25Q9-VTI8fd_yT3wOEX-rM4Z-K24zUH2iW7JY,4961
|
|
5
|
+
spydlog-1.0.1.dev0.dist-info/WHEEL,sha256=ccSgh8O0K9LcM8I3mMdS9Lo8IIvPXe3ZhduPDCV2uAE,157
|
|
6
|
+
spydlog-1.0.1.dev0.dist-info/RECORD,,
|
|
7
|
+
spydlog-1.0.1.dev0.dist-info/licenses/LICENSE,sha256=0SVjdYk4FjrMpNWqhvlWY-4MrKc2HEVzmK4vB-IyS64,1061
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2025 Romain Augier
|
|
2
|
+
|
|
3
|
+
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:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
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.
|