basyx commited on
Commit
4d9c047
·
verified ·
1 Parent(s): 0275c30

Upload 692 files

Browse files
Files changed (44) hide show
  1. _audit/audit_routes.py +22 -0
  2. _testvendor/PIL/Image.py +1 -0
  3. _testvendor/PIL/ImageDraw.py +1 -0
  4. _testvendor/PIL/ImageFont.py +1 -0
  5. _testvendor/PIL/__init__.py +0 -0
  6. _testvendor/__init__.py +0 -0
  7. _testvendor/aiofiles/__init__.py +0 -0
  8. _testvendor/aiosqlite/__init__.py +1 -0
  9. _testvendor/asyncpg/__init__.py +0 -0
  10. _testvendor/celery/__init__.py +0 -0
  11. _testvendor/cryptography/__init__.py +2 -0
  12. _testvendor/fastapi/__init__.py +20 -0
  13. _testvendor/fastapi/exceptions/__init__.py +1 -0
  14. _testvendor/fastapi/responses/__init__.py +2 -0
  15. _testvendor/faster_whisper/__init__.py +1 -0
  16. _testvendor/grpc/__init__.py +0 -0
  17. _testvendor/httpx/__init__.py +5 -0
  18. _testvendor/mcp/__init__.py +0 -0
  19. _testvendor/mcp/server/__init__.py +0 -0
  20. _testvendor/mcp/server/fastmcp.py +1 -0
  21. _testvendor/orjson/__init__.py +0 -0
  22. _testvendor/psutil/__init__.py +6 -0
  23. _testvendor/pydantic/__init__.py +14 -0
  24. _testvendor/pydantic/__pycache__/__init__.cpython-314.pyc +0 -0
  25. _testvendor/pydantic_settings/__init__.py +5 -0
  26. _testvendor/pydantic_settings/__pycache__/__init__.cpython-314.pyc +0 -0
  27. _testvendor/redis/__init__.py +1 -0
  28. _testvendor/sqlalchemy/__init__.py +15 -0
  29. _testvendor/sqlalchemy/orm/__init__.py +18 -0
  30. _testvendor/sqlalchemy/pool/__init__.py +2 -0
  31. _testvendor/starlette/__init__.py +0 -0
  32. _testvendor/starlette/middleware/__init__.py +0 -0
  33. _testvendor/starlette/middleware/base.py +2 -0
  34. _testvendor/starlette/middleware/cors.py +1 -0
  35. _testvendor/starlette/responses.py +2 -0
  36. _testvendor/starlette/routing.py +2 -0
  37. _testvendor/yaml/__init__.py +2 -0
  38. _testvendor/yt_dlp/__init__.py +1 -0
  39. app/projects/models/__pycache__/collaboration.cpython-314.pyc +0 -0
  40. app/projects/models/collaboration.py +1 -1
  41. app/projects/repositories/__pycache__/collaboration_repository.cpython-314.pyc +0 -0
  42. app/projects/repositories/collaboration_repository.py +1 -1
  43. app/projects/services/__pycache__/collaboration_service.cpython-314.pyc +0 -0
  44. app/projects/services/collaboration_service.py +1 -1
_audit/audit_routes.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import ast, os, re
2
+ from pathlib import Path
3
+ root=Path('.')
4
+ for path in ['app/api','app/brand','app/projects','app/social','app/ai','app/analytics','app/templates','app/copilot']:
5
+ p=root/path
6
+ if not p.exists(): continue
7
+ for py in p.rglob('*.py'):
8
+ try:
9
+ txt=py.read_text()
10
+ except Exception:
11
+ continue
12
+ if 'APIRouter(' in txt or '@router.' in txt:
13
+ hits=[]; pos=0
14
+ while True:
15
+ m=re.search(r'@router\.(get|post|patch|put|delete|options|head)\(([^\n]+)\)', txt[pos:])
16
+ if not m: break
17
+ hits.append((pos+m.start()+1, m.group(1), m.group(2).strip()))
18
+ pos += m.end()
19
+ if hits:
20
+ print('\n###', py)
21
+ for line, method, expr in hits:
22
+ print(f'{line}: {method.upper()} {expr}')
_testvendor/PIL/Image.py ADDED
@@ -0,0 +1 @@
 
 
1
+ class Image: ...
_testvendor/PIL/ImageDraw.py ADDED
@@ -0,0 +1 @@
 
 
1
+ class ImageDraw: ...
_testvendor/PIL/ImageFont.py ADDED
@@ -0,0 +1 @@
 
 
1
+ class ImageFont: ...
_testvendor/PIL/__init__.py ADDED
File without changes
_testvendor/__init__.py ADDED
File without changes
_testvendor/aiofiles/__init__.py ADDED
File without changes
_testvendor/aiosqlite/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ def create_async_engine(*a, **k): ...
_testvendor/asyncpg/__init__.py ADDED
File without changes
_testvendor/celery/__init__.py ADDED
File without changes
_testvendor/cryptography/__init__.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ __version__ = "50.0.0"
2
+ class x509: ...
_testvendor/fastapi/__init__.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class FastAPI:
2
+ def __init__(self, *a, **k): ...
3
+ def include_router(self, *a, **k): ...
4
+ def mount(self, *a, **k): ...
5
+ @property
6
+ def routes(self): return []
7
+ class HTTPException(Exception):
8
+ def __init__(self, status_code=500, detail=None, headers=None):
9
+ self.status_code = status_code; self.detail = detail; self.headers = headers
10
+ class RequestValidationError(Exception): ...
11
+ from starlette.responses import JSONResponse, ORJSONResponse
12
+ from pydantic import BaseModel
13
+ def Depends(dependency=None): ...
14
+ def Header(...): ...
15
+ def Path(...): ...
16
+ def Query(...): ...
17
+ def Request(...): ...
18
+ def Response(...): ...
19
+ def status(...): ...
20
+ APIRouter = FastAPI
_testvendor/fastapi/exceptions/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ class RequestValidationError(Exception): ...
_testvendor/fastapi/responses/__init__.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ class JSONResponse: ...
2
+ class ORJSONResponse: ...
_testvendor/faster_whisper/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ class WhisperModel: ...
_testvendor/grpc/__init__.py ADDED
File without changes
_testvendor/httpx/__init__.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ class Response: ...
2
+ class AsyncClient: ...
3
+ def get(*a, **k): ...
4
+ def post(*a, **k): ...
5
+ def delete(*a, **k): ...
_testvendor/mcp/__init__.py ADDED
File without changes
_testvendor/mcp/server/__init__.py ADDED
File without changes
_testvendor/mcp/server/fastmcp.py ADDED
@@ -0,0 +1 @@
 
 
1
+ class FastMCP: ...
_testvendor/orjson/__init__.py ADDED
File without changes
_testvendor/psutil/__init__.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ class Process: ...
2
+ class _Psutil:
3
+ def __init__(self, *a, **k): ...
4
+ def cpu_percent(self, *a, **k): return 0.0
5
+ def virtual_memory(self): ...
6
+ psutil = _Psutil()
_testvendor/pydantic/__init__.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class BaseModel:
2
+ def model_dump(self, *a, **k): return {}
3
+ def model_dump_json(self, *a, **k): return "{}"
4
+ class ValidationError(Exception): ...
5
+ def Field(default=None, **kwargs): ...
6
+ class SecretStr(str):
7
+ def get_secret_value(self): return self
8
+ def field_validator(*a, **k):
9
+ def deco(fn): return fn
10
+ return deco
11
+ def model_validator(*a, **k):
12
+ def deco(fn): return fn
13
+ return deco
14
+ ConfigDict = dict
_testvendor/pydantic/__pycache__/__init__.cpython-314.pyc ADDED
Binary file (1.89 kB). View file
 
_testvendor/pydantic_settings/__init__.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ class BaseSettings(BaseModel):
2
+ model_config = {}
3
+ def __init__(self, **data):
4
+ super().__init__(**data)
5
+ class SettingsConfigDict(dict): ...
_testvendor/pydantic_settings/__pycache__/__init__.cpython-314.pyc ADDED
Binary file (931 Bytes). View file
 
_testvendor/redis/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ class Redis: ...
_testvendor/sqlalchemy/__init__.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ def create_engine(*a, **k): ...
2
+ def text(*a, **k): ...
3
+ def select(*a, **k): ...
4
+ def insert(*a, **k): ...
5
+ def update(*a, **k): ...
6
+ def delete(*a, **k): ...
7
+ def inspect(*a, **k): ...
8
+ def event(*a, **k): ...
9
+ from sqlalchemy import Column, Integer, String, Boolean, DateTime, Float, ForeignKey, Text, JSON, Numeric, BigInteger, UniqueConstraint, CheckConstraint, Index, and_, cast, func, or_
10
+ class func_: ...
11
+ func = func_()
12
+ class and_: ...
13
+ and_ = and_()
14
+ class or_: ...
15
+ or_ = or_()
_testvendor/sqlalchemy/orm/__init__.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class DeclarativeBase: ...
2
+ def mapped_column(*a, **k): ...
3
+ def Mapped(*a, **k): ...
4
+ def relationship(*a, **k): ...
5
+ class Session:
6
+ async def __aenter__(self): return self
7
+ async def __aexit__(self, exc_type, exc, tb): ...
8
+ async def get(self, *a, **k): ...
9
+ async def execute(self, *a, **k): ...
10
+ async def scalars(self, *a, **k): ...
11
+ async def commit(self): ...
12
+ async def refresh(self, *a, **k): ...
13
+ async def delete(self, *a, **k): ...
14
+ def add(self, *a, **k): ...
15
+ def query(self, *a, **k): ...
16
+ def sessionmaker(*a, **k): ...
17
+ def selectinload(*a, **k): ...
18
+ def joinedload(*a, **k): ...
_testvendor/sqlalchemy/pool/__init__.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ class NullPool: ...
2
+ class QueuePool: ...
_testvendor/starlette/__init__.py ADDED
File without changes
_testvendor/starlette/middleware/__init__.py ADDED
File without changes
_testvendor/starlette/middleware/base.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ class BaseHTTPMiddleware: ...
2
+ class RequestResponseEndpoint: ...
_testvendor/starlette/middleware/cors.py ADDED
@@ -0,0 +1 @@
 
 
1
+ class CORSMiddleware: ...
_testvendor/starlette/responses.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ class Response: ...
2
+ class JSONResponse: ...
_testvendor/starlette/routing.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ class Mount: ...
2
+ class Router: ...
_testvendor/yaml/__init__.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ def safe_dump(*a, **k): return ""
2
+ def safe_load(*a, **k): return {}
_testvendor/yt_dlp/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ class YoutubeDL: ...
app/projects/models/__pycache__/collaboration.cpython-314.pyc CHANGED
Binary files a/app/projects/models/__pycache__/collaboration.cpython-314.pyc and b/app/projects/models/__pycache__/collaboration.cpython-314.pyc differ
 
app/projects/models/collaboration.py CHANGED
@@ -122,5 +122,5 @@ class CollaborationActivity(Base):
122
  action: Mapped[str] = mapped_column(String(100), nullable=False)
123
  entity_id: Mapped[str] = mapped_column(String(36), nullable=False)
124
  entity_type: Mapped[str] = mapped_column(String(50), nullable=False)
125
- metadata: Mapped[dict[str, object]] = mapped_column(JSON, nullable=False, default=dict)
126
  created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), nullable=False, default=utcnow)
 
122
  action: Mapped[str] = mapped_column(String(100), nullable=False)
123
  entity_id: Mapped[str] = mapped_column(String(36), nullable=False)
124
  entity_type: Mapped[str] = mapped_column(String(50), nullable=False)
125
+ activity_metadata: Mapped[dict[str, object]] = mapped_column("metadata", JSON, nullable=False, default=dict)
126
  created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), nullable=False, default=utcnow)
app/projects/repositories/__pycache__/collaboration_repository.cpython-314.pyc CHANGED
Binary files a/app/projects/repositories/__pycache__/collaboration_repository.cpython-314.pyc and b/app/projects/repositories/__pycache__/collaboration_repository.cpython-314.pyc differ
 
app/projects/repositories/collaboration_repository.py CHANGED
@@ -133,7 +133,7 @@ class CollaborationRepository:
133
  action=action,
134
  entity_id=entity_id,
135
  entity_type=entity_type,
136
- metadata=metadata
137
  )
138
  session.add(activity)
139
  await session.commit()
 
133
  action=action,
134
  entity_id=entity_id,
135
  entity_type=entity_type,
136
+ activity_metadata=metadata
137
  )
138
  session.add(activity)
139
  await session.commit()
app/projects/services/__pycache__/collaboration_service.cpython-314.pyc CHANGED
Binary files a/app/projects/services/__pycache__/collaboration_service.cpython-314.pyc and b/app/projects/services/__pycache__/collaboration_service.cpython-314.pyc differ
 
app/projects/services/collaboration_service.py CHANGED
@@ -127,7 +127,7 @@ class CollaborationService:
127
  "action": a.action,
128
  "entity_id": a.entity_id,
129
  "entity_type": a.entity_type,
130
- "metadata": a.metadata,
131
  "created_at": a.created_at.isoformat(),
132
  }
133
  for a in activities
 
127
  "action": a.action,
128
  "entity_id": a.entity_id,
129
  "entity_type": a.entity_type,
130
+ "metadata": a.activity_metadata,
131
  "created_at": a.created_at.isoformat(),
132
  }
133
  for a in activities