telegraf-client 0.1.0__cp313-cp313-macosx_11_0_arm64.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.
@@ -0,0 +1,5 @@
1
+ from .telegraf_client import *
2
+
3
+ __doc__ = telegraf_client.__doc__
4
+ if hasattr(telegraf_client, "__all__"):
5
+ __all__ = telegraf_client.__all__
@@ -0,0 +1,58 @@
1
+ Metadata-Version: 2.4
2
+ Name: telegraf-client
3
+ Version: 0.1.0
4
+ Classifier: Development Status :: 4 - Beta
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: License :: OSI Approved :: MIT License
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.12
9
+ Classifier: Programming Language :: Rust
10
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
11
+ Classifier: Topic :: System :: Monitoring
12
+ Requires-Dist: maturin>=1.9.6
13
+ Requires-Dist: requests>=2.32.4
14
+ Requires-Dist: twine>=6.2.0
15
+ Requires-Dist: pytest ; extra == 'dev'
16
+ Provides-Extra: dev
17
+ License-File: LICENSE
18
+ Summary: Python bindings for the telegraf Rust client
19
+ Keywords: telegraf,metrics,monitoring,rust,python
20
+ Author: telegraf-client contributors
21
+ License: MIT
22
+ Requires-Python: >=3.12
23
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
24
+ Project-URL: Homepage, https://github.com/KidziaK/telegraf_client
25
+ Project-URL: Repository, https://github.com/KidziaK/telegraf_client
26
+
27
+ # telegraf-client
28
+
29
+ Python bindings for the Rust telegraf client library.
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ pip install telegraf-client
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ ```python
40
+ import telegraf_client
41
+
42
+ client = telegraf_client.Client("udp://localhost:8089")
43
+ point = telegraf_client.Point(
44
+ measurement="cpu",
45
+ tags={"host": "server-01"},
46
+ fields={"usage": 75.5}
47
+ )
48
+ client.write_point(point)
49
+ client.close()
50
+ ```
51
+
52
+ ## Development
53
+
54
+ ```bash
55
+ uv sync
56
+ uv run pytest
57
+ ```
58
+
@@ -0,0 +1,6 @@
1
+ telegraf_client-0.1.0.dist-info/METADATA,sha256=vomthFAcnrDMEGgOs-VnqfCdiw8KtxAz5uAMH0jEF9s,1448
2
+ telegraf_client-0.1.0.dist-info/WHEEL,sha256=7EyPuU1vQDftlqyV8jHPuI-hSsV6D32-W3PQHFWI9CA,104
3
+ telegraf_client-0.1.0.dist-info/licenses/LICENSE,sha256=lJtOAl0xGXfAhFVpKkluHD1K5wUOIOWLC5j6GTySiI4,1072
4
+ telegraf_client/__init__.py,sha256=6qE1R60YdoE5y3eBdhTtQZJwuBfdmrlpkf_jqcH1XQE,143
5
+ telegraf_client/telegraf_client.cpython-313-darwin.so,sha256=UMwEkBR4I0G26_eNJZpaSywb54gWD-uU6Kbo4eULHew,922576
6
+ telegraf_client-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.9.6)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-macosx_11_0_arm64
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 telegraf-client
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.