-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
293 lines (267 loc) · 7.84 KB
/
pyproject.toml
File metadata and controls
293 lines (267 loc) · 7.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ipfs_kit_py"
version = "0.3.0"
authors = [
{ name="Benjamin Barber", email="starworks5@gmail.com" },
]
description = "Python toolkit for IPFS with high-level API, cluster management, tiered storage, and AI/ML integration"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "AGPL-3.0-or-later"}
keywords = ["ipfs", "distributed", "storage", "content-addressed", "cluster", "arrow", "fsspec", "ai", "ml"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Distributed Computing",
"Topic :: Database",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
# Architecture support
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
]
dependencies = [
"requests>=2.28.0",
"httpx>=0.24.0", # For async HTTP requests
"aiohttp>=3.8.4", # For async HTTP operations
"aiofiles>=23.1.0", # For async file operations
"watchdog>=3.0.0", # For file system monitoring
"psutil>=5.9.0",
"pyyaml>=6.0",
"networkx>=3.0",
"jsonpatch>=1.33",
"base58>=2.1.1",
"multiaddr>=0.0.9", # For libp2p multiaddress support
"multiformats>=0.2.0", # For CIDs/multicodecs (required by libp2p)
"python-magic>=0.4.27", # For file type detection
"anyio>=3.7.0", # For async operations with backend flexibility
"trio>=0.22.0", # Optional backend for anyio
"cryptography>=38.0.0", # Required for libp2p
"cffi>=1.16.0",
"protobuf>=5.26.0,<7.0.0", # libp2p main generated *_pb2 compatibility
"eth-hash[pycryptodome]>=0.3.3", # ETH integration with crypto backend
"eth-keys>=0.4.0", # ETH integration for key management
"toml",
]
[project.optional-dependencies]
transformers = [
"transformers>=4.20.0",
"huggingface-hub>=0.10.0"
]
fsspec = [
"fsspec>=2023.3.0",
"requests-unixsocket>=0.3.0",
]
arrow = [
"pyarrow>=11.0.0", # Updated minimum version to be more compatible
"pandas>=1.3.0",
]
libp2p = [
"libp2p @ git+https://github.com/libp2p/py-libp2p.git@main", # Track upstream main (moving target)
"multiaddr>=0.0.9", # For peer addressing
"multiformats>=0.2.0", # For content addressing
"base58>=2.1.1", # Used by CIDs and peer IDs
"cryptography>=38.0.0", # For key generation and encryption
"protobuf>=5.26.0,<7.0.0", # Needed for current py-libp2p main generated *_pb2 code
"eth-hash[pycryptodome]>=0.3.3", # ETH integration with crypto backend
"eth-keys>=0.4.0", # ETH integration for key management
]
ai_ml = [
"torch>=2.0.0",
"numpy>=1.20.0",
"scikit-learn>=1.0.0",
"faiss-cpu>=1.8.0",
"mmh3>=3.0.0", # Updated for compatibility
]
huggingface = [
"huggingface_hub>=0.19.0",
]
filecoin_pin = [
"httpx>=0.24.0",
"multiformats>=0.3.0",
]
car_files = [
"dag-cbor>=0.3.0",
"cbor2>=5.4.0",
]
saturn = [
"httpx>=0.24.0",
]
ipni = [
"httpx>=0.24.0",
"multiformats>=0.3.0",
]
enhanced_ipfs = [
"multiformats>=0.3.0",
"dag-cbor>=0.3.0",
"py-cid>=0.3.0",
]
ipld = [
"ipld-car>=0.0.1", # CAR file format support
"ipld-dag-pb>=0.0.1", # DAG-PB codec for IPLD
"dag-cbor>=0.2.0", # Required by ipld-car
"multiformats>=0.3.0", # Enhanced multiformats support
# Note: For IPLD UnixFS support, use the 'ipld-github' extra or install manually:
# pip install git+https://github.com/storacha/py-ipld-unixfs.git
]
ipld-github = [
# IPLD packages including GitHub-only dependencies
# Install with: pip install -e .[ipld-github]
"ipld-unixfs @ git+https://github.com/storacha/py-ipld-unixfs.git",
# Include all standard IPLD packages too
"ipld-car>=0.0.1",
"ipld-dag-pb>=0.0.1",
"dag-cbor>=0.2.0", # Required by ipld-car
"multiformats>=0.3.0",
]
ipfs_datasets = [
# Distributed dataset manipulation services
# Install with: pip install -e .[ipfs_datasets]
"ipfs_datasets_py",
"datasets",
"boto3>=1.26.0",
]
ipfs_accelerate = [
# ipfs_accelerate_py integration (opt-in; heavy dependency stack)
# Install with: pip install -e .[ipfs_accelerate]
"ipfs_accelerate_py",
"ipfs_model_manager_py",
"libp2p_kit_py",
"websocket-client",
"torch>=2.0.0",
"torchvision",
"transformers>=4.20.0",
"ipfs_transformers_py",
"sentence-transformers",
"InstructorEmbedding",
"openvino",
"openvino-genai",
"optimum",
"optimum-intel",
]
api = [
"fastapi>=0.100.0",
"uvicorn>=0.22.0",
"python-multipart>=0.0.6",
"jinja2>=3.1.0", # Required for FastAPI template rendering
]
webrtc = [
"aiortc>=1.5.0",
"av>=10.0.0", # Required by aiortc for media handling
"opencv-python>=4.7.0", # For video processing
"websockets>=10.4", # For WebSocket signaling
]
graphql = [
"graphql-core>=3.2.0",
"strawberry-graphql>=0.200.0", # Modern GraphQL library
]
s3 = [
"boto3>=1.26.0",
]
performance = [
"matplotlib>=3.5.0",
"numpy>=1.20.0",
]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.23.0",
"pytest-trio>=0.8.0",
"pytest-timeout>=2.3.0",
"paramiko>=3.4.0",
"black>=23.3.0",
"isort>=5.12.0",
"mypy>=1.3.0",
"pylint>=2.17.0",
"build>=0.10.0",
"twine>=4.0.2",
"playwright>=1.30.0",
"pytest-playwright>=0.4.0",
"rdflib>=7.0.0",
]
full = [
# Core functionality
"fsspec>=2023.3.0",
"requests-unixsocket>=0.3.0",
# Arrow/data processing
"pyarrow>=11.0.0",
"pandas>=1.3.0",
# Networking and protocols
"multiformats>=0.2.0",
"multiaddr>=0.0.9",
"libp2p @ git+https://github.com/libp2p/py-libp2p.git@main",
"protobuf>=5.26.0,<7.0.0",
"eth-hash[pycryptodome]>=0.3.3",
"eth-keys>=0.4.0",
# Core utilities
"aiohttp>=3.8.4",
"pyyaml>=6.0",
"numpy>=1.20.0",
# ML/AI
"scikit-learn>=1.0.0",
"faiss-cpu>=1.8.0",
# API
"fastapi>=0.100.0",
"uvicorn>=0.22.0",
"python-multipart>=0.0.6",
"jinja2>=3.1.0",
# GraphQL
"graphql-core>=3.2.0",
# Performance and visualization
"matplotlib>=3.5.0",
# Knowledge graph / graph utilities
"networkx>=3.0",
# Websocket support
"websockets>=10.4",
# Cloud storage
"boto3>=1.26.0",
# ipfs_datasets_py integration
"ipfs_datasets_py",
"datasets",
# HuggingFace
"huggingface_hub>=0.19.0",
# IPLD support (working packages)
"ipld-car>=0.0.1",
"ipld-dag-pb>=0.0.1",
"dag-cbor>=0.2.0",
]
[project.scripts]
ipfs-kit = "ipfs_kit_py.cli:sync_main"
[project.urls]
Homepage = "https://github.com/endomorphosis/ipfs_kit_py/"
Documentation = "https://github.com/endomorphosis/ipfs_kit_py/blob/main/README.md"
Source = "https://github.com/endomorphosis/ipfs_kit_py/"
Issues = "https://github.com/endomorphosis/ipfs_kit_py/issues"
Changelog = "https://github.com/endomorphosis/ipfs_kit_py/blob/main/CHANGELOG.md"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["ipfs_kit_py*", "external*"]
[tool.setuptools.package-data]
"ipfs_kit_py" = ["**/*"]
"external" = ["**/*"]
[tool.black]
line-length = 100
target-version = ["py312", "py313"]
[tool.isort]
profile = "black"
line_length = 100
[tool.ruff]
line-length = 100
target-version = "py312"
exclude = [".git", "__pycache__", "build", "dist"]
ignore = ["E203", "E501"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403"] # Allow unused imports in __init__.py files
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_functions = "test_*"