toolops 0.1.0__py3-none-any.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.
- toolops/__init__.py +65 -0
- toolops/cache.py +1602 -0
- toolops/cli.py +325 -0
- toolops/coalescer.py +61 -0
- toolops/decorators.py +502 -0
- toolops/integrations/__init__.py +28 -0
- toolops/integrations/crewai.py +49 -0
- toolops/integrations/langchain.py +82 -0
- toolops/integrations/langgraph.py +55 -0
- toolops/integrations/llamaindex.py +65 -0
- toolops/integrations/mcp.py +91 -0
- toolops/logger.py +113 -0
- toolops/observability.py +494 -0
- toolops/resilience.py +167 -0
- toolops-0.1.0.dist-info/METADATA +432 -0
- toolops-0.1.0.dist-info/RECORD +21 -0
- toolops-0.1.0.dist-info/WHEEL +5 -0
- toolops-0.1.0.dist-info/entry_points.txt +2 -0
- toolops-0.1.0.dist-info/licenses/LICENSE +201 -0
- toolops-0.1.0.dist-info/licenses/NOTICE +7 -0
- toolops-0.1.0.dist-info/top_level.txt +1 -0
toolops/__init__.py
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Name: __init__.py
|
|
3
|
+
|
|
4
|
+
Description: ToolOps SDK core package initialization.
|
|
5
|
+
|
|
6
|
+
Last_updated: 2026-05-03
|
|
7
|
+
|
|
8
|
+
Updated_by: Hedi Manai
|
|
9
|
+
Github: https://github.com/hedimanai-pro
|
|
10
|
+
LinkedIn: https://www.linkedin.com/in/hedimanai
|
|
11
|
+
|
|
12
|
+
Note: This project is open source for knowledge sharing
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
16
|
+
|
|
17
|
+
from toolops.cache import (
|
|
18
|
+
CacheBackend,
|
|
19
|
+
CacheEntry,
|
|
20
|
+
CacheManager,
|
|
21
|
+
FileCache,
|
|
22
|
+
MemoryCache,
|
|
23
|
+
OpenAIEmbedder,
|
|
24
|
+
PostgresCache,
|
|
25
|
+
SemanticCache,
|
|
26
|
+
SentenceTransformerEmbedder,
|
|
27
|
+
cache_manager,
|
|
28
|
+
cosine_similarity,
|
|
29
|
+
)
|
|
30
|
+
from toolops.logger import ToolOpsLogger, logger
|
|
31
|
+
from toolops.observability import configure_opentelemetry, prometheus_metrics
|
|
32
|
+
from toolops.decorators import build_cache_key, readonly, sideeffect, stateful, tool
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
try:
|
|
36
|
+
__version__ = version("toolops")
|
|
37
|
+
except PackageNotFoundError:
|
|
38
|
+
__version__ = "0.0.0-dev"
|
|
39
|
+
|
|
40
|
+
__author__ = "Hedi Manai"
|
|
41
|
+
__license__ = "Apache-2.0"
|
|
42
|
+
|
|
43
|
+
__all__ = [
|
|
44
|
+
"tool",
|
|
45
|
+
"build_cache_key",
|
|
46
|
+
"readonly",
|
|
47
|
+
"sideeffect",
|
|
48
|
+
"stateful",
|
|
49
|
+
"CacheBackend",
|
|
50
|
+
"CacheEntry",
|
|
51
|
+
"MemoryCache",
|
|
52
|
+
"PostgresCache",
|
|
53
|
+
"FileCache",
|
|
54
|
+
"SemanticCache",
|
|
55
|
+
"SentenceTransformerEmbedder",
|
|
56
|
+
"OpenAIEmbedder",
|
|
57
|
+
"CacheManager",
|
|
58
|
+
"cache_manager",
|
|
59
|
+
"cosine_similarity",
|
|
60
|
+
"configure_opentelemetry",
|
|
61
|
+
"prometheus_metrics",
|
|
62
|
+
"ToolOpsLogger",
|
|
63
|
+
"logger",
|
|
64
|
+
"__version__",
|
|
65
|
+
]
|