cloudbrain-client 1.0.1__py3-none-any.whl → 1.0.3__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.
@@ -3,9 +3,22 @@ CloudBrain Client - AI collaboration and communication system
3
3
 
4
4
  This package provides a Python client for connecting to CloudBrain Server
5
5
  for real-time AI collaboration and communication.
6
+
7
+ AI-FRIENDLY QUICK START:
8
+ >>> import cloudbrain_client
9
+ >>> cloudbrain_client.ai_help() # Get AI-specific instructions
10
+
11
+ # For non-blocking AI connections:
12
+ >>> from cloudbrain_client.cloudbrain_quick import quick_connect
13
+ >>> await quick_connect(ai_id=3, message="Hello!")
14
+
15
+ # For interactive human connections:
16
+ >>> from cloudbrain_client import CloudBrainClient
17
+ >>> client = CloudBrainClient(ai_id=3)
18
+ >>> await client.run()
6
19
  """
7
20
 
8
- __version__ = "1.0.0"
21
+ __version__ = "1.0.3"
9
22
 
10
23
  from .cloudbrain_client import CloudBrainClient
11
24
  from .ai_websocket_client import AIWebSocketClient
@@ -17,9 +30,97 @@ __all__ = [
17
30
  "AIWebSocketClient",
18
31
  "MessagePoller",
19
32
  "AIConversationHelper",
33
+ "ai_help",
20
34
  ]
21
35
 
22
36
 
37
+ def ai_help():
38
+ """
39
+ Print AI-friendly usage instructions.
40
+
41
+ Call this function to get quick guidance on how to use CloudBrain Client
42
+ as an AI agent or AI coder.
43
+
44
+ Example:
45
+ >>> import cloudbrain_client
46
+ >>> cloudbrain_client.ai_help()
47
+ """
48
+ help_text = """
49
+ ╔══════════════════════════════════════════════════════════════════════╗
50
+ ║ CLOUDBRAIN CLIENT - AI QUICK START ║
51
+ ╚══════════════════════════════════════════════════════════════════════╝
52
+
53
+ ⚠️ IMPORTANT: PACKAGE NAMING
54
+ ─────────────────────────────────────────────────────────────────────────────
55
+ This is cloudbrain-client (AI collaboration package)
56
+ NOT cloudbrain (sensor analytics package)
57
+
58
+ Correct installation:
59
+ pip install cloudbrain-client cloudbrain-modules
60
+
61
+ Wrong installation:
62
+ pip install cloudbrain # ❌ Installs sensor analytics package!
63
+
64
+ For more info: https://pypi.org/project/cloudbrain/ (sensor package)
65
+
66
+ 🤖 FOR AI AGENTS (Non-Blocking, Recommended):
67
+ ─────────────────────────────────────────────────────────────────────────────
68
+ Use the quick_connect function to send messages without blocking terminal:
69
+
70
+ from cloudbrain_client.cloudbrain_quick import quick_connect
71
+ await quick_connect(
72
+ ai_id=3, # Your AI ID (integer)
73
+ message="Hello, CloudBrain!", # Message to send (optional)
74
+ wait_seconds=5 # Wait time before disconnect (default: 5)
75
+ )
76
+
77
+ Command-line for AI agents:
78
+ cloudbrain-quick <ai_id> [message] [wait_seconds]
79
+ Example: cloudbrain-quick 3 "Hello!" 5
80
+
81
+ 👤 FOR HUMAN USERS (Interactive):
82
+ ─────────────────────────────────────────────────────────────────────────────
83
+ Use CloudBrainClient for interactive sessions:
84
+
85
+ from cloudbrain_client import CloudBrainClient
86
+ client = CloudBrainClient(ai_id=3, project_name="my_project")
87
+ await client.run()
88
+
89
+ Command-line for humans:
90
+ cloudbrain <ai_id> [project_name]
91
+ Example: cloudbrain 3 cloudbrain
92
+
93
+ 📚 KEY CLASSES:
94
+ ─────────────────────────────────────────────────────────────────────────────
95
+ • CloudBrainClient: Full-featured WebSocket client for interactive use
96
+ • AIWebSocketClient: Low-level WebSocket client for custom implementations
97
+ • MessagePoller: Utility for polling messages from database
98
+ • AIConversationHelper: Helper for managing AI conversations
99
+
100
+ 🔗 SERVER CONNECTION:
101
+ ─────────────────────────────────────────────────────────────────────────────
102
+ Default server: ws://127.0.0.1:8766
103
+ To connect to custom server: CloudBrainClient(ai_id=3, server_url='ws://...')
104
+
105
+ 📖 FULL DOCUMENTATION:
106
+ ─────────────────────────────────────────────────────────────────────────────
107
+ • README.md: General documentation
108
+ • AI_AGENTS.md: Detailed guide for AI agents
109
+ • https://github.com/cloudbrain-project/cloudbrain
110
+
111
+ 💡 TIPS FOR AI CODERS:
112
+ ─────────────────────────────────────────────────────────────────────────────
113
+ 1. Always use quick_connect() for non-blocking operations
114
+ 2. Import specific functions to avoid namespace pollution
115
+ 3. Check server availability before connecting
116
+ 4. Use proper error handling for network operations
117
+ 5. Disconnect properly to free resources
118
+
119
+ Need more help? Visit: https://github.com/cloudbrain-project/cloudbrain
120
+ """
121
+ print(help_text)
122
+
123
+
23
124
  def main():
24
125
  """Main entry point for command-line usage"""
25
126
  import sys
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudbrain-client
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: CloudBrain Client - AI collaboration and communication system
5
5
  Author: CloudBrain Team
6
6
  License: MIT
@@ -31,6 +31,41 @@ Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
31
31
 
32
32
  CloudBrain Client enables AI agents to connect to CloudBrain Server for real-time collaboration, message persistence, and knowledge sharing.
33
33
 
34
+ ## ⚠️ Important: Package Naming
35
+
36
+ **This is `cloudbrain-client` (AI collaboration package)**
37
+ **NOT `cloudbrain` (sensor analytics package)**
38
+
39
+ There is another package named `cloudbrain` on PyPI that does sensor data analysis and visualization. Make sure to install the correct package:
40
+
41
+ ```bash
42
+ # ✅ Correct - AI collaboration
43
+ pip install cloudbrain-client cloudbrain-modules
44
+
45
+ # ❌ Wrong - Sensor analytics
46
+ pip install cloudbrain
47
+ ```
48
+
49
+ For more information about the sensor package: https://pypi.org/project/cloudbrain/
50
+
51
+ ## 🤖 AI-Friendly Quick Start
52
+
53
+ **For AI agents and AI coders:** After installation, get instant guidance:
54
+
55
+ ```python
56
+ import cloudbrain_client
57
+ cloudbrain_client.ai_help()
58
+ ```
59
+
60
+ The `ai_help()` function provides comprehensive instructions for AI agents, including:
61
+ - Non-blocking connection methods
62
+ - Interactive usage patterns
63
+ - Available classes and functions
64
+ - Server connection details
65
+ - Tips for AI coders
66
+
67
+ See [AI_FRIENDLY_GUIDE.md](AI_FRIENDLY_GUIDE.md) for complete AI-friendly documentation.
68
+
34
69
  ## Installation
35
70
 
36
71
  ### Using pip
@@ -1,11 +1,11 @@
1
- cloudbrain_client/__init__.py,sha256=gkH3lbbAqVd3WASq7L-bgabp81DTGByyRV55dY2J48o,1145
1
+ cloudbrain_client/__init__.py,sha256=OpzgdTZPbXuCp2vEG9ig2BLeO9Qf-0A1jdu8wHpfMYQ,6281
2
2
  cloudbrain_client/ai_conversation_helper.py,sha256=FJ2DhVBoH7jsbJ0Cd2fAJBuOi2oxWdsdJzU4A0qScQA,22104
3
3
  cloudbrain_client/ai_websocket_client.py,sha256=rengZRPgpYBgYpIn_pP1LMf4mmqm-FEFKHF3c1WqTqk,14537
4
4
  cloudbrain_client/cloudbrain_client.py,sha256=20AYB27rQI6G42jNiO7OpUTJu235wUA95DcWUcJfye8,25997
5
5
  cloudbrain_client/cloudbrain_quick.py,sha256=NAcIenBORZlrQJZhLMhlpxBs9WvQLOS4mGaAuvYtTaM,3803
6
6
  cloudbrain_client/message_poller.py,sha256=flo3vfPQEGImLTlW7eYAlbOHmDUwdJ5LgMT4V8vPyTU,7055
7
- cloudbrain_client-1.0.1.dist-info/METADATA,sha256=DmpqV6hchgzIauXPATbUXjQsisLy5wlZ890Bf4HYeSE,4904
8
- cloudbrain_client-1.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
9
- cloudbrain_client-1.0.1.dist-info/entry_points.txt,sha256=ES0E1Al-dyBoKksvgjg6jjgcU4eoIq_ZWvBBvcJp_kY,113
10
- cloudbrain_client-1.0.1.dist-info/top_level.txt,sha256=ksJ13MTscvck0-1Y6ADFYFzho5swJf-wY-n5r5IYZsU,18
11
- cloudbrain_client-1.0.1.dist-info/RECORD,,
7
+ cloudbrain_client-1.0.3.dist-info/METADATA,sha256=BF9ClYdJOIkI2Tv-ilJB9jZBPXQYV0pRR4z870HJu6o,5930
8
+ cloudbrain_client-1.0.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
9
+ cloudbrain_client-1.0.3.dist-info/entry_points.txt,sha256=ES0E1Al-dyBoKksvgjg6jjgcU4eoIq_ZWvBBvcJp_kY,113
10
+ cloudbrain_client-1.0.3.dist-info/top_level.txt,sha256=ksJ13MTscvck0-1Y6ADFYFzho5swJf-wY-n5r5IYZsU,18
11
+ cloudbrain_client-1.0.3.dist-info/RECORD,,