Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ TURNKEY_API_PUBLIC_KEY=your_turnkey_public_key_here
TURNKEY_API_PRIVATE_KEY=your_turnkey_private_key_hex_here
TURNKEY_ORG_ID=your_turnkey_organization_id_here

# NeoFS
NEOFS_BASE_URL=https://rest.fs.neo.org/
NEOFS_OWNER_ADDRESS=YourBase58NeoAddress
NEOFS_PRIVATE_KEY_WIF=YourNeoPrivateKeyWIF
# Optional overrides used in notebooks or tests
NEOFS_UPLOAD_TIMEOUT=180
NEOFS_TEST_CONTAINER_ID=

# ======= Logging Configuration =======
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ dependencies = [ # Complete dependencies from requirements.txt for out-of-the-bo
"protobuf>=3.19.5",
"google-api-core>=2.24.2",
"grpcio>=1.71.0",
"neo-mamba>=3.0.1",
"web3==7.11.0",
"nest_asyncio>=1.6.0",
"python-telegram-bot>=22.0",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ multidict>=6.1.0
# via
# aiohttp
# yarl
neo-mamba>=3.0.1
openai>=1.70.0
orjson>=3.10.15
# via langsmith
Expand Down
53 changes: 53 additions & 0 deletions spoon_ai/neofs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
"""NeoFS integration for Spoon Core."""

from .client import NeoFSAPIException, NeoFSClient, NeoFSException
from .models import (
Attribute,
Balance,
Bearer,
BinaryBearer,
ContainerInfo,
ContainerList,
ContainerPostInfo,
Eacl,
NetworkInfo,
ObjectList,
ObjectListV2,
SearchFilter,
SearchRequest,
SuccessResponse,
TokenResponse,
UploadAddress,
)
from .utils import (
SignatureComponents,
generate_simple_signature_params,
sign_bearer_token,
sign_with_salt,
)

__all__ = [
"NeoFSClient",
"NeoFSException",
"NeoFSAPIException",
"Attribute",
"Balance",
"Bearer",
"BinaryBearer",
"ContainerInfo",
"ContainerList",
"ContainerPostInfo",
"Eacl",
"NetworkInfo",
"ObjectList",
"ObjectListV2",
"SearchFilter",
"SearchRequest",
"SuccessResponse",
"TokenResponse",
"UploadAddress",
"SignatureComponents",
"sign_bearer_token",
"generate_simple_signature_params",
"sign_with_salt",
]
Loading