Skip to content

Commit c397739

Browse files
Merge branch 'exospherehost:main' into main
2 parents d32da27 + 808a6a6 commit c397739

12 files changed

Lines changed: 162 additions & 87 deletions

File tree

api-server/uv.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

landing-page/package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

landing-page/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"@tailwindcss/typography": "^0.5.16",
1717
"class-variance-authority": "^0.7.1",
1818
"clsx": "^2.1.1",
19-
"framer-motion": "^12.23.11",
19+
"framer-motion": "^12.23.12",
2020
"gray-matter": "^4.0.3",
2121
"lucide-react": "^0.534.0",
22-
"motion": "^12.23.11",
22+
"motion": "^12.23.12",
2323
"next": "15.4.5",
2424
"next-themes": "^0.4.6",
2525
"react": "^19.0.0",

python-sdk/README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
11
# ExosphereHost Python SDK
2-
This SDK is official python SDK for ExosphereHost and interacting with exospherehost.
2+
This is the official Python SDK for ExosphereHost and for interacting with ExosphereHost.
3+
4+
## Node Creation
5+
You can simply connect to exosphere state manager and start creating your nodes, as shown in sample below:
6+
7+
```python
8+
from exospherehost import Runtime, BaseNode
9+
from typing import Any
10+
import os
11+
12+
class SampleNode(BaseNode):
13+
async def execute(self, inputs: dict[str, Any]) -> dict[str, Any]:
14+
print(inputs)
15+
return {"message": "success"}
16+
17+
runtime = Runtime("SampleNamespace", os.getenv("EXOSPHERE_STATE_MANAGER_URI", "http://localhost:8000"), os.getenv("EXOSPHERE_API_KEY", ""))
18+
19+
runtime.connect([SampleNode()])
20+
runtime.start()
21+
```
22+
23+
## Support
24+
For first-party support and questions, do not hesitate to reach out to us at <nivedit@exosphere.host>.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from ._version import VERSION
1+
from ._version import version as __version__
2+
from .runtime import Runtime
3+
from .node.BaseNode import BaseNode
24

3-
__version__ = VERSION
5+
VERSION = __version__
46

5-
def test():
6-
print(f"ExosphereHost PySDK v{VERSION}")
7+
__all__ = ["Runtime", "BaseNode", "VERSION"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "0.0.3b"
1+
version = "0.0.4b"

python-sdk/exospherehost/node/BaseNode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from abc import ABC, abstractmethod
2-
from typing import Optional
2+
from typing import Optional, Any
33

44

55
class BaseNode(ABC):
@@ -8,7 +8,7 @@ def __init__(self, unique_name: Optional[str] = None):
88
self.unique_name: Optional[str] = unique_name
99

1010
@abstractmethod
11-
async def execute(self):
11+
async def execute(self, inputs: dict[str, Any]) -> dict[str, Any]:
1212
pass
1313

1414
def get_unique_name(self) -> str:
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
from .BaseNode import BaseNode

0 commit comments

Comments
 (0)