rusticai-api 1.2.4__tar.gz → 1.3.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.
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/PKG-INFO +12 -12
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/pyproject.toml +23 -23
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/catalog/catalog_store.py +11 -11
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/README.md +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/__init__.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/addons/__init__.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/addons/boards/__init__.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/addons/boards/board_store.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/addons/boards/models.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/addons/boards/router.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/addons/boards/schema.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/addons/router.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/api_dependency_manager.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/catalog/__init__.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/catalog/models.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/catalog/router.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/guilds/__init__.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/guilds/comms_manager.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/guilds/models.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/guilds/router.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/guilds/schema.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/guilds/service.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/guilds/socket.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/guilds/system_comms_manager.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/logging/__init__.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/logging/config.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/logging/format.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/main.py +0 -0
- {rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/main_debug.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rusticai-api
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: API Server for Rustic AI
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Author: Dragonscale Industries Inc.
|
|
@@ -9,18 +9,18 @@ Requires-Python: >=3.13,<3.14
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.13
|
|
11
11
|
Provides-Extra: test
|
|
12
|
-
Requires-Dist: fastapi (>=0.
|
|
13
|
-
Requires-Dist: griffe (>=1.
|
|
14
|
-
Requires-Dist: opentelemetry-distro (>=0.
|
|
15
|
-
Requires-Dist: psycopg (>=3.
|
|
12
|
+
Requires-Dist: fastapi (>=0.139.2,<0.140.0)
|
|
13
|
+
Requires-Dist: griffe (>=2.1.0,<3.0.0)
|
|
14
|
+
Requires-Dist: opentelemetry-distro (>=0.65b0,<0.66)
|
|
15
|
+
Requires-Dist: psycopg (>=3.3.4,<4.0.0)
|
|
16
16
|
Requires-Dist: ptvsd (>=4.3.2,<5.0.0)
|
|
17
|
-
Requires-Dist: python-json-logger (>=
|
|
18
|
-
Requires-Dist: python-multipart (>=0.0.
|
|
19
|
-
Requires-Dist: rusticai-core (>=1.
|
|
20
|
-
Requires-Dist: rusticai-ray (>=1.
|
|
21
|
-
Requires-Dist: starlette (>=
|
|
22
|
-
Requires-Dist: uvicorn (>=0.
|
|
23
|
-
Requires-Dist: websockets (>=16.
|
|
17
|
+
Requires-Dist: python-json-logger (>=4.1.0,<5.0.0)
|
|
18
|
+
Requires-Dist: python-multipart (>=0.0.32,<0.0.33)
|
|
19
|
+
Requires-Dist: rusticai-core (>=1.3.0,<1.4.0)
|
|
20
|
+
Requires-Dist: rusticai-ray (>=1.3.0,<1.4.0)
|
|
21
|
+
Requires-Dist: starlette (>=1.3.1,<2.0.0)
|
|
22
|
+
Requires-Dist: uvicorn (>=0.51.0,<0.52.0)
|
|
23
|
+
Requires-Dist: websockets (>=16.1.1,<17.0.0)
|
|
24
24
|
Project-URL: Homepage, https://www.rustic.ai/
|
|
25
25
|
Project-URL: Repository, https://github.com/rustic-ai/rustic-ai
|
|
26
26
|
Project-URL: Rustic AI Core, https://pypi.org/project/rusticai-core/
|
|
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "rusticai-api"
|
|
8
|
-
version = "1.
|
|
8
|
+
version = "1.3.0"
|
|
9
9
|
description = "API Server for Rustic AI"
|
|
10
10
|
authors = [{name = "Dragonscale Industries Inc.", email = "dev@dragonscale.ai"}]
|
|
11
11
|
license = "Apache-2.0"
|
|
@@ -19,18 +19,18 @@ urls = { Homepage = "https://www.rustic.ai/", Repository = "https://github.com/r
|
|
|
19
19
|
packages = [{ include = "rustic_ai", from = "src" }]
|
|
20
20
|
|
|
21
21
|
[tool.poetry.dependencies]
|
|
22
|
-
rusticai-core = { version = "1.
|
|
23
|
-
rusticai-ray = { version = "1.
|
|
24
|
-
fastapi = "^0.
|
|
25
|
-
starlette = "^
|
|
26
|
-
uvicorn = "^0.
|
|
22
|
+
rusticai-core = { version = "1.3.0"}
|
|
23
|
+
rusticai-ray = { version = "1.3.0"}
|
|
24
|
+
fastapi = "^0.139.2"
|
|
25
|
+
starlette = "^1.3.1"
|
|
26
|
+
uvicorn = "^0.51.0"
|
|
27
27
|
ptvsd = "^4.3.2"
|
|
28
|
-
python-multipart = "^0.0.
|
|
29
|
-
opentelemetry-distro = "^0.
|
|
30
|
-
websockets = "^16.
|
|
31
|
-
griffe = "^1.
|
|
32
|
-
psycopg = "^3.
|
|
33
|
-
python-json-logger = "^
|
|
28
|
+
python-multipart = "^0.0.32"
|
|
29
|
+
opentelemetry-distro = "^0.65b0"
|
|
30
|
+
websockets = "^16.1.1"
|
|
31
|
+
griffe = "^2.1.0"
|
|
32
|
+
psycopg = "^3.3.4"
|
|
33
|
+
python-json-logger = "^4.1.0"
|
|
34
34
|
|
|
35
35
|
[tool.poetry-monorepo.deps]
|
|
36
36
|
|
|
@@ -39,15 +39,15 @@ python-json-logger = "^3.3.0"
|
|
|
39
39
|
optional = true
|
|
40
40
|
|
|
41
41
|
[tool.poetry.group.dev.dependencies]
|
|
42
|
-
pytest = "^9.
|
|
43
|
-
black = { version = "^26.
|
|
44
|
-
flake8 = "^7.
|
|
45
|
-
tox = "^4.
|
|
46
|
-
isort = "^
|
|
47
|
-
mypy = "^
|
|
48
|
-
pytest-asyncio = "^1.
|
|
42
|
+
pytest = "^9.1.1"
|
|
43
|
+
black = { version = "^26.5.1", extras = ["jupyter"] }
|
|
44
|
+
flake8 = "^7.3.0"
|
|
45
|
+
tox = "^4.57.1"
|
|
46
|
+
isort = "^8.0.1"
|
|
47
|
+
mypy = "^2.3.0"
|
|
48
|
+
pytest-asyncio = "^1.4.0"
|
|
49
49
|
httpx = "^0.28.1"
|
|
50
|
-
rusticai-testing = { version = "1.
|
|
50
|
+
rusticai-testing = { version = "1.3.0"}
|
|
51
51
|
|
|
52
52
|
[tool.poetry.extras]
|
|
53
53
|
test = ["pytest", "pytest-asyncio", "httpx", "rusticai-testing"]
|
|
@@ -81,6 +81,6 @@ explicit_package_bases = true
|
|
|
81
81
|
profile = "black"
|
|
82
82
|
force_sort_within_sections = true # For the sorting order issues
|
|
83
83
|
lines_between_sections = 1 # For the newline issue
|
|
84
|
-
known_third_party = ["pydantic"]
|
|
85
|
-
known_first_party = ["rustic_ai
|
|
86
|
-
known_local_folder = ["rustic_ai.testing"]
|
|
84
|
+
known_third_party = ["pydantic", "fastapi", "starlette", "uvicorn", "ray", "dotenv", "openai", "litellm", "pytest", "playwright", "redis", "serpapi", "vertexai"]
|
|
85
|
+
known_first_party = ["rustic_ai"]
|
|
86
|
+
known_local_folder = ["core", "rustic_ai.testing"]
|
|
@@ -42,7 +42,7 @@ class CatalogStore:
|
|
|
42
42
|
self.engine = engine
|
|
43
43
|
|
|
44
44
|
def create_or_get_tags(self, tag_names: List[str]) -> List[Tag]:
|
|
45
|
-
query = select(Tag).where(Tag.tag.in_(tag_names)) # type:ignore
|
|
45
|
+
query = select(Tag).where(Tag.tag.in_(tag_names)) # type: ignore
|
|
46
46
|
with Session(self.engine) as session:
|
|
47
47
|
existing_tags = session.exec(query).all()
|
|
48
48
|
existing_tag_names = {tag.tag for tag in existing_tags}
|
|
@@ -404,20 +404,20 @@ class CatalogStore:
|
|
|
404
404
|
select(
|
|
405
405
|
GuildModel.id,
|
|
406
406
|
GuildModel.name,
|
|
407
|
-
Blueprint.id.label("blueprint_id"), # type:ignore
|
|
407
|
+
Blueprint.id.label("blueprint_id"), # type: ignore
|
|
408
408
|
Blueprint.icon,
|
|
409
409
|
GuildModel.status,
|
|
410
410
|
)
|
|
411
411
|
.select_from(GuildModel)
|
|
412
|
-
.outerjoin(BlueprintGuild, GuildModel.id == BlueprintGuild.guild_id) # type:ignore
|
|
413
|
-
.outerjoin(Blueprint, Blueprint.id == BlueprintGuild.blueprint_id) # type:ignore
|
|
412
|
+
.outerjoin(BlueprintGuild, GuildModel.id == BlueprintGuild.guild_id) # type: ignore
|
|
413
|
+
.outerjoin(Blueprint, Blueprint.id == BlueprintGuild.blueprint_id) # type: ignore
|
|
414
414
|
.where(GuildModel.organization_id == org_id)
|
|
415
415
|
)
|
|
416
416
|
|
|
417
417
|
if statuses:
|
|
418
418
|
statement = statement.where(GuildModel.status.in_(statuses))
|
|
419
419
|
|
|
420
|
-
guilds: Sequence[BasicGuildInfo] = session.exec(statement).all() # type:ignore
|
|
420
|
+
guilds: Sequence[BasicGuildInfo] = session.exec(statement).all() # type: ignore
|
|
421
421
|
return list(guilds)
|
|
422
422
|
|
|
423
423
|
def add_user_to_guild(self, guild_id: str, user_id: str):
|
|
@@ -446,14 +446,14 @@ class CatalogStore:
|
|
|
446
446
|
select(
|
|
447
447
|
GuildModel.id,
|
|
448
448
|
GuildModel.name,
|
|
449
|
-
Blueprint.id.label("blueprint_id"), # type:ignore
|
|
449
|
+
Blueprint.id.label("blueprint_id"), # type: ignore
|
|
450
450
|
Blueprint.icon,
|
|
451
451
|
GuildModel.status,
|
|
452
452
|
)
|
|
453
453
|
.select_from(
|
|
454
|
-
join(GuildModel, UserGuild, GuildModel.id == UserGuild.guild_id) # type:ignore
|
|
455
|
-
.outerjoin(BlueprintGuild, GuildModel.id == BlueprintGuild.guild_id) # type:ignore
|
|
456
|
-
.outerjoin(Blueprint, Blueprint.id == BlueprintGuild.blueprint_id) # type:ignore
|
|
454
|
+
join(GuildModel, UserGuild, GuildModel.id == UserGuild.guild_id) # type: ignore
|
|
455
|
+
.outerjoin(BlueprintGuild, GuildModel.id == BlueprintGuild.guild_id) # type: ignore
|
|
456
|
+
.outerjoin(Blueprint, Blueprint.id == BlueprintGuild.blueprint_id) # type: ignore
|
|
457
457
|
)
|
|
458
458
|
.where(UserGuild.user_id == user_id)
|
|
459
459
|
)
|
|
@@ -464,7 +464,7 @@ class CatalogStore:
|
|
|
464
464
|
if statuses:
|
|
465
465
|
statement = statement.where(GuildModel.status.in_(statuses))
|
|
466
466
|
|
|
467
|
-
guilds: Sequence[BasicGuildInfo] = session.exec(statement).all() # type:ignore
|
|
467
|
+
guilds: Sequence[BasicGuildInfo] = session.exec(statement).all() # type: ignore
|
|
468
468
|
return list(guilds)
|
|
469
469
|
|
|
470
470
|
def get_users_for_guild(self, guild_id: str) -> List[str]:
|
|
@@ -475,7 +475,7 @@ class CatalogStore:
|
|
|
475
475
|
raise HTTPException(status_code=404, detail=f"Guild {guild_id} not found")
|
|
476
476
|
|
|
477
477
|
statement = select(UserGuild.user_id).where(UserGuild.guild_id == guild_id)
|
|
478
|
-
user_ids: Sequence[str] = session.exec(statement).all() # type:ignore
|
|
478
|
+
user_ids: Sequence[str] = session.exec(statement).all() # type: ignore
|
|
479
479
|
return list(user_ids)
|
|
480
480
|
|
|
481
481
|
def add_agent_icon(self, agent_class: str, icon: str):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/addons/boards/__init__.py
RENAMED
|
File without changes
|
{rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/addons/boards/board_store.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/api_dependency_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rusticai_api-1.2.4 → rusticai_api-1.3.0}/src/rustic_ai/api_server/guilds/system_comms_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|