opspilot-ai 0.1.0__tar.gz

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.
Files changed (45) hide show
  1. opspilot_ai-0.1.0/.env.example +67 -0
  2. opspilot_ai-0.1.0/ARCHITECTURE.md +1034 -0
  3. opspilot_ai-0.1.0/DEPLOYMENT.md +437 -0
  4. opspilot_ai-0.1.0/LICENSE +21 -0
  5. opspilot_ai-0.1.0/MANIFEST.in +30 -0
  6. opspilot_ai-0.1.0/PKG-INFO +408 -0
  7. opspilot_ai-0.1.0/README.md +349 -0
  8. opspilot_ai-0.1.0/opspilot/__init__.py +0 -0
  9. opspilot_ai-0.1.0/opspilot/agents/fixer.py +46 -0
  10. opspilot_ai-0.1.0/opspilot/agents/planner.py +74 -0
  11. opspilot_ai-0.1.0/opspilot/agents/remediation.py +200 -0
  12. opspilot_ai-0.1.0/opspilot/agents/verifier.py +67 -0
  13. opspilot_ai-0.1.0/opspilot/cli.py +360 -0
  14. opspilot_ai-0.1.0/opspilot/config.py +22 -0
  15. opspilot_ai-0.1.0/opspilot/context/__init__.py +26 -0
  16. opspilot_ai-0.1.0/opspilot/context/deployment_history.py +347 -0
  17. opspilot_ai-0.1.0/opspilot/context/deps.py +14 -0
  18. opspilot_ai-0.1.0/opspilot/context/docker.py +17 -0
  19. opspilot_ai-0.1.0/opspilot/context/env.py +17 -0
  20. opspilot_ai-0.1.0/opspilot/context/logs.py +16 -0
  21. opspilot_ai-0.1.0/opspilot/context/production_logs.py +262 -0
  22. opspilot_ai-0.1.0/opspilot/context/project.py +19 -0
  23. opspilot_ai-0.1.0/opspilot/diffs/redis.py +23 -0
  24. opspilot_ai-0.1.0/opspilot/graph/engine.py +33 -0
  25. opspilot_ai-0.1.0/opspilot/graph/nodes.py +41 -0
  26. opspilot_ai-0.1.0/opspilot/memory.py +24 -0
  27. opspilot_ai-0.1.0/opspilot/memory_redis.py +322 -0
  28. opspilot_ai-0.1.0/opspilot/state.py +18 -0
  29. opspilot_ai-0.1.0/opspilot/tools/__init__.py +52 -0
  30. opspilot_ai-0.1.0/opspilot/tools/dep_tools.py +5 -0
  31. opspilot_ai-0.1.0/opspilot/tools/env_tools.py +5 -0
  32. opspilot_ai-0.1.0/opspilot/tools/log_tools.py +11 -0
  33. opspilot_ai-0.1.0/opspilot/tools/pattern_analysis.py +194 -0
  34. opspilot_ai-0.1.0/opspilot/utils/__init__.py +1 -0
  35. opspilot_ai-0.1.0/opspilot/utils/llm.py +23 -0
  36. opspilot_ai-0.1.0/opspilot/utils/llm_providers.py +499 -0
  37. opspilot_ai-0.1.0/opspilot_ai.egg-info/SOURCES.txt +42 -0
  38. opspilot_ai-0.1.0/pyproject.toml +132 -0
  39. opspilot_ai-0.1.0/setup.cfg +4 -0
  40. opspilot_ai-0.1.0/setup.py +71 -0
  41. opspilot_ai-0.1.0/tests/__init__.py +1 -0
  42. opspilot_ai-0.1.0/tests/test_llm_providers.py +186 -0
  43. opspilot_ai-0.1.0/tests/test_pattern_analysis.py +220 -0
  44. opspilot_ai-0.1.0/tests/test_production_logs.py +148 -0
  45. opspilot_ai-0.1.0/tests/test_remediation.py +186 -0
@@ -0,0 +1,67 @@
1
+ # OpsPilot Environment Configuration
2
+ # Copy this file to .env and fill in your API keys
3
+
4
+ # ============================================
5
+ # LLM Providers (Choose at least ONE)
6
+ # ============================================
7
+
8
+ # Option 1: Google Gemini (FREE tier - 15 req/min)
9
+ # Get key: https://aistudio.google.com/
10
+ # GOOGLE_API_KEY=your-google-api-key-here
11
+
12
+ # Option 2: OpenRouter (FREE models available)
13
+ # Get key: https://openrouter.ai/
14
+ # OPENROUTER_API_KEY=your-openrouter-api-key-here
15
+
16
+ # Option 3: HuggingFace (FREE tier - 1000 req/day)
17
+ # Get token: https://huggingface.co/settings/tokens
18
+ # HUGGINGFACE_API_KEY=your-huggingface-token-here
19
+
20
+ # Option 4: Ollama (Local - No API key needed)
21
+ # Install: curl -fsSL https://ollama.ai/install.sh | sh
22
+ # Pull model: ollama pull llama3
23
+ # No configuration needed!
24
+
25
+ # ============================================
26
+ # AWS Credentials (for S3/CloudWatch logs)
27
+ # ============================================
28
+
29
+ # AWS_ACCESS_KEY_ID=your-aws-access-key
30
+ # AWS_SECRET_ACCESS_KEY=your-aws-secret-key
31
+ # AWS_DEFAULT_REGION=us-east-1
32
+
33
+ # ============================================
34
+ # OpsPilot Settings
35
+ # ============================================
36
+
37
+ # Prefer local LLM (Ollama) over cloud providers
38
+ # OPSPILOT_PREFER_LOCAL=true
39
+
40
+ # LLM inference timeout (seconds)
41
+ # OPSPILOT_LLM_TIMEOUT=60
42
+
43
+ # ============================================
44
+ # Redis Configuration (for incident memory)
45
+ # ============================================
46
+
47
+ # Redis host (default: localhost)
48
+ # REDIS_HOST=localhost
49
+
50
+ # Redis port (default: 6379)
51
+ # REDIS_PORT=6379
52
+
53
+ # Redis password (if required)
54
+ # REDIS_PASSWORD=your-redis-password
55
+
56
+ # Redis database number (default: 0)
57
+ # REDIS_DB=0
58
+
59
+ # How many days to keep incident history (default: 30)
60
+ # Auto-expires old incidents after this period
61
+ # OPSPILOT_REDIS_TTL_DAYS=30
62
+
63
+ # ============================================
64
+ # Development/Testing
65
+ # ============================================
66
+
67
+ # DEBUG=False