docs: collect mongo-ops lib (mkdocstrings) + wiki into separate site subpaths, fix mcp server name, expose port 8007
- mongo-ops now serves /mongo-ops/wiki/ and /mongo-ops/lib/ independently - add mongo-ops MCP bundle under mcp/mongo-ops - fix copy-paste mcp server (jwtlib -> mongo_ops) in config.yml - .drone.yml/Dockerfile: publish port 8007 for mongo-ops MCP
This commit is contained in:
@@ -73,6 +73,7 @@ steps:
|
|||||||
-p 8004:8004 \
|
-p 8004:8004 \
|
||||||
-p 8005:8005 \
|
-p 8005:8005 \
|
||||||
-p 8006:8006 \
|
-p 8006:8006 \
|
||||||
|
-p 8007:8007 \
|
||||||
--restart always \
|
--restart always \
|
||||||
aetos/docs:latest
|
aetos/docs:latest
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,6 @@ COPY media-manager /usr/share/nginx/html/media-manager
|
|||||||
# --- MCP bundles -----------------------------------------------------------
|
# --- MCP bundles -----------------------------------------------------------
|
||||||
COPY mcp /app/mcp
|
COPY mcp /app/mcp
|
||||||
|
|
||||||
EXPOSE 8000 8001 8002 8003 8004 8005 8006 9000
|
EXPOSE 8000 8001 8002 8003 8004 8005 8006 8007 9000
|
||||||
|
|
||||||
CMD ["python", "main.py"]
|
CMD ["python", "main.py"]
|
||||||
@@ -177,7 +177,8 @@
|
|||||||
<h3>Mongo Ops</h3>
|
<h3>Mongo Ops</h3>
|
||||||
<p>A modular, async MongoDB operations layer for FastAPI microservices. Simplifies CRUD, transactions, and model management.</p>
|
<p>A modular, async MongoDB operations layer for FastAPI microservices. Simplifies CRUD, transactions, and model management.</p>
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
<a href="/mongo-ops/" target="_blank">view wiki</a>
|
<a href="/mongo-ops/wiki/" target="_blank">view wiki</a>
|
||||||
|
<a href="/mongo-ops/lib/" target="_blank">view lib</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -91,6 +91,8 @@ repos:
|
|||||||
section: libraries
|
section: libraries
|
||||||
docs:
|
docs:
|
||||||
wiki: site
|
wiki: site
|
||||||
|
lib: site
|
||||||
|
mcp: { bundle: docs/mcp, server: mongo_ops, port: 8007 }
|
||||||
|
|
||||||
- name: auth-server
|
- name: auth-server
|
||||||
source: ../auth-server
|
source: ../auth-server
|
||||||
|
|||||||
6
mcp/mongo-ops/index.json
Normal file
6
mcp/mongo-ops/index.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"project": "mongo_ops",
|
||||||
|
"type": "docforge-model",
|
||||||
|
"modules_count": 15,
|
||||||
|
"source": "docforge"
|
||||||
|
}
|
||||||
190
mcp/mongo-ops/modules/mongo_ops.cache.backend.json
Normal file
190
mcp/mongo-ops/modules/mongo_ops.cache.backend.json
Normal file
@@ -0,0 +1,190 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.backend",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.cache.backend",
|
||||||
|
"docstring": "Cache backend abstraction.",
|
||||||
|
"objects": {
|
||||||
|
"ABC": {
|
||||||
|
"name": "ABC",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.backend.ABC",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('ABC', 'abc.ABC')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"abstractmethod": {
|
||||||
|
"name": "abstractmethod",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.backend.abstractmethod",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('abstractmethod', 'abc.abstractmethod')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"dataclass": {
|
||||||
|
"name": "dataclass",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.backend.dataclass",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('dataclass', 'dataclasses.dataclass')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.backend.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"ObjectId": {
|
||||||
|
"name": "ObjectId",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.backend.ObjectId",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('ObjectId', 'bson.ObjectId')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"CacheStats": {
|
||||||
|
"name": "CacheStats",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheStats",
|
||||||
|
"signature": "<bound method Class.signature of Class('CacheStats', 9, 16)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"hits": {
|
||||||
|
"name": "hits",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheStats.hits",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"misses": {
|
||||||
|
"name": "misses",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheStats.misses",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"sets": {
|
||||||
|
"name": "sets",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheStats.sets",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"deletes": {
|
||||||
|
"name": "deletes",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheStats.deletes",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"current_size": {
|
||||||
|
"name": "current_size",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheStats.current_size",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_size": {
|
||||||
|
"name": "max_size",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheStats.max_size",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CircularReferenceError": {
|
||||||
|
"name": "CircularReferenceError",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.backend.CircularReferenceError",
|
||||||
|
"signature": "<bound method Class.signature of Class('CircularReferenceError', 19, 24)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"collection": {
|
||||||
|
"name": "collection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.backend.CircularReferenceError.collection",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"doc_id": {
|
||||||
|
"name": "doc_id",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.backend.CircularReferenceError.doc_id",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"path": {
|
||||||
|
"name": "path",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.backend.CircularReferenceError.path",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CacheBackend": {
|
||||||
|
"name": "CacheBackend",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheBackend",
|
||||||
|
"signature": "<bound method Class.signature of Class('CacheBackend', 27, 58)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"get": {
|
||||||
|
"name": "get",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheBackend.get",
|
||||||
|
"signature": "<bound method Function.signature of Function('get', 28, 30)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"set": {
|
||||||
|
"name": "set",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheBackend.set",
|
||||||
|
"signature": "<bound method Function.signature of Function('set', 32, 34)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"name": "delete",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheBackend.delete",
|
||||||
|
"signature": "<bound method Function.signature of Function('delete', 36, 38)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"exists": {
|
||||||
|
"name": "exists",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheBackend.exists",
|
||||||
|
"signature": "<bound method Function.signature of Function('exists', 40, 42)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"clear_pattern": {
|
||||||
|
"name": "clear_pattern",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheBackend.clear_pattern",
|
||||||
|
"signature": "<bound method Function.signature of Function('clear_pattern', 44, 46)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"get_stats": {
|
||||||
|
"name": "get_stats",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheBackend.get_stats",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_stats', 48, 50)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"initialize": {
|
||||||
|
"name": "initialize",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheBackend.initialize",
|
||||||
|
"signature": "<bound method Function.signature of Function('initialize', 52, 54)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"shutdown": {
|
||||||
|
"name": "shutdown",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.backend.CacheBackend.shutdown",
|
||||||
|
"signature": "<bound method Function.signature of Function('shutdown', 56, 58)>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
95
mcp/mongo-ops/modules/mongo_ops.cache.config.json
Normal file
95
mcp/mongo-ops/modules/mongo_ops.cache.config.json
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.config",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.cache.config",
|
||||||
|
"docstring": "Cache configuration.",
|
||||||
|
"objects": {
|
||||||
|
"dataclass": {
|
||||||
|
"name": "dataclass",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.config.dataclass",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('dataclass', 'dataclasses.dataclass')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Literal": {
|
||||||
|
"name": "Literal",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.config.Literal",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Literal', 'typing.Literal')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.config.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Redis": {
|
||||||
|
"name": "Redis",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.config.Redis",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Redis', 'redis.asyncio.Redis')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"CacheConfig": {
|
||||||
|
"name": "CacheConfig",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.config.CacheConfig",
|
||||||
|
"signature": "<bound method Class.signature of Class('CacheConfig', 11, 25)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"enabled": {
|
||||||
|
"name": "enabled",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.config.CacheConfig.enabled",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"backend": {
|
||||||
|
"name": "backend",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.config.CacheConfig.backend",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"redis_client": {
|
||||||
|
"name": "redis_client",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.config.CacheConfig.redis_client",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"default_ttl": {
|
||||||
|
"name": "default_ttl",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.config.CacheConfig.default_ttl",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_entries": {
|
||||||
|
"name": "max_entries",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.config.CacheConfig.max_entries",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"key_prefix": {
|
||||||
|
"name": "key_prefix",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.config.CacheConfig.key_prefix",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"cleanup_interval": {
|
||||||
|
"name": "cleanup_interval",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.config.CacheConfig.cleanup_interval",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
260
mcp/mongo-ops/modules/mongo_ops.cache.in_memory.json
Normal file
260
mcp/mongo-ops/modules/mongo_ops.cache.in_memory.json
Normal file
@@ -0,0 +1,260 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.in_memory",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.cache.in_memory",
|
||||||
|
"docstring": null,
|
||||||
|
"objects": {
|
||||||
|
"asyncio": {
|
||||||
|
"name": "asyncio",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.in_memory.asyncio",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('asyncio', 'asyncio')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"heapq": {
|
||||||
|
"name": "heapq",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.in_memory.heapq",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('heapq', 'heapq')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"name": "json",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.in_memory.json",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json', 'json')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"OrderedDict": {
|
||||||
|
"name": "OrderedDict",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.in_memory.OrderedDict",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('OrderedDict', 'collections.OrderedDict')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"datetime": {
|
||||||
|
"name": "datetime",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.in_memory.datetime",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('datetime', 'datetime.datetime')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"timedelta": {
|
||||||
|
"name": "timedelta",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.in_memory.timedelta",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('timedelta', 'datetime.timedelta')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"timezone": {
|
||||||
|
"name": "timezone",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.in_memory.timezone",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('timezone', 'datetime.timezone')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.in_memory.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"CacheBackend": {
|
||||||
|
"name": "CacheBackend",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheBackend",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('CacheBackend', 'mongo_ops.cache.backend.CacheBackend')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"get": {
|
||||||
|
"name": "get",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheBackend.get",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get', 'mongo_ops.cache.backend.CacheBackend.get')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"set": {
|
||||||
|
"name": "set",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheBackend.set",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('set', 'mongo_ops.cache.backend.CacheBackend.set')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"name": "delete",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheBackend.delete",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('delete', 'mongo_ops.cache.backend.CacheBackend.delete')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"exists": {
|
||||||
|
"name": "exists",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheBackend.exists",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('exists', 'mongo_ops.cache.backend.CacheBackend.exists')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"clear_pattern": {
|
||||||
|
"name": "clear_pattern",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheBackend.clear_pattern",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('clear_pattern', 'mongo_ops.cache.backend.CacheBackend.clear_pattern')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"get_stats": {
|
||||||
|
"name": "get_stats",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheBackend.get_stats",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_stats', 'mongo_ops.cache.backend.CacheBackend.get_stats')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"initialize": {
|
||||||
|
"name": "initialize",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheBackend.initialize",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('initialize', 'mongo_ops.cache.backend.CacheBackend.initialize')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"shutdown": {
|
||||||
|
"name": "shutdown",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheBackend.shutdown",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('shutdown', 'mongo_ops.cache.backend.CacheBackend.shutdown')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CacheStats": {
|
||||||
|
"name": "CacheStats",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheStats",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('CacheStats', 'mongo_ops.cache.backend.CacheStats')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"hits": {
|
||||||
|
"name": "hits",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheStats.hits",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('hits', 'mongo_ops.cache.backend.CacheStats.hits')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"misses": {
|
||||||
|
"name": "misses",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheStats.misses",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('misses', 'mongo_ops.cache.backend.CacheStats.misses')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"sets": {
|
||||||
|
"name": "sets",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheStats.sets",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('sets', 'mongo_ops.cache.backend.CacheStats.sets')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"deletes": {
|
||||||
|
"name": "deletes",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheStats.deletes",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('deletes', 'mongo_ops.cache.backend.CacheStats.deletes')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"current_size": {
|
||||||
|
"name": "current_size",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheStats.current_size",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('current_size', 'mongo_ops.cache.backend.CacheStats.current_size')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_size": {
|
||||||
|
"name": "max_size",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.in_memory.CacheStats.max_size",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('max_size', 'mongo_ops.cache.backend.CacheStats.max_size')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"InMemoryCacheBackend": {
|
||||||
|
"name": "InMemoryCacheBackend",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.in_memory.InMemoryCacheBackend",
|
||||||
|
"signature": "<bound method Class.signature of Class('InMemoryCacheBackend', 22, 121)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"initialize": {
|
||||||
|
"name": "initialize",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.InMemoryCacheBackend.initialize",
|
||||||
|
"signature": "<bound method Function.signature of Function('initialize', 38, 39)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"shutdown": {
|
||||||
|
"name": "shutdown",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.InMemoryCacheBackend.shutdown",
|
||||||
|
"signature": "<bound method Function.signature of Function('shutdown', 41, 48)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"get": {
|
||||||
|
"name": "get",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.InMemoryCacheBackend.get",
|
||||||
|
"signature": "<bound method Function.signature of Function('get', 50, 57)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"set": {
|
||||||
|
"name": "set",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.InMemoryCacheBackend.set",
|
||||||
|
"signature": "<bound method Function.signature of Function('set', 59, 68)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"name": "delete",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.InMemoryCacheBackend.delete",
|
||||||
|
"signature": "<bound method Function.signature of Function('delete', 70, 75)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"exists": {
|
||||||
|
"name": "exists",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.InMemoryCacheBackend.exists",
|
||||||
|
"signature": "<bound method Function.signature of Function('exists', 77, 79)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"clear_pattern": {
|
||||||
|
"name": "clear_pattern",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.InMemoryCacheBackend.clear_pattern",
|
||||||
|
"signature": "<bound method Function.signature of Function('clear_pattern', 81, 86)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"get_stats": {
|
||||||
|
"name": "get_stats",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.InMemoryCacheBackend.get_stats",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_stats', 88, 97)>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"encode_value": {
|
||||||
|
"name": "encode_value",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.encode_value",
|
||||||
|
"signature": "<bound method Function.signature of Function('encode_value', 127, 128)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"decode_value": {
|
||||||
|
"name": "decode_value",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.in_memory.decode_value",
|
||||||
|
"signature": "<bound method Function.signature of Function('decode_value', 131, 132)>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1384
mcp/mongo-ops/modules/mongo_ops.cache.json
Normal file
1384
mcp/mongo-ops/modules/mongo_ops.cache.json
Normal file
File diff suppressed because it is too large
Load Diff
232
mcp/mongo-ops/modules/mongo_ops.cache.redis_backend.json
Normal file
232
mcp/mongo-ops/modules/mongo_ops.cache.redis_backend.json
Normal file
@@ -0,0 +1,232 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.redis_backend",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.cache.redis_backend",
|
||||||
|
"docstring": null,
|
||||||
|
"objects": {
|
||||||
|
"json": {
|
||||||
|
"name": "json",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.json",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json', 'json')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"CacheBackend": {
|
||||||
|
"name": "CacheBackend",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheBackend",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('CacheBackend', 'mongo_ops.cache.backend.CacheBackend')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"get": {
|
||||||
|
"name": "get",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheBackend.get",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get', 'mongo_ops.cache.backend.CacheBackend.get')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"set": {
|
||||||
|
"name": "set",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheBackend.set",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('set', 'mongo_ops.cache.backend.CacheBackend.set')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"name": "delete",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheBackend.delete",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('delete', 'mongo_ops.cache.backend.CacheBackend.delete')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"exists": {
|
||||||
|
"name": "exists",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheBackend.exists",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('exists', 'mongo_ops.cache.backend.CacheBackend.exists')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"clear_pattern": {
|
||||||
|
"name": "clear_pattern",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheBackend.clear_pattern",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('clear_pattern', 'mongo_ops.cache.backend.CacheBackend.clear_pattern')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"get_stats": {
|
||||||
|
"name": "get_stats",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheBackend.get_stats",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_stats', 'mongo_ops.cache.backend.CacheBackend.get_stats')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"initialize": {
|
||||||
|
"name": "initialize",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheBackend.initialize",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('initialize', 'mongo_ops.cache.backend.CacheBackend.initialize')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"shutdown": {
|
||||||
|
"name": "shutdown",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheBackend.shutdown",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('shutdown', 'mongo_ops.cache.backend.CacheBackend.shutdown')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CacheStats": {
|
||||||
|
"name": "CacheStats",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheStats",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('CacheStats', 'mongo_ops.cache.backend.CacheStats')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"hits": {
|
||||||
|
"name": "hits",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheStats.hits",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('hits', 'mongo_ops.cache.backend.CacheStats.hits')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"misses": {
|
||||||
|
"name": "misses",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheStats.misses",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('misses', 'mongo_ops.cache.backend.CacheStats.misses')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"sets": {
|
||||||
|
"name": "sets",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheStats.sets",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('sets', 'mongo_ops.cache.backend.CacheStats.sets')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"deletes": {
|
||||||
|
"name": "deletes",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheStats.deletes",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('deletes', 'mongo_ops.cache.backend.CacheStats.deletes')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"current_size": {
|
||||||
|
"name": "current_size",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheStats.current_size",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('current_size', 'mongo_ops.cache.backend.CacheStats.current_size')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_size": {
|
||||||
|
"name": "max_size",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.CacheStats.max_size",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('max_size', 'mongo_ops.cache.backend.CacheStats.max_size')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Redis": {
|
||||||
|
"name": "Redis",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.Redis",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Redis', 'redis.asyncio.Redis')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"RedisCacheBackend": {
|
||||||
|
"name": "RedisCacheBackend",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend",
|
||||||
|
"signature": "<bound method Class.signature of Class('RedisCacheBackend', 12, 93)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"initialize": {
|
||||||
|
"name": "initialize",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend.initialize",
|
||||||
|
"signature": "<bound method Function.signature of Function('initialize', 28, 29)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"shutdown": {
|
||||||
|
"name": "shutdown",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend.shutdown",
|
||||||
|
"signature": "<bound method Function.signature of Function('shutdown', 31, 34)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"get": {
|
||||||
|
"name": "get",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend.get",
|
||||||
|
"signature": "<bound method Function.signature of Function('get', 39, 46)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"set": {
|
||||||
|
"name": "set",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend.set",
|
||||||
|
"signature": "<bound method Function.signature of Function('set', 48, 52)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"name": "delete",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend.delete",
|
||||||
|
"signature": "<bound method Function.signature of Function('delete', 54, 59)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"exists": {
|
||||||
|
"name": "exists",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend.exists",
|
||||||
|
"signature": "<bound method Function.signature of Function('exists', 61, 63)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"clear_pattern": {
|
||||||
|
"name": "clear_pattern",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend.clear_pattern",
|
||||||
|
"signature": "<bound method Function.signature of Function('clear_pattern', 65, 79)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"get_stats": {
|
||||||
|
"name": "get_stats",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend.get_stats",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_stats', 81, 90)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"publish_invalidate": {
|
||||||
|
"name": "publish_invalidate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.RedisCacheBackend.publish_invalidate",
|
||||||
|
"signature": "<bound method Function.signature of Function('publish_invalidate', 92, 93)>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"encode_value": {
|
||||||
|
"name": "encode_value",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.encode_value",
|
||||||
|
"signature": "<bound method Function.signature of Function('encode_value', 99, 100)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"decode_value": {
|
||||||
|
"name": "decode_value",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.redis_backend.decode_value",
|
||||||
|
"signature": "<bound method Function.signature of Function('decode_value', 103, 104)>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
329
mcp/mongo-ops/modules/mongo_ops.cache.repository.json
Normal file
329
mcp/mongo-ops/modules/mongo_ops.cache.repository.json
Normal file
@@ -0,0 +1,329 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.repository",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.cache.repository",
|
||||||
|
"docstring": null,
|
||||||
|
"objects": {
|
||||||
|
"Generic": {
|
||||||
|
"name": "Generic",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.repository.Generic",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Generic', 'typing.Generic')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"List": {
|
||||||
|
"name": "List",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.repository.List",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('List', 'typing.List')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.repository.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"TypeVar": {
|
||||||
|
"name": "TypeVar",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.repository.TypeVar",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('TypeVar', 'typing.TypeVar')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Union": {
|
||||||
|
"name": "Union",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.repository.Union",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Union', 'typing.Union')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"ObjectId": {
|
||||||
|
"name": "ObjectId",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.cache.repository.ObjectId",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('ObjectId', 'bson.ObjectId')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"BaseDocument": {
|
||||||
|
"name": "BaseDocument",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseDocument",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('BaseDocument', 'mongo_ops.models.BaseDocument')>",
|
||||||
|
"docstring": "Base document class with common MongoDB fields.\n\nInherit from this class to create Pydantic models that represent \nMongoDB documents. It includes automatic handling of the `_id` field \nand timestamps.\n\nAttributes:\n id: The MongoDB document ID (aliased to `_id`).\n created_at: Timestamp when the document was created.\n updated_at: Timestamp when the document was last updated.",
|
||||||
|
"members": {
|
||||||
|
"id": {
|
||||||
|
"name": "id",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseDocument.id",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('id', 'mongo_ops.models.BaseDocument.id')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"name": "created_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseDocument.created_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('created_at', 'mongo_ops.models.BaseDocument.created_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"name": "updated_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseDocument.updated_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('updated_at', 'mongo_ops.models.BaseDocument.updated_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Config": {
|
||||||
|
"name": "Config",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseDocument.Config",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Config', 'mongo_ops.models.BaseDocument.Config')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"populate_by_name": {
|
||||||
|
"name": "populate_by_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseDocument.Config.populate_by_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('populate_by_name', 'mongo_ops.models.BaseDocument.Config.populate_by_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"arbitrary_types_allowed": {
|
||||||
|
"name": "arbitrary_types_allowed",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseDocument.Config.arbitrary_types_allowed",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('arbitrary_types_allowed', 'mongo_ops.models.BaseDocument.Config.arbitrary_types_allowed')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_encoders": {
|
||||||
|
"name": "json_encoders",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseDocument.Config.json_encoders",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_encoders', 'mongo_ops.models.BaseDocument.Config.json_encoders')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_schema_extra": {
|
||||||
|
"name": "json_schema_extra",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseDocument.Config.json_schema_extra",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_schema_extra', 'mongo_ops.models.BaseDocument.Config.json_schema_extra')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"BaseRepository": {
|
||||||
|
"name": "BaseRepository",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseRepository",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('BaseRepository', 'mongo_ops.repository.BaseRepository')>",
|
||||||
|
"docstring": "Base repository class combining CRUD operations and collection management.\n\nThis class simplifies repository creation by automatically obtaining the \ndatabase connection and collection instance.\n\nAttributes:\n collection_name: The name of the collection managed by this repository.",
|
||||||
|
"members": {
|
||||||
|
"collection_name": {
|
||||||
|
"name": "collection_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.BaseRepository.collection_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('collection_name', 'mongo_ops.repository.BaseRepository.collection_name')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CacheBackend": {
|
||||||
|
"name": "CacheBackend",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheBackend",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('CacheBackend', 'mongo_ops.cache.backend.CacheBackend')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"get": {
|
||||||
|
"name": "get",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheBackend.get",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get', 'mongo_ops.cache.backend.CacheBackend.get')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"set": {
|
||||||
|
"name": "set",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheBackend.set",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('set', 'mongo_ops.cache.backend.CacheBackend.set')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"name": "delete",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheBackend.delete",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('delete', 'mongo_ops.cache.backend.CacheBackend.delete')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"exists": {
|
||||||
|
"name": "exists",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheBackend.exists",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('exists', 'mongo_ops.cache.backend.CacheBackend.exists')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"clear_pattern": {
|
||||||
|
"name": "clear_pattern",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheBackend.clear_pattern",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('clear_pattern', 'mongo_ops.cache.backend.CacheBackend.clear_pattern')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"get_stats": {
|
||||||
|
"name": "get_stats",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheBackend.get_stats",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_stats', 'mongo_ops.cache.backend.CacheBackend.get_stats')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"initialize": {
|
||||||
|
"name": "initialize",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheBackend.initialize",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('initialize', 'mongo_ops.cache.backend.CacheBackend.initialize')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"shutdown": {
|
||||||
|
"name": "shutdown",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheBackend.shutdown",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('shutdown', 'mongo_ops.cache.backend.CacheBackend.shutdown')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CacheConfig": {
|
||||||
|
"name": "CacheConfig",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheConfig",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('CacheConfig', 'mongo_ops.cache.config.CacheConfig')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"enabled": {
|
||||||
|
"name": "enabled",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheConfig.enabled",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('enabled', 'mongo_ops.cache.config.CacheConfig.enabled')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"backend": {
|
||||||
|
"name": "backend",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheConfig.backend",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('backend', 'mongo_ops.cache.config.CacheConfig.backend')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"redis_client": {
|
||||||
|
"name": "redis_client",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheConfig.redis_client",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('redis_client', 'mongo_ops.cache.config.CacheConfig.redis_client')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"default_ttl": {
|
||||||
|
"name": "default_ttl",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheConfig.default_ttl",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('default_ttl', 'mongo_ops.cache.config.CacheConfig.default_ttl')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_entries": {
|
||||||
|
"name": "max_entries",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheConfig.max_entries",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('max_entries', 'mongo_ops.cache.config.CacheConfig.max_entries')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"key_prefix": {
|
||||||
|
"name": "key_prefix",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheConfig.key_prefix",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('key_prefix', 'mongo_ops.cache.config.CacheConfig.key_prefix')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"cleanup_interval": {
|
||||||
|
"name": "cleanup_interval",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.CacheConfig.cleanup_interval",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('cleanup_interval', 'mongo_ops.cache.config.CacheConfig.cleanup_interval')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"decode_value": {
|
||||||
|
"name": "decode_value",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.decode_value",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('decode_value', 'mongo_ops.cache.in_memory.decode_value')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"encode_value": {
|
||||||
|
"name": "encode_value",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.encode_value",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('encode_value', 'mongo_ops.cache.in_memory.encode_value')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"T": {
|
||||||
|
"name": "T",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.cache.repository.T",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"CachedBaseRepository": {
|
||||||
|
"name": "CachedBaseRepository",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.cache.repository.CachedBaseRepository",
|
||||||
|
"signature": "<bound method Class.signature of Class('CachedBaseRepository', 14, 92)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"get_by_id": {
|
||||||
|
"name": "get_by_id",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CachedBaseRepository.get_by_id",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_by_id', 33, 48)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"create": {
|
||||||
|
"name": "create",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CachedBaseRepository.create",
|
||||||
|
"signature": "<bound method Function.signature of Function('create', 50, 56)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"update": {
|
||||||
|
"name": "update",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CachedBaseRepository.update",
|
||||||
|
"signature": "<bound method Function.signature of Function('update', 58, 67)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"name": "delete",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CachedBaseRepository.delete",
|
||||||
|
"signature": "<bound method Function.signature of Function('delete', 69, 74)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"warm_cache": {
|
||||||
|
"name": "warm_cache",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CachedBaseRepository.warm_cache",
|
||||||
|
"signature": "<bound method Function.signature of Function('warm_cache', 76, 87)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"invalidate_cache": {
|
||||||
|
"name": "invalidate_cache",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.cache.repository.CachedBaseRepository.invalidate_cache",
|
||||||
|
"signature": "<bound method Function.signature of Function('invalidate_cache', 89, 92)>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
81
mcp/mongo-ops/modules/mongo_ops.connection.json
Normal file
81
mcp/mongo-ops/modules/mongo_ops.connection.json
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.connection",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.connection",
|
||||||
|
"docstring": "MongoDB connection management.",
|
||||||
|
"objects": {
|
||||||
|
"asynccontextmanager": {
|
||||||
|
"name": "asynccontextmanager",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.connection.asynccontextmanager",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('asynccontextmanager', 'contextlib.asynccontextmanager')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.connection.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"AsyncIOMotorClient": {
|
||||||
|
"name": "AsyncIOMotorClient",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.connection.AsyncIOMotorClient",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('AsyncIOMotorClient', 'motor.motor_asyncio.AsyncIOMotorClient')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"AsyncIOMotorDatabase": {
|
||||||
|
"name": "AsyncIOMotorDatabase",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.connection.AsyncIOMotorDatabase",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('AsyncIOMotorDatabase', 'motor.motor_asyncio.AsyncIOMotorDatabase')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"MongoConnectionManager": {
|
||||||
|
"name": "MongoConnectionManager",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.connection.MongoConnectionManager",
|
||||||
|
"signature": "<bound method Class.signature of Class('MongoConnectionManager', 8, 114)>",
|
||||||
|
"docstring": "Manages MongoDB connections with async lifecycle.\n\nThis class provides a singleton-like manager for the MongoDB client and \ndatabase instances, ensuring they are properly initialized and closed \nacross the application lifecycle.",
|
||||||
|
"members": {
|
||||||
|
"connect": {
|
||||||
|
"name": "connect",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.connection.MongoConnectionManager.connect",
|
||||||
|
"signature": "<bound method Function.signature of Function('connect', 22, 45)>",
|
||||||
|
"docstring": "Connect to MongoDB and initialize the shared client.\n\nArgs:\n uri: MongoDB connection URI (e.g., \"mongodb://localhost:27017\").\n db_name: Name of the database to use.\n **kwargs: Additional Motor client options (e.g., maxPoolSize).\n\nReturns:\n AsyncIOMotorDatabase: The initialized database instance."
|
||||||
|
},
|
||||||
|
"disconnect": {
|
||||||
|
"name": "disconnect",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.connection.MongoConnectionManager.disconnect",
|
||||||
|
"signature": "<bound method Function.signature of Function('disconnect', 47, 55)>",
|
||||||
|
"docstring": "Close the active MongoDB connection and cleanup resources."
|
||||||
|
},
|
||||||
|
"get_database": {
|
||||||
|
"name": "get_database",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.connection.MongoConnectionManager.get_database",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_database', 57, 70)>",
|
||||||
|
"docstring": "Retrieve the current database instance.\n\nReturns:\n AsyncIOMotorDatabase: The active database instance.\n\nRaises:\n RuntimeError: If connect() has not been called yet."
|
||||||
|
},
|
||||||
|
"get_client": {
|
||||||
|
"name": "get_client",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.connection.MongoConnectionManager.get_client",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_client', 72, 85)>",
|
||||||
|
"docstring": "Retrieve the current client instance.\n\nReturns:\n AsyncIOMotorClient: The active Motor client instance.\n\nRaises:\n RuntimeError: If connect() has not been called yet."
|
||||||
|
},
|
||||||
|
"lifespan": {
|
||||||
|
"name": "lifespan",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.connection.MongoConnectionManager.lifespan",
|
||||||
|
"signature": "<bound method Function.signature of Function('lifespan', 87, 114)>",
|
||||||
|
"docstring": "Async context manager for managing connection lifecycle.\n\nDesigned for use with FastAPI or other frameworks supporting \nlifespan management.\n\nArgs:\n uri: MongoDB connection URI.\n db_name: Name of the database.\n **kwargs: Additional Motor client options.\n\nYields:\n AsyncIOMotorDatabase: The active database instance.\n\nUsage:\n @asynccontextmanager\n async def lifespan(app: FastAPI):\n async with MongoConnectionManager.lifespan(uri, db_name):\n yield"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3294
mcp/mongo-ops/modules/mongo_ops.json
Normal file
3294
mcp/mongo-ops/modules/mongo_ops.json
Normal file
File diff suppressed because it is too large
Load Diff
148
mcp/mongo-ops/modules/mongo_ops.models.json
Normal file
148
mcp/mongo-ops/modules/mongo_ops.models.json
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.models",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.models",
|
||||||
|
"docstring": "Base document models for MongoDB.",
|
||||||
|
"objects": {
|
||||||
|
"datetime": {
|
||||||
|
"name": "datetime",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.models.datetime",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('datetime', 'datetime.datetime')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Any": {
|
||||||
|
"name": "Any",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.models.Any",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Any', 'typing.Any')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.models.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"ObjectId": {
|
||||||
|
"name": "ObjectId",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.models.ObjectId",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('ObjectId', 'bson.ObjectId')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"BaseModel": {
|
||||||
|
"name": "BaseModel",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.models.BaseModel",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('BaseModel', 'pydantic.BaseModel')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Field": {
|
||||||
|
"name": "Field",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.models.Field",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Field', 'pydantic.Field')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"GetCoreSchemaHandler": {
|
||||||
|
"name": "GetCoreSchemaHandler",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.models.GetCoreSchemaHandler",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('GetCoreSchemaHandler', 'pydantic.GetCoreSchemaHandler')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"core_schema": {
|
||||||
|
"name": "core_schema",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.models.core_schema",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('core_schema', 'pydantic_core.core_schema')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"PyObjectId": {
|
||||||
|
"name": "PyObjectId",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.models.PyObjectId",
|
||||||
|
"signature": "<bound method Class.signature of Class('PyObjectId', 10, 65)>",
|
||||||
|
"docstring": "Custom ObjectId type compatible with Pydantic v2.\n\nThis class extends the standard BSON ObjectId to provide validation and \nserialization support within Pydantic models.",
|
||||||
|
"members": {
|
||||||
|
"validate": {
|
||||||
|
"name": "validate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.models.PyObjectId.validate",
|
||||||
|
"signature": "<bound method Function.signature of Function('validate', 35, 53)>",
|
||||||
|
"docstring": "Validate the input value and convert it to an ObjectId if possible.\n\nArgs:\n v: The value to validate (can be str or ObjectId).\n\nReturns:\n ObjectId: The validated ObjectId instance.\n\nRaises:\n ValueError: If the value is not a valid ObjectId."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"BaseDocument": {
|
||||||
|
"name": "BaseDocument",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.models.BaseDocument",
|
||||||
|
"signature": "<bound method Class.signature of Class('BaseDocument', 68, 95)>",
|
||||||
|
"docstring": "Base document class with common MongoDB fields.\n\nInherit from this class to create Pydantic models that represent \nMongoDB documents. It includes automatic handling of the `_id` field \nand timestamps.\n\nAttributes:\n id: The MongoDB document ID (aliased to `_id`).\n created_at: Timestamp when the document was created.\n updated_at: Timestamp when the document was last updated.",
|
||||||
|
"members": {
|
||||||
|
"id": {
|
||||||
|
"name": "id",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.models.BaseDocument.id",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"name": "created_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.models.BaseDocument.created_at",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"name": "updated_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.models.BaseDocument.updated_at",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Config": {
|
||||||
|
"name": "Config",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.models.BaseDocument.Config",
|
||||||
|
"signature": "<bound method Class.signature of Class('Config', 86, 95)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"populate_by_name": {
|
||||||
|
"name": "populate_by_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.models.BaseDocument.Config.populate_by_name",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"arbitrary_types_allowed": {
|
||||||
|
"name": "arbitrary_types_allowed",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.models.BaseDocument.Config.arbitrary_types_allowed",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_encoders": {
|
||||||
|
"name": "json_encoders",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.models.BaseDocument.Config.json_encoders",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_schema_extra": {
|
||||||
|
"name": "json_schema_extra",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.models.BaseDocument.Config.json_schema_extra",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
250
mcp/mongo-ops/modules/mongo_ops.populate.engine.json
Normal file
250
mcp/mongo-ops/modules/mongo_ops.populate.engine.json
Normal file
@@ -0,0 +1,250 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.populate.engine",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.populate.engine",
|
||||||
|
"docstring": null,
|
||||||
|
"objects": {
|
||||||
|
"Any": {
|
||||||
|
"name": "Any",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Any",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Any', 'typing.Any')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Dict": {
|
||||||
|
"name": "Dict",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Dict",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Dict', 'typing.Dict')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"List": {
|
||||||
|
"name": "List",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.List",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('List', 'typing.List')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Set": {
|
||||||
|
"name": "Set",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Set",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Set', 'typing.Set')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Tuple": {
|
||||||
|
"name": "Tuple",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Tuple",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Tuple', 'typing.Tuple')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"TypeVar": {
|
||||||
|
"name": "TypeVar",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.TypeVar",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('TypeVar', 'typing.TypeVar')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"ObjectId": {
|
||||||
|
"name": "ObjectId",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.ObjectId",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('ObjectId', 'bson.ObjectId')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"CircularReferenceError": {
|
||||||
|
"name": "CircularReferenceError",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.CircularReferenceError",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('CircularReferenceError', 'mongo_ops.cache.backend.CircularReferenceError')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"collection": {
|
||||||
|
"name": "collection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.CircularReferenceError.collection",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('collection', 'mongo_ops.cache.backend.CircularReferenceError.collection')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"doc_id": {
|
||||||
|
"name": "doc_id",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.CircularReferenceError.doc_id",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('doc_id', 'mongo_ops.cache.backend.CircularReferenceError.doc_id')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"path": {
|
||||||
|
"name": "path",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.CircularReferenceError.path",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('path', 'mongo_ops.cache.backend.CircularReferenceError.path')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"BaseDocument": {
|
||||||
|
"name": "BaseDocument",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('BaseDocument', 'mongo_ops.models.BaseDocument')>",
|
||||||
|
"docstring": "Base document class with common MongoDB fields.\n\nInherit from this class to create Pydantic models that represent \nMongoDB documents. It includes automatic handling of the `_id` field \nand timestamps.\n\nAttributes:\n id: The MongoDB document ID (aliased to `_id`).\n created_at: Timestamp when the document was created.\n updated_at: Timestamp when the document was last updated.",
|
||||||
|
"members": {
|
||||||
|
"id": {
|
||||||
|
"name": "id",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.id",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('id', 'mongo_ops.models.BaseDocument.id')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"name": "created_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.created_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('created_at', 'mongo_ops.models.BaseDocument.created_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"name": "updated_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.updated_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('updated_at', 'mongo_ops.models.BaseDocument.updated_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Config": {
|
||||||
|
"name": "Config",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Config', 'mongo_ops.models.BaseDocument.Config')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"populate_by_name": {
|
||||||
|
"name": "populate_by_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config.populate_by_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('populate_by_name', 'mongo_ops.models.BaseDocument.Config.populate_by_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"arbitrary_types_allowed": {
|
||||||
|
"name": "arbitrary_types_allowed",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config.arbitrary_types_allowed",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('arbitrary_types_allowed', 'mongo_ops.models.BaseDocument.Config.arbitrary_types_allowed')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_encoders": {
|
||||||
|
"name": "json_encoders",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config.json_encoders",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_encoders', 'mongo_ops.models.BaseDocument.Config.json_encoders')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_schema_extra": {
|
||||||
|
"name": "json_schema_extra",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config.json_schema_extra",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_schema_extra', 'mongo_ops.models.BaseDocument.Config.json_schema_extra')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PopulateRule": {
|
||||||
|
"name": "PopulateRule",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('PopulateRule', 'mongo_ops.populate.rules.PopulateRule')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"field_name": {
|
||||||
|
"name": "field_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.field_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('field_name', 'mongo_ops.populate.rules.PopulateRule.field_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"collection_name": {
|
||||||
|
"name": "collection_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.collection_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('collection_name', 'mongo_ops.populate.rules.PopulateRule.collection_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"nested_rules": {
|
||||||
|
"name": "nested_rules",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.nested_rules",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('nested_rules', 'mongo_ops.populate.rules.PopulateRule.nested_rules')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_depth": {
|
||||||
|
"name": "max_depth",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.max_depth",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('max_depth', 'mongo_ops.populate.rules.PopulateRule.max_depth')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"name": "filter",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.filter",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('filter', 'mongo_ops.populate.rules.PopulateRule.filter')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"projection": {
|
||||||
|
"name": "projection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.projection",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('projection', 'mongo_ops.populate.rules.PopulateRule.projection')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"T": {
|
||||||
|
"name": "T",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.T",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"PopulationEngine": {
|
||||||
|
"name": "PopulationEngine",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulationEngine",
|
||||||
|
"signature": "<bound method Class.signature of Class('PopulationEngine', 12, 165)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"register_repo": {
|
||||||
|
"name": "register_repo",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulationEngine.register_repo",
|
||||||
|
"signature": "<bound method Function.signature of Function('register_repo', 21, 22)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"populate": {
|
||||||
|
"name": "populate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulationEngine.populate",
|
||||||
|
"signature": "<bound method Function.signature of Function('populate', 24, 77)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"depopulate": {
|
||||||
|
"name": "depopulate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulationEngine.depopulate",
|
||||||
|
"signature": "<bound method Function.signature of Function('depopulate', 136, 165)>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
435
mcp/mongo-ops/modules/mongo_ops.populate.json
Normal file
435
mcp/mongo-ops/modules/mongo_ops.populate.json
Normal file
@@ -0,0 +1,435 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.populate",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.populate",
|
||||||
|
"docstring": null,
|
||||||
|
"objects": {
|
||||||
|
"PopulationEngine": {
|
||||||
|
"name": "PopulationEngine",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.PopulationEngine",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('PopulationEngine', 'mongo_ops.populate.engine.PopulationEngine')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"register_repo": {
|
||||||
|
"name": "register_repo",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.populate.PopulationEngine.register_repo",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('register_repo', 'mongo_ops.populate.engine.PopulationEngine.register_repo')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"populate": {
|
||||||
|
"name": "populate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.populate.PopulationEngine.populate",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('populate', 'mongo_ops.populate.engine.PopulationEngine.populate')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"depopulate": {
|
||||||
|
"name": "depopulate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.populate.PopulationEngine.depopulate",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('depopulate', 'mongo_ops.populate.engine.PopulationEngine.depopulate')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PopulateRule": {
|
||||||
|
"name": "PopulateRule",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.PopulateRule",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('PopulateRule', 'mongo_ops.populate.rules.PopulateRule')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"field_name": {
|
||||||
|
"name": "field_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.PopulateRule.field_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('field_name', 'mongo_ops.populate.rules.PopulateRule.field_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"collection_name": {
|
||||||
|
"name": "collection_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.PopulateRule.collection_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('collection_name', 'mongo_ops.populate.rules.PopulateRule.collection_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"nested_rules": {
|
||||||
|
"name": "nested_rules",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.PopulateRule.nested_rules",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('nested_rules', 'mongo_ops.populate.rules.PopulateRule.nested_rules')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_depth": {
|
||||||
|
"name": "max_depth",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.PopulateRule.max_depth",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('max_depth', 'mongo_ops.populate.rules.PopulateRule.max_depth')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"name": "filter",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.PopulateRule.filter",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('filter', 'mongo_ops.populate.rules.PopulateRule.filter')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"projection": {
|
||||||
|
"name": "projection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.PopulateRule.projection",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('projection', 'mongo_ops.populate.rules.PopulateRule.projection')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"engine": {
|
||||||
|
"name": "engine",
|
||||||
|
"kind": "module",
|
||||||
|
"path": "mongo_ops.populate.engine",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"Any": {
|
||||||
|
"name": "Any",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Any",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Any', 'typing.Any')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Dict": {
|
||||||
|
"name": "Dict",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Dict",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Dict', 'typing.Dict')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"List": {
|
||||||
|
"name": "List",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.List",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('List', 'typing.List')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Set": {
|
||||||
|
"name": "Set",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Set",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Set', 'typing.Set')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Tuple": {
|
||||||
|
"name": "Tuple",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.Tuple",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Tuple', 'typing.Tuple')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"TypeVar": {
|
||||||
|
"name": "TypeVar",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.TypeVar",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('TypeVar', 'typing.TypeVar')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"ObjectId": {
|
||||||
|
"name": "ObjectId",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.engine.ObjectId",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('ObjectId', 'bson.ObjectId')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"CircularReferenceError": {
|
||||||
|
"name": "CircularReferenceError",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.CircularReferenceError",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('CircularReferenceError', 'mongo_ops.cache.backend.CircularReferenceError')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"collection": {
|
||||||
|
"name": "collection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.CircularReferenceError.collection",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('collection', 'mongo_ops.cache.backend.CircularReferenceError.collection')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"doc_id": {
|
||||||
|
"name": "doc_id",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.CircularReferenceError.doc_id",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('doc_id', 'mongo_ops.cache.backend.CircularReferenceError.doc_id')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"path": {
|
||||||
|
"name": "path",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.CircularReferenceError.path",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('path', 'mongo_ops.cache.backend.CircularReferenceError.path')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"BaseDocument": {
|
||||||
|
"name": "BaseDocument",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('BaseDocument', 'mongo_ops.models.BaseDocument')>",
|
||||||
|
"docstring": "Base document class with common MongoDB fields.\n\nInherit from this class to create Pydantic models that represent \nMongoDB documents. It includes automatic handling of the `_id` field \nand timestamps.\n\nAttributes:\n id: The MongoDB document ID (aliased to `_id`).\n created_at: Timestamp when the document was created.\n updated_at: Timestamp when the document was last updated.",
|
||||||
|
"members": {
|
||||||
|
"id": {
|
||||||
|
"name": "id",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.id",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('id', 'mongo_ops.models.BaseDocument.id')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"name": "created_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.created_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('created_at', 'mongo_ops.models.BaseDocument.created_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"name": "updated_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.updated_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('updated_at', 'mongo_ops.models.BaseDocument.updated_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Config": {
|
||||||
|
"name": "Config",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Config', 'mongo_ops.models.BaseDocument.Config')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"populate_by_name": {
|
||||||
|
"name": "populate_by_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config.populate_by_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('populate_by_name', 'mongo_ops.models.BaseDocument.Config.populate_by_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"arbitrary_types_allowed": {
|
||||||
|
"name": "arbitrary_types_allowed",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config.arbitrary_types_allowed",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('arbitrary_types_allowed', 'mongo_ops.models.BaseDocument.Config.arbitrary_types_allowed')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_encoders": {
|
||||||
|
"name": "json_encoders",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config.json_encoders",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_encoders', 'mongo_ops.models.BaseDocument.Config.json_encoders')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_schema_extra": {
|
||||||
|
"name": "json_schema_extra",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.BaseDocument.Config.json_schema_extra",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_schema_extra', 'mongo_ops.models.BaseDocument.Config.json_schema_extra')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PopulateRule": {
|
||||||
|
"name": "PopulateRule",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('PopulateRule', 'mongo_ops.populate.rules.PopulateRule')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"field_name": {
|
||||||
|
"name": "field_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.field_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('field_name', 'mongo_ops.populate.rules.PopulateRule.field_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"collection_name": {
|
||||||
|
"name": "collection_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.collection_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('collection_name', 'mongo_ops.populate.rules.PopulateRule.collection_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"nested_rules": {
|
||||||
|
"name": "nested_rules",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.nested_rules",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('nested_rules', 'mongo_ops.populate.rules.PopulateRule.nested_rules')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_depth": {
|
||||||
|
"name": "max_depth",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.max_depth",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('max_depth', 'mongo_ops.populate.rules.PopulateRule.max_depth')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"name": "filter",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.filter",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('filter', 'mongo_ops.populate.rules.PopulateRule.filter')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"projection": {
|
||||||
|
"name": "projection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulateRule.projection",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('projection', 'mongo_ops.populate.rules.PopulateRule.projection')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"T": {
|
||||||
|
"name": "T",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.engine.T",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"PopulationEngine": {
|
||||||
|
"name": "PopulationEngine",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulationEngine",
|
||||||
|
"signature": "<bound method Class.signature of Class('PopulationEngine', 12, 165)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"register_repo": {
|
||||||
|
"name": "register_repo",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulationEngine.register_repo",
|
||||||
|
"signature": "<bound method Function.signature of Function('register_repo', 21, 22)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"populate": {
|
||||||
|
"name": "populate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulationEngine.populate",
|
||||||
|
"signature": "<bound method Function.signature of Function('populate', 24, 77)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"depopulate": {
|
||||||
|
"name": "depopulate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.populate.engine.PopulationEngine.depopulate",
|
||||||
|
"signature": "<bound method Function.signature of Function('depopulate', 136, 165)>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"name": "rules",
|
||||||
|
"kind": "module",
|
||||||
|
"path": "mongo_ops.populate.rules",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"dataclass": {
|
||||||
|
"name": "dataclass",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.dataclass",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('dataclass', 'dataclasses.dataclass')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Any": {
|
||||||
|
"name": "Any",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.Any",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Any', 'typing.Any')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Dict": {
|
||||||
|
"name": "Dict",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.Dict",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Dict', 'typing.Dict')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"List": {
|
||||||
|
"name": "List",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.List",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('List', 'typing.List')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"PopulateRule": {
|
||||||
|
"name": "PopulateRule",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule",
|
||||||
|
"signature": "<bound method Class.signature of Class('PopulateRule', 5, 12)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"field_name": {
|
||||||
|
"name": "field_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.field_name",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"collection_name": {
|
||||||
|
"name": "collection_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.collection_name",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"nested_rules": {
|
||||||
|
"name": "nested_rules",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.nested_rules",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_depth": {
|
||||||
|
"name": "max_depth",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.max_depth",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"name": "filter",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.filter",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"projection": {
|
||||||
|
"name": "projection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.projection",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
95
mcp/mongo-ops/modules/mongo_ops.populate.rules.json
Normal file
95
mcp/mongo-ops/modules/mongo_ops.populate.rules.json
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.populate.rules",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.populate.rules",
|
||||||
|
"docstring": null,
|
||||||
|
"objects": {
|
||||||
|
"dataclass": {
|
||||||
|
"name": "dataclass",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.dataclass",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('dataclass', 'dataclasses.dataclass')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Any": {
|
||||||
|
"name": "Any",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.Any",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Any', 'typing.Any')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Dict": {
|
||||||
|
"name": "Dict",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.Dict",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Dict', 'typing.Dict')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"List": {
|
||||||
|
"name": "List",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.List",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('List', 'typing.List')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.populate.rules.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"PopulateRule": {
|
||||||
|
"name": "PopulateRule",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule",
|
||||||
|
"signature": "<bound method Class.signature of Class('PopulateRule', 5, 12)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"field_name": {
|
||||||
|
"name": "field_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.field_name",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"collection_name": {
|
||||||
|
"name": "collection_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.collection_name",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"nested_rules": {
|
||||||
|
"name": "nested_rules",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.nested_rules",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_depth": {
|
||||||
|
"name": "max_depth",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.max_depth",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"name": "filter",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.filter",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"projection": {
|
||||||
|
"name": "projection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.populate.rules.PopulateRule.projection",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
285
mcp/mongo-ops/modules/mongo_ops.registry.json
Normal file
285
mcp/mongo-ops/modules/mongo_ops.registry.json
Normal file
@@ -0,0 +1,285 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.registry",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.registry",
|
||||||
|
"docstring": "Model registration for multi-service initialization.",
|
||||||
|
"objects": {
|
||||||
|
"Dict": {
|
||||||
|
"name": "Dict",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.registry.Dict",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Dict', 'typing.Dict')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"List": {
|
||||||
|
"name": "List",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.registry.List",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('List', 'typing.List')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.registry.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Type": {
|
||||||
|
"name": "Type",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.registry.Type",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Type', 'typing.Type')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"AsyncIOMotorDatabase": {
|
||||||
|
"name": "AsyncIOMotorDatabase",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.registry.AsyncIOMotorDatabase",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('AsyncIOMotorDatabase', 'motor.motor_asyncio.AsyncIOMotorDatabase')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"CacheBackend": {
|
||||||
|
"name": "CacheBackend",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.registry.CacheBackend",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('CacheBackend', 'mongo_ops.cache.backend.CacheBackend')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"get": {
|
||||||
|
"name": "get",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.CacheBackend.get",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get', 'mongo_ops.cache.backend.CacheBackend.get')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"set": {
|
||||||
|
"name": "set",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.CacheBackend.set",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('set', 'mongo_ops.cache.backend.CacheBackend.set')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"name": "delete",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.CacheBackend.delete",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('delete', 'mongo_ops.cache.backend.CacheBackend.delete')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"exists": {
|
||||||
|
"name": "exists",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.CacheBackend.exists",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('exists', 'mongo_ops.cache.backend.CacheBackend.exists')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"clear_pattern": {
|
||||||
|
"name": "clear_pattern",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.CacheBackend.clear_pattern",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('clear_pattern', 'mongo_ops.cache.backend.CacheBackend.clear_pattern')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"get_stats": {
|
||||||
|
"name": "get_stats",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.CacheBackend.get_stats",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_stats', 'mongo_ops.cache.backend.CacheBackend.get_stats')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"initialize": {
|
||||||
|
"name": "initialize",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.CacheBackend.initialize",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('initialize', 'mongo_ops.cache.backend.CacheBackend.initialize')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"shutdown": {
|
||||||
|
"name": "shutdown",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.CacheBackend.shutdown",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('shutdown', 'mongo_ops.cache.backend.CacheBackend.shutdown')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"MongoConnectionManager": {
|
||||||
|
"name": "MongoConnectionManager",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.registry.MongoConnectionManager",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('MongoConnectionManager', 'mongo_ops.connection.MongoConnectionManager')>",
|
||||||
|
"docstring": "Manages MongoDB connections with async lifecycle.\n\nThis class provides a singleton-like manager for the MongoDB client and \ndatabase instances, ensuring they are properly initialized and closed \nacross the application lifecycle.",
|
||||||
|
"members": {
|
||||||
|
"connect": {
|
||||||
|
"name": "connect",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.MongoConnectionManager.connect",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('connect', 'mongo_ops.connection.MongoConnectionManager.connect')>",
|
||||||
|
"docstring": "Connect to MongoDB and initialize the shared client.\n\nArgs:\n uri: MongoDB connection URI (e.g., \"mongodb://localhost:27017\").\n db_name: Name of the database to use.\n **kwargs: Additional Motor client options (e.g., maxPoolSize).\n\nReturns:\n AsyncIOMotorDatabase: The initialized database instance."
|
||||||
|
},
|
||||||
|
"disconnect": {
|
||||||
|
"name": "disconnect",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.MongoConnectionManager.disconnect",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('disconnect', 'mongo_ops.connection.MongoConnectionManager.disconnect')>",
|
||||||
|
"docstring": "Close the active MongoDB connection and cleanup resources."
|
||||||
|
},
|
||||||
|
"get_database": {
|
||||||
|
"name": "get_database",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.MongoConnectionManager.get_database",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_database', 'mongo_ops.connection.MongoConnectionManager.get_database')>",
|
||||||
|
"docstring": "Retrieve the current database instance.\n\nReturns:\n AsyncIOMotorDatabase: The active database instance.\n\nRaises:\n RuntimeError: If connect() has not been called yet."
|
||||||
|
},
|
||||||
|
"get_client": {
|
||||||
|
"name": "get_client",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.MongoConnectionManager.get_client",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_client', 'mongo_ops.connection.MongoConnectionManager.get_client')>",
|
||||||
|
"docstring": "Retrieve the current client instance.\n\nReturns:\n AsyncIOMotorClient: The active Motor client instance.\n\nRaises:\n RuntimeError: If connect() has not been called yet."
|
||||||
|
},
|
||||||
|
"lifespan": {
|
||||||
|
"name": "lifespan",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.MongoConnectionManager.lifespan",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('lifespan', 'mongo_ops.connection.MongoConnectionManager.lifespan')>",
|
||||||
|
"docstring": "Async context manager for managing connection lifecycle.\n\nDesigned for use with FastAPI or other frameworks supporting \nlifespan management.\n\nArgs:\n uri: MongoDB connection URI.\n db_name: Name of the database.\n **kwargs: Additional Motor client options.\n\nYields:\n AsyncIOMotorDatabase: The active database instance.\n\nUsage:\n @asynccontextmanager\n async def lifespan(app: FastAPI):\n async with MongoConnectionManager.lifespan(uri, db_name):\n yield"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"BaseDocument": {
|
||||||
|
"name": "BaseDocument",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.registry.BaseDocument",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('BaseDocument', 'mongo_ops.models.BaseDocument')>",
|
||||||
|
"docstring": "Base document class with common MongoDB fields.\n\nInherit from this class to create Pydantic models that represent \nMongoDB documents. It includes automatic handling of the `_id` field \nand timestamps.\n\nAttributes:\n id: The MongoDB document ID (aliased to `_id`).\n created_at: Timestamp when the document was created.\n updated_at: Timestamp when the document was last updated.",
|
||||||
|
"members": {
|
||||||
|
"id": {
|
||||||
|
"name": "id",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.registry.BaseDocument.id",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('id', 'mongo_ops.models.BaseDocument.id')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"name": "created_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.registry.BaseDocument.created_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('created_at', 'mongo_ops.models.BaseDocument.created_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"name": "updated_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.registry.BaseDocument.updated_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('updated_at', 'mongo_ops.models.BaseDocument.updated_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Config": {
|
||||||
|
"name": "Config",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.registry.BaseDocument.Config",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Config', 'mongo_ops.models.BaseDocument.Config')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"populate_by_name": {
|
||||||
|
"name": "populate_by_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.registry.BaseDocument.Config.populate_by_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('populate_by_name', 'mongo_ops.models.BaseDocument.Config.populate_by_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"arbitrary_types_allowed": {
|
||||||
|
"name": "arbitrary_types_allowed",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.registry.BaseDocument.Config.arbitrary_types_allowed",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('arbitrary_types_allowed', 'mongo_ops.models.BaseDocument.Config.arbitrary_types_allowed')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_encoders": {
|
||||||
|
"name": "json_encoders",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.registry.BaseDocument.Config.json_encoders",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_encoders', 'mongo_ops.models.BaseDocument.Config.json_encoders')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_schema_extra": {
|
||||||
|
"name": "json_schema_extra",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.registry.BaseDocument.Config.json_schema_extra",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_schema_extra', 'mongo_ops.models.BaseDocument.Config.json_schema_extra')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ModelRegistry": {
|
||||||
|
"name": "ModelRegistry",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.registry.ModelRegistry",
|
||||||
|
"signature": "<bound method Class.signature of Class('ModelRegistry', 11, 149)>",
|
||||||
|
"docstring": "Registry for managing multiple models and their collections.\n\nThis registry allows central management of collections and their \nassociated indexes, making it easier to perform mass initialization \nat application startup.",
|
||||||
|
"members": {
|
||||||
|
"register": {
|
||||||
|
"name": "register",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.ModelRegistry.register",
|
||||||
|
"signature": "<bound method Function.signature of Function('register', 24, 48)>",
|
||||||
|
"docstring": "Register a model with its collection and indexes.\n\nArgs:\n collection_name: Name of the MongoDB collection.\n model: Document model class (subclass of BaseDocument).\n indexes: List of index specifications (e.g., [(\"email\", 1)]).\n\nUsage:\n ModelRegistry.register(\n \"users\",\n UserDocument,\n indexes=[(\"email\", 1), (\"created_at\", -1)]\n )"
|
||||||
|
},
|
||||||
|
"initialize_all": {
|
||||||
|
"name": "initialize_all",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.ModelRegistry.initialize_all",
|
||||||
|
"signature": "<bound method Function.signature of Function('initialize_all', 50, 67)>",
|
||||||
|
"docstring": "Initialize all registered collections and create indexes.\n\nThis method should be called during application startup to ensure \nall necessary indexes exist in the database.\n\nArgs:\n db: Database instance. If not provided, uses the global database \n from MongoConnectionManager."
|
||||||
|
},
|
||||||
|
"get_model": {
|
||||||
|
"name": "get_model",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.ModelRegistry.get_model",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_model', 69, 85)>",
|
||||||
|
"docstring": "Retrieve a registered model by its collection name.\n\nArgs:\n collection_name: The name of the collection.\n\nReturns:\n Type[BaseDocument]: The registered model class.\n\nRaises:\n KeyError: If the model for the given collection is not registered."
|
||||||
|
},
|
||||||
|
"list_collections": {
|
||||||
|
"name": "list_collections",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.ModelRegistry.list_collections",
|
||||||
|
"signature": "<bound method Function.signature of Function('list_collections', 87, 95)>",
|
||||||
|
"docstring": "List all registered collection names.\n\nReturns:\n List[str]: A list of collection names."
|
||||||
|
},
|
||||||
|
"get_cache_backend": {
|
||||||
|
"name": "get_cache_backend",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.ModelRegistry.get_cache_backend",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_cache_backend', 97, 105)>",
|
||||||
|
"docstring": "Get the registered cache backend instance.\n\nReturns:\n Optional[CacheBackend]: The cache backend, if registered."
|
||||||
|
},
|
||||||
|
"set_cache_backend": {
|
||||||
|
"name": "set_cache_backend",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.ModelRegistry.set_cache_backend",
|
||||||
|
"signature": "<bound method Function.signature of Function('set_cache_backend', 107, 119)>",
|
||||||
|
"docstring": "Register a cache backend for all cache-enabled repositories.\n\nShould be called after MongoDB connection is established,\nbefore cache-backed repositories are used.\n\nArgs:\n backend: A CacheBackend instance (InMemoryCacheBackend\n or RedisCacheBackend)."
|
||||||
|
},
|
||||||
|
"initialize_cache": {
|
||||||
|
"name": "initialize_cache",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.ModelRegistry.initialize_cache",
|
||||||
|
"signature": "<bound method Function.signature of Function('initialize_cache', 121, 137)>",
|
||||||
|
"docstring": "Initialize the registered cache backend.\n\nMust be called after set_cache_backend() and before any\ncache-backed repository operations. Typically called right\nafter MongoDB connection is established.\n\nRaises:\n RuntimeError: If no cache backend has been registered."
|
||||||
|
},
|
||||||
|
"shutdown_cache": {
|
||||||
|
"name": "shutdown_cache",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.registry.ModelRegistry.shutdown_cache",
|
||||||
|
"signature": "<bound method Function.signature of Function('shutdown_cache', 139, 149)>",
|
||||||
|
"docstring": "Shutdown the registered cache backend gracefully.\n\nShould be called during application shutdown to clean up\nbackground tasks (e.g., in-memory TTL cleanup)."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
431
mcp/mongo-ops/modules/mongo_ops.repository.json
Normal file
431
mcp/mongo-ops/modules/mongo_ops.repository.json
Normal file
@@ -0,0 +1,431 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.repository",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.repository",
|
||||||
|
"docstring": "Repository patterns and CRUD mixins for MongoDB.",
|
||||||
|
"objects": {
|
||||||
|
"datetime": {
|
||||||
|
"name": "datetime",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.datetime",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('datetime', 'datetime.datetime')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Any": {
|
||||||
|
"name": "Any",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.Any",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Any', 'typing.Any')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Dict": {
|
||||||
|
"name": "Dict",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.Dict",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Dict', 'typing.Dict')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Generic": {
|
||||||
|
"name": "Generic",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.Generic",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Generic', 'typing.Generic')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"List": {
|
||||||
|
"name": "List",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.List",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('List', 'typing.List')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Optional": {
|
||||||
|
"name": "Optional",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.Optional",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Optional', 'typing.Optional')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"TypeVar": {
|
||||||
|
"name": "TypeVar",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.TypeVar",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('TypeVar', 'typing.TypeVar')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Union": {
|
||||||
|
"name": "Union",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.Union",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Union', 'typing.Union')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"ObjectId": {
|
||||||
|
"name": "ObjectId",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.ObjectId",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('ObjectId', 'bson.ObjectId')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"AsyncIOMotorCollection": {
|
||||||
|
"name": "AsyncIOMotorCollection",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.repository.AsyncIOMotorCollection",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('AsyncIOMotorCollection', 'motor.motor_asyncio.AsyncIOMotorCollection')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"MongoConnectionManager": {
|
||||||
|
"name": "MongoConnectionManager",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.repository.MongoConnectionManager",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('MongoConnectionManager', 'mongo_ops.connection.MongoConnectionManager')>",
|
||||||
|
"docstring": "Manages MongoDB connections with async lifecycle.\n\nThis class provides a singleton-like manager for the MongoDB client and \ndatabase instances, ensuring they are properly initialized and closed \nacross the application lifecycle.",
|
||||||
|
"members": {
|
||||||
|
"connect": {
|
||||||
|
"name": "connect",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.MongoConnectionManager.connect",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('connect', 'mongo_ops.connection.MongoConnectionManager.connect')>",
|
||||||
|
"docstring": "Connect to MongoDB and initialize the shared client.\n\nArgs:\n uri: MongoDB connection URI (e.g., \"mongodb://localhost:27017\").\n db_name: Name of the database to use.\n **kwargs: Additional Motor client options (e.g., maxPoolSize).\n\nReturns:\n AsyncIOMotorDatabase: The initialized database instance."
|
||||||
|
},
|
||||||
|
"disconnect": {
|
||||||
|
"name": "disconnect",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.MongoConnectionManager.disconnect",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('disconnect', 'mongo_ops.connection.MongoConnectionManager.disconnect')>",
|
||||||
|
"docstring": "Close the active MongoDB connection and cleanup resources."
|
||||||
|
},
|
||||||
|
"get_database": {
|
||||||
|
"name": "get_database",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.MongoConnectionManager.get_database",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_database', 'mongo_ops.connection.MongoConnectionManager.get_database')>",
|
||||||
|
"docstring": "Retrieve the current database instance.\n\nReturns:\n AsyncIOMotorDatabase: The active database instance.\n\nRaises:\n RuntimeError: If connect() has not been called yet."
|
||||||
|
},
|
||||||
|
"get_client": {
|
||||||
|
"name": "get_client",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.MongoConnectionManager.get_client",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_client', 'mongo_ops.connection.MongoConnectionManager.get_client')>",
|
||||||
|
"docstring": "Retrieve the current client instance.\n\nReturns:\n AsyncIOMotorClient: The active Motor client instance.\n\nRaises:\n RuntimeError: If connect() has not been called yet."
|
||||||
|
},
|
||||||
|
"lifespan": {
|
||||||
|
"name": "lifespan",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.MongoConnectionManager.lifespan",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('lifespan', 'mongo_ops.connection.MongoConnectionManager.lifespan')>",
|
||||||
|
"docstring": "Async context manager for managing connection lifecycle.\n\nDesigned for use with FastAPI or other frameworks supporting \nlifespan management.\n\nArgs:\n uri: MongoDB connection URI.\n db_name: Name of the database.\n **kwargs: Additional Motor client options.\n\nYields:\n AsyncIOMotorDatabase: The active database instance.\n\nUsage:\n @asynccontextmanager\n async def lifespan(app: FastAPI):\n async with MongoConnectionManager.lifespan(uri, db_name):\n yield"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"BaseDocument": {
|
||||||
|
"name": "BaseDocument",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.repository.BaseDocument",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('BaseDocument', 'mongo_ops.models.BaseDocument')>",
|
||||||
|
"docstring": "Base document class with common MongoDB fields.\n\nInherit from this class to create Pydantic models that represent \nMongoDB documents. It includes automatic handling of the `_id` field \nand timestamps.\n\nAttributes:\n id: The MongoDB document ID (aliased to `_id`).\n created_at: Timestamp when the document was created.\n updated_at: Timestamp when the document was last updated.",
|
||||||
|
"members": {
|
||||||
|
"id": {
|
||||||
|
"name": "id",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.BaseDocument.id",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('id', 'mongo_ops.models.BaseDocument.id')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"created_at": {
|
||||||
|
"name": "created_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.BaseDocument.created_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('created_at', 'mongo_ops.models.BaseDocument.created_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"updated_at": {
|
||||||
|
"name": "updated_at",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.BaseDocument.updated_at",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('updated_at', 'mongo_ops.models.BaseDocument.updated_at')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Config": {
|
||||||
|
"name": "Config",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.repository.BaseDocument.Config",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Config', 'mongo_ops.models.BaseDocument.Config')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"populate_by_name": {
|
||||||
|
"name": "populate_by_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.BaseDocument.Config.populate_by_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('populate_by_name', 'mongo_ops.models.BaseDocument.Config.populate_by_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"arbitrary_types_allowed": {
|
||||||
|
"name": "arbitrary_types_allowed",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.BaseDocument.Config.arbitrary_types_allowed",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('arbitrary_types_allowed', 'mongo_ops.models.BaseDocument.Config.arbitrary_types_allowed')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_encoders": {
|
||||||
|
"name": "json_encoders",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.BaseDocument.Config.json_encoders",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_encoders', 'mongo_ops.models.BaseDocument.Config.json_encoders')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"json_schema_extra": {
|
||||||
|
"name": "json_schema_extra",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.BaseDocument.Config.json_schema_extra",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('json_schema_extra', 'mongo_ops.models.BaseDocument.Config.json_schema_extra')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PopulationEngine": {
|
||||||
|
"name": "PopulationEngine",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.repository.PopulationEngine",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('PopulationEngine', 'mongo_ops.populate.engine.PopulationEngine')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"register_repo": {
|
||||||
|
"name": "register_repo",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.PopulationEngine.register_repo",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('register_repo', 'mongo_ops.populate.engine.PopulationEngine.register_repo')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"populate": {
|
||||||
|
"name": "populate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.PopulationEngine.populate",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('populate', 'mongo_ops.populate.engine.PopulationEngine.populate')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"depopulate": {
|
||||||
|
"name": "depopulate",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.PopulationEngine.depopulate",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('depopulate', 'mongo_ops.populate.engine.PopulationEngine.depopulate')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PopulateRule": {
|
||||||
|
"name": "PopulateRule",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.repository.PopulateRule",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('PopulateRule', 'mongo_ops.populate.rules.PopulateRule')>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"field_name": {
|
||||||
|
"name": "field_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.PopulateRule.field_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('field_name', 'mongo_ops.populate.rules.PopulateRule.field_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"collection_name": {
|
||||||
|
"name": "collection_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.PopulateRule.collection_name",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('collection_name', 'mongo_ops.populate.rules.PopulateRule.collection_name')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"nested_rules": {
|
||||||
|
"name": "nested_rules",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.PopulateRule.nested_rules",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('nested_rules', 'mongo_ops.populate.rules.PopulateRule.nested_rules')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"max_depth": {
|
||||||
|
"name": "max_depth",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.PopulateRule.max_depth",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('max_depth', 'mongo_ops.populate.rules.PopulateRule.max_depth')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"name": "filter",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.PopulateRule.filter",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('filter', 'mongo_ops.populate.rules.PopulateRule.filter')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"projection": {
|
||||||
|
"name": "projection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.PopulateRule.projection",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('projection', 'mongo_ops.populate.rules.PopulateRule.projection')>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"T": {
|
||||||
|
"name": "T",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.T",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"CRUDMixin": {
|
||||||
|
"name": "CRUDMixin",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin",
|
||||||
|
"signature": "<bound method Class.signature of Class('CRUDMixin', 16, 196)>",
|
||||||
|
"docstring": "Generic CRUD operations mixin for MongoDB collections.\n\nThis mixin provides standard Create, Read, Update, and Delete operations \nthat work with Pydantic models.\n\nAttributes:\n collection: The Motor collection instance.\n model: The Pydantic model class representing the document.",
|
||||||
|
"members": {
|
||||||
|
"collection": {
|
||||||
|
"name": "collection",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.collection",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"model": {
|
||||||
|
"name": "model",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.model",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"data_to_model": {
|
||||||
|
"name": "data_to_model",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.data_to_model",
|
||||||
|
"signature": "<bound method Function.signature of Function('data_to_model', 39, 40)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"create": {
|
||||||
|
"name": "create",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.create",
|
||||||
|
"signature": "<bound method Function.signature of Function('create', 42, 58)>",
|
||||||
|
"docstring": "Create a new document in the collection.\n\nArgs:\n data: The Pydantic model instance to insert.\n\nReturns:\n T: The created Pydantic model instance, including the assigned ID."
|
||||||
|
},
|
||||||
|
"get_by_id": {
|
||||||
|
"name": "get_by_id",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.get_by_id",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_by_id', 60, 74)>",
|
||||||
|
"docstring": "Retrieve a document by its ID.\n\nArgs:\n id: The document ID (string or ObjectId).\n\nReturns:\n Optional[T]: The Pydantic model instance if found, else None."
|
||||||
|
},
|
||||||
|
"get_many": {
|
||||||
|
"name": "get_many",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.get_many",
|
||||||
|
"signature": "<bound method Function.signature of Function('get_many', 76, 115)>",
|
||||||
|
"docstring": "Retrieve multiple documents with filtering, pagination, and sorting.\n\nArgs:\n filter: MongoDB filter dictionary (e.g., {\"is_active\": True}).\n skip: Number of documents to skip for pagination.\n limit: Maximum number of documents to return (default 100).\n sort: List of sort specifications [(field, direction), ...].\n E.g., [(\"created_at\", -1)] for descending.\n\nReturns:\n List[T]: A list of Pydantic model instances.\n\nUsage:\n ```python\n users = await repo.get_many(\n filter={\"role\": \"admin\"},\n limit=10,\n sort=[(\"username\", 1)]\n )\n ```"
|
||||||
|
},
|
||||||
|
"update": {
|
||||||
|
"name": "update",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.update",
|
||||||
|
"signature": "<bound method Function.signature of Function('update', 117, 142)>",
|
||||||
|
"docstring": "Update a document by its ID using the $set operator.\n\nArgs:\n id: The document ID (string or ObjectId).\n data: A dictionary of fields and values to update.\n\nReturns:\n Optional[T]: The updated Pydantic model instance if found, else None.\n\nUsage:\n ```python\n updated_user = await repo.update(user_id, {\"email\": \"new@example.com\"})\n ```"
|
||||||
|
},
|
||||||
|
"patch": {
|
||||||
|
"name": "patch",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.patch",
|
||||||
|
"signature": "<bound method Function.signature of Function('patch', 144, 167)>",
|
||||||
|
"docstring": "Partially update a document using $set (REST PATCH semantics).\n\nUnlike update(), patch() takes a partial dict and applies only those\nfields. PopulatingRepository overrides this to prevent patching FK fields.\n\nArgs:\n id: The document ID (string or ObjectId).\n data: A partial dictionary of fields and values to update.\n\nReturns:\n Optional[T]: The updated Pydantic model instance if found, else None."
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"name": "delete",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.delete",
|
||||||
|
"signature": "<bound method Function.signature of Function('delete', 169, 183)>",
|
||||||
|
"docstring": "Delete a document by its ID.\n\nArgs:\n id: The document ID (string or ObjectId).\n\nReturns:\n bool: True if a document was deleted, False otherwise."
|
||||||
|
},
|
||||||
|
"count": {
|
||||||
|
"name": "count",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.CRUDMixin.count",
|
||||||
|
"signature": "<bound method Function.signature of Function('count', 185, 196)>",
|
||||||
|
"docstring": "Count documents matching a filter.\n\nArgs:\n filter: MongoDB filter dictionary.\n\nReturns:\n int: The number of matching documents."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"BaseRepository": {
|
||||||
|
"name": "BaseRepository",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.repository.BaseRepository",
|
||||||
|
"signature": "<bound method Class.signature of Class('BaseRepository', 199, 221)>",
|
||||||
|
"docstring": "Base repository class combining CRUD operations and collection management.\n\nThis class simplifies repository creation by automatically obtaining the \ndatabase connection and collection instance.\n\nAttributes:\n collection_name: The name of the collection managed by this repository.",
|
||||||
|
"members": {
|
||||||
|
"collection_name": {
|
||||||
|
"name": "collection_name",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.BaseRepository.collection_name",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PopulatingRepository": {
|
||||||
|
"name": "PopulatingRepository",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.repository.PopulatingRepository",
|
||||||
|
"signature": "<bound method Class.signature of Class('PopulatingRepository', 224, 342)>",
|
||||||
|
"docstring": null,
|
||||||
|
"members": {
|
||||||
|
"population_engine": {
|
||||||
|
"name": "population_engine",
|
||||||
|
"kind": "attribute",
|
||||||
|
"path": "mongo_ops.repository.PopulatingRepository.population_engine",
|
||||||
|
"signature": null,
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"set_population_engine": {
|
||||||
|
"name": "set_population_engine",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.PopulatingRepository.set_population_engine",
|
||||||
|
"signature": "<bound method Function.signature of Function('set_population_engine', 236, 237)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"set_populate_rules": {
|
||||||
|
"name": "set_populate_rules",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.PopulatingRepository.set_populate_rules",
|
||||||
|
"signature": "<bound method Function.signature of Function('set_populate_rules', 239, 240)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"data_to_model": {
|
||||||
|
"name": "data_to_model",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.PopulatingRepository.data_to_model",
|
||||||
|
"signature": "<bound method Function.signature of Function('data_to_model', 242, 244)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"create": {
|
||||||
|
"name": "create",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.PopulatingRepository.create",
|
||||||
|
"signature": "<bound method Function.signature of Function('create', 322, 328)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"update": {
|
||||||
|
"name": "update",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.PopulatingRepository.update",
|
||||||
|
"signature": "<bound method Function.signature of Function('update', 330, 332)>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"patch": {
|
||||||
|
"name": "patch",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.repository.PopulatingRepository.patch",
|
||||||
|
"signature": "<bound method Function.signature of Function('patch', 334, 342)>",
|
||||||
|
"docstring": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
118
mcp/mongo-ops/modules/mongo_ops.transactions.json
Normal file
118
mcp/mongo-ops/modules/mongo_ops.transactions.json
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
{
|
||||||
|
"module": "mongo_ops.transactions",
|
||||||
|
"content": {
|
||||||
|
"path": "mongo_ops.transactions",
|
||||||
|
"docstring": "Transaction management helpers for MongoDB.",
|
||||||
|
"objects": {
|
||||||
|
"Awaitable": {
|
||||||
|
"name": "Awaitable",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.transactions.Awaitable",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Awaitable', 'collections.abc.Awaitable')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"asynccontextmanager": {
|
||||||
|
"name": "asynccontextmanager",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.transactions.asynccontextmanager",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('asynccontextmanager', 'contextlib.asynccontextmanager')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Any": {
|
||||||
|
"name": "Any",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.transactions.Any",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Any', 'typing.Any')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"Callable": {
|
||||||
|
"name": "Callable",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.transactions.Callable",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('Callable', 'typing.Callable')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"List": {
|
||||||
|
"name": "List",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.transactions.List",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('List', 'typing.List')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"AsyncIOMotorClientSession": {
|
||||||
|
"name": "AsyncIOMotorClientSession",
|
||||||
|
"kind": "alias",
|
||||||
|
"path": "mongo_ops.transactions.AsyncIOMotorClientSession",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('AsyncIOMotorClientSession', 'motor.motor_asyncio.AsyncIOMotorClientSession')>",
|
||||||
|
"docstring": null
|
||||||
|
},
|
||||||
|
"MongoConnectionManager": {
|
||||||
|
"name": "MongoConnectionManager",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.transactions.MongoConnectionManager",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('MongoConnectionManager', 'mongo_ops.connection.MongoConnectionManager')>",
|
||||||
|
"docstring": "Manages MongoDB connections with async lifecycle.\n\nThis class provides a singleton-like manager for the MongoDB client and \ndatabase instances, ensuring they are properly initialized and closed \nacross the application lifecycle.",
|
||||||
|
"members": {
|
||||||
|
"connect": {
|
||||||
|
"name": "connect",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.transactions.MongoConnectionManager.connect",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('connect', 'mongo_ops.connection.MongoConnectionManager.connect')>",
|
||||||
|
"docstring": "Connect to MongoDB and initialize the shared client.\n\nArgs:\n uri: MongoDB connection URI (e.g., \"mongodb://localhost:27017\").\n db_name: Name of the database to use.\n **kwargs: Additional Motor client options (e.g., maxPoolSize).\n\nReturns:\n AsyncIOMotorDatabase: The initialized database instance."
|
||||||
|
},
|
||||||
|
"disconnect": {
|
||||||
|
"name": "disconnect",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.transactions.MongoConnectionManager.disconnect",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('disconnect', 'mongo_ops.connection.MongoConnectionManager.disconnect')>",
|
||||||
|
"docstring": "Close the active MongoDB connection and cleanup resources."
|
||||||
|
},
|
||||||
|
"get_database": {
|
||||||
|
"name": "get_database",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.transactions.MongoConnectionManager.get_database",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_database', 'mongo_ops.connection.MongoConnectionManager.get_database')>",
|
||||||
|
"docstring": "Retrieve the current database instance.\n\nReturns:\n AsyncIOMotorDatabase: The active database instance.\n\nRaises:\n RuntimeError: If connect() has not been called yet."
|
||||||
|
},
|
||||||
|
"get_client": {
|
||||||
|
"name": "get_client",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.transactions.MongoConnectionManager.get_client",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('get_client', 'mongo_ops.connection.MongoConnectionManager.get_client')>",
|
||||||
|
"docstring": "Retrieve the current client instance.\n\nReturns:\n AsyncIOMotorClient: The active Motor client instance.\n\nRaises:\n RuntimeError: If connect() has not been called yet."
|
||||||
|
},
|
||||||
|
"lifespan": {
|
||||||
|
"name": "lifespan",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.transactions.MongoConnectionManager.lifespan",
|
||||||
|
"signature": "<bound method Alias.signature of Alias('lifespan', 'mongo_ops.connection.MongoConnectionManager.lifespan')>",
|
||||||
|
"docstring": "Async context manager for managing connection lifecycle.\n\nDesigned for use with FastAPI or other frameworks supporting \nlifespan management.\n\nArgs:\n uri: MongoDB connection URI.\n db_name: Name of the database.\n **kwargs: Additional Motor client options.\n\nYields:\n AsyncIOMotorDatabase: The active database instance.\n\nUsage:\n @asynccontextmanager\n async def lifespan(app: FastAPI):\n async with MongoConnectionManager.lifespan(uri, db_name):\n yield"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"TransactionManager": {
|
||||||
|
"name": "TransactionManager",
|
||||||
|
"kind": "class",
|
||||||
|
"path": "mongo_ops.transactions.TransactionManager",
|
||||||
|
"signature": "<bound method Class.signature of Class('TransactionManager', 11, 69)>",
|
||||||
|
"docstring": "Simplified multi-document transaction handling.\n\nThis class provides helpers for executing operations within a MongoDB \ntransaction, ensuring ACID compliance for multi-document updates.",
|
||||||
|
"members": {
|
||||||
|
"start_session": {
|
||||||
|
"name": "start_session",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.transactions.TransactionManager.start_session",
|
||||||
|
"signature": "<bound method Function.signature of Function('start_session', 19, 39)>",
|
||||||
|
"docstring": "Start a transaction session as an async context manager.\n\nArgs:\n **kwargs: Transaction options (e.g., read_concern, write_concern).\n\nYields:\n AsyncIOMotorClientSession: The active session with a started transaction.\n\nUsage:\n async with TransactionManager.start_session() as session:\n await collection.insert_one(doc, session=session)\n await other_collection.update_one(filter, update, session=session)"
|
||||||
|
},
|
||||||
|
"execute_transaction": {
|
||||||
|
"name": "execute_transaction",
|
||||||
|
"kind": "function",
|
||||||
|
"path": "mongo_ops.transactions.TransactionManager.execute_transaction",
|
||||||
|
"signature": "<bound method Function.signature of Function('execute_transaction', 41, 69)>",
|
||||||
|
"docstring": "Execute multiple operations within a single transaction.\n\nArgs:\n operations: A list of async callables that accept a session \n parameter and return a result.\n **kwargs: Transaction options.\n\nReturns:\n List[Any]: A list containing the results of each operation.\n\nUsage:\n results = await TransactionManager.execute_transaction([\n lambda s: repo1.create(data1, session=s),\n lambda s: repo2.update(id, data2, session=s),\n ])"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
62
mcp/mongo-ops/nav.json
Normal file
62
mcp/mongo-ops/nav.json
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"module": "mongo_ops",
|
||||||
|
"resource": "doc://modules/mongo_ops"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.cache",
|
||||||
|
"resource": "doc://modules/mongo_ops.cache"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.backend",
|
||||||
|
"resource": "doc://modules/mongo_ops.cache.backend"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.config",
|
||||||
|
"resource": "doc://modules/mongo_ops.cache.config"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.in_memory",
|
||||||
|
"resource": "doc://modules/mongo_ops.cache.in_memory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.redis_backend",
|
||||||
|
"resource": "doc://modules/mongo_ops.cache.redis_backend"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.cache.repository",
|
||||||
|
"resource": "doc://modules/mongo_ops.cache.repository"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.connection",
|
||||||
|
"resource": "doc://modules/mongo_ops.connection"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.models",
|
||||||
|
"resource": "doc://modules/mongo_ops.models"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.populate",
|
||||||
|
"resource": "doc://modules/mongo_ops.populate"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.populate.engine",
|
||||||
|
"resource": "doc://modules/mongo_ops.populate.engine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.populate.rules",
|
||||||
|
"resource": "doc://modules/mongo_ops.populate.rules"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.registry",
|
||||||
|
"resource": "doc://modules/mongo_ops.registry"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.repository",
|
||||||
|
"resource": "doc://modules/mongo_ops.repository"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module": "mongo_ops.transactions",
|
||||||
|
"resource": "doc://modules/mongo_ops.transactions"
|
||||||
|
}
|
||||||
|
]
|
||||||
804
mongo-ops/lib/404.html
Normal file
804
mongo-ops/lib/404.html
Normal file
@@ -0,0 +1,804 @@
|
|||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en" class="no-js">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="icon" href="/assets/images/favicon.png">
|
||||||
|
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.23">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<title>mongo_ops</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/assets/stylesheets/main.84d31ad4.min.css">
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/assets/stylesheets/palette.06af60db.min.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:300,300i,400,400i,700,700i%7CJetBrains+Mono:400,400i,700,700i&display=fallback">
|
||||||
|
<style>:root{--md-text-font:"Inter";--md-code-font:"JetBrains Mono"}</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/assets/_mkdocstrings.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://unpkg.com/dracula-prism/dist/css/dracula-prism.css">
|
||||||
|
|
||||||
|
<script>__md_scope=new URL("/",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<body dir="ltr" data-md-color-scheme="slate" data-md-color-primary="deep-purple" data-md-color-accent="cyan">
|
||||||
|
|
||||||
|
|
||||||
|
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
|
||||||
|
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
|
||||||
|
<label class="md-overlay" for="__drawer"></label>
|
||||||
|
<div data-md-component="skip">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div data-md-component="announce">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<header class="md-header md-header--shadow" data-md-component="header">
|
||||||
|
<nav class="md-header__inner md-grid" aria-label="Header">
|
||||||
|
<a href="/." title="mongo_ops" class="md-header__button md-logo" aria-label="mongo_ops" data-md-component="logo">
|
||||||
|
|
||||||
|
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3C7.58 3 4 4.79 4 7s3.58 4 8 4 8-1.79 8-4-3.58-4-8-4M4 9v3c0 2.21 3.58 4 8 4s8-1.79 8-4V9c0 2.21-3.58 4-8 4s-8-1.79-8-4m0 5v3c0 2.21 3.58 4 8 4s8-1.79 8-4v-3c0 2.21-3.58 4-8 4s-8-1.79-8-4"/></svg>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
<label class="md-header__button md-icon" for="__drawer">
|
||||||
|
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"/></svg>
|
||||||
|
</label>
|
||||||
|
<div class="md-header__title" data-md-component="header-title">
|
||||||
|
<div class="md-header__ellipsis">
|
||||||
|
<div class="md-header__topic">
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
mongo_ops
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="md-header__topic" data-md-component="header-topic">
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<form class="md-header__option" data-md-component="palette">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="deep-purple" data-md-color-accent="cyan" aria-hidden="true" type="radio" name="__palette" id="__palette_0">
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<label class="md-header__button md-icon" for="__search">
|
||||||
|
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
|
||||||
|
</label>
|
||||||
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
|
<div class="md-search__inner" role="search">
|
||||||
|
<form class="md-search__form" name="search">
|
||||||
|
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
|
||||||
|
<label class="md-search__icon md-icon" for="__search">
|
||||||
|
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
|
||||||
|
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
|
||||||
|
</label>
|
||||||
|
<nav class="md-search__options" aria-label="Search">
|
||||||
|
|
||||||
|
<a href="javascript:void(0)" class="md-search__icon md-icon" title="Share" aria-label="Share" data-clipboard data-clipboard-text="" data-md-component="search-share" tabindex="-1">
|
||||||
|
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.15c-.05.21-.08.43-.08.66 0 1.61 1.31 2.91 2.92 2.91s2.92-1.3 2.92-2.91A2.92 2.92 0 0 0 18 16.08"/></svg>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
|
||||||
|
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
|
||||||
|
</button>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="md-search__suggest" data-md-component="search-suggest"></div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
<div class="md-search__output">
|
||||||
|
<div class="md-search__scrollwrap" tabindex="0" data-md-scrollfix>
|
||||||
|
<div class="md-search-result" data-md-component="search-result">
|
||||||
|
<div class="md-search-result__meta">
|
||||||
|
Initializing search
|
||||||
|
</div>
|
||||||
|
<ol class="md-search-result__list" role="presentation"></ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="md-container" data-md-component="container">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<main class="md-main" data-md-component="main">
|
||||||
|
<div class="md-main__inner md-grid">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
|
||||||
|
<div class="md-sidebar__scrollwrap">
|
||||||
|
<div class="md-sidebar__inner">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||||||
|
<label class="md-nav__title" for="__drawer">
|
||||||
|
<a href="/." title="mongo_ops" class="md-nav__button md-logo" aria-label="mongo_ops" data-md-component="logo">
|
||||||
|
|
||||||
|
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3C7.58 3 4 4.79 4 7s3.58 4 8 4 8-1.79 8-4-3.58-4-8-4M4 9v3c0 2.21 3.58 4 8 4s8-1.79 8-4V9c0 2.21-3.58 4-8 4s-8-1.79-8-4m0 5v3c0 2.21 3.58 4 8 4s8-1.79 8-4v-3c0 2.21-3.58 4-8 4s-8-1.79-8-4"/></svg>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
mongo_ops
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/." class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Home
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_2" >
|
||||||
|
|
||||||
|
|
||||||
|
<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Core
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-nav__icon md-icon"></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
|
||||||
|
<label class="md-nav__title" for="__nav_2">
|
||||||
|
<span class="md-nav__icon md-icon"></span>
|
||||||
|
Core
|
||||||
|
</label>
|
||||||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/connection/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Connection
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/models/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Models
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/registry/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Registry
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/repository/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Repository
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/transactions/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Transactions
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_3" >
|
||||||
|
|
||||||
|
|
||||||
|
<div class="md-nav__link md-nav__container">
|
||||||
|
<a href="/cache/" class="md-nav__link ">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Cache
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<label class="md-nav__link " for="__nav_3" id="__nav_3_label" tabindex="">
|
||||||
|
<span class="md-nav__icon md-icon"></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
|
||||||
|
<label class="md-nav__title" for="__nav_3">
|
||||||
|
<span class="md-nav__icon md-icon"></span>
|
||||||
|
Cache
|
||||||
|
</label>
|
||||||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/cache/backend/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Backend
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/cache/config/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Config
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/cache/in_memory/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
In Memory
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/cache/redis_backend/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Redis Backend
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/cache/repository/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Repository
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_4" >
|
||||||
|
|
||||||
|
|
||||||
|
<div class="md-nav__link md-nav__container">
|
||||||
|
<a href="/populate/" class="md-nav__link ">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Population
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<label class="md-nav__link " for="__nav_4" id="__nav_4_label" tabindex="">
|
||||||
|
<span class="md-nav__icon md-icon"></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
|
||||||
|
<label class="md-nav__title" for="__nav_4">
|
||||||
|
<span class="md-nav__icon md-icon"></span>
|
||||||
|
Population
|
||||||
|
</label>
|
||||||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/populate/engine/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Engine
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="/populate/rules/" class="md-nav__link">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="md-ellipsis">
|
||||||
|
Rules
|
||||||
|
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
|
||||||
|
<div class="md-sidebar__scrollwrap">
|
||||||
|
<div class="md-sidebar__inner">
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="md-content" data-md-component="content">
|
||||||
|
<article class="md-content__inner md-typeset">
|
||||||
|
|
||||||
|
<h1>404 - Not found</h1>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var labels=set.querySelector(".tabbed-labels");for(var tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script>
|
||||||
|
|
||||||
|
<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="button" class="md-top md-icon" data-md-component="top" hidden>
|
||||||
|
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8z"/></svg>
|
||||||
|
Back to top
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer class="md-footer">
|
||||||
|
|
||||||
|
<div class="md-footer-meta md-typeset">
|
||||||
|
<div class="md-footer-meta__inner md-grid">
|
||||||
|
<div class="md-copyright">
|
||||||
|
|
||||||
|
|
||||||
|
Made with
|
||||||
|
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
||||||
|
Material for MkDocs
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="md-dialog" data-md-component="dialog">
|
||||||
|
<div class="md-dialog__inner md-typeset"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script id="__config" type="application/json">{"base": "/", "features": ["navigation.sections", "navigation.expand", "navigation.top", "navigation.instant", "navigation.tracking", "navigation.indexes", "content.code.copy", "content.code.annotate", "content.tabs.link", "content.action.edit", "search.highlight", "search.share", "search.suggest"], "search": "/assets/javascripts/workers/search.973d3a69.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="/assets/javascripts/bundle.f55a23d4.min.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
119
mongo-ops/lib/assets/_mkdocstrings.css
Normal file
119
mongo-ops/lib/assets/_mkdocstrings.css
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
|
||||||
|
/* Avoid breaking parameter names, etc. in table cells. */
|
||||||
|
.doc-contents td code {
|
||||||
|
word-break: normal !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* No line break before first paragraph of descriptions. */
|
||||||
|
.doc-md-description,
|
||||||
|
.doc-md-description>p:first-child {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Max width for docstring sections tables. */
|
||||||
|
.doc .md-typeset__table,
|
||||||
|
.doc .md-typeset__table table {
|
||||||
|
display: table !important;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc .md-typeset__table tr {
|
||||||
|
display: table-row;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Defaults in Spacy table style. */
|
||||||
|
.doc-param-default {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Backward-compatibility: docstring section titles in bold. */
|
||||||
|
.doc-section-title {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Symbols in Navigation and ToC. */
|
||||||
|
:root,
|
||||||
|
[data-md-color-scheme="default"] {
|
||||||
|
--doc-symbol-attribute-fg-color: #953800;
|
||||||
|
--doc-symbol-function-fg-color: #8250df;
|
||||||
|
--doc-symbol-method-fg-color: #8250df;
|
||||||
|
--doc-symbol-class-fg-color: #0550ae;
|
||||||
|
--doc-symbol-module-fg-color: #5cad0f;
|
||||||
|
|
||||||
|
--doc-symbol-attribute-bg-color: #9538001a;
|
||||||
|
--doc-symbol-function-bg-color: #8250df1a;
|
||||||
|
--doc-symbol-method-bg-color: #8250df1a;
|
||||||
|
--doc-symbol-class-bg-color: #0550ae1a;
|
||||||
|
--doc-symbol-module-bg-color: #5cad0f1a;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="slate"] {
|
||||||
|
--doc-symbol-attribute-fg-color: #ffa657;
|
||||||
|
--doc-symbol-function-fg-color: #d2a8ff;
|
||||||
|
--doc-symbol-method-fg-color: #d2a8ff;
|
||||||
|
--doc-symbol-class-fg-color: #79c0ff;
|
||||||
|
--doc-symbol-module-fg-color: #baff79;
|
||||||
|
|
||||||
|
--doc-symbol-attribute-bg-color: #ffa6571a;
|
||||||
|
--doc-symbol-function-bg-color: #d2a8ff1a;
|
||||||
|
--doc-symbol-method-bg-color: #d2a8ff1a;
|
||||||
|
--doc-symbol-class-bg-color: #79c0ff1a;
|
||||||
|
--doc-symbol-module-bg-color: #baff791a;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol {
|
||||||
|
border-radius: .1rem;
|
||||||
|
font-size: .85em;
|
||||||
|
padding: 0 .3em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-attribute {
|
||||||
|
color: var(--doc-symbol-attribute-fg-color);
|
||||||
|
background-color: var(--doc-symbol-attribute-bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-attribute::after {
|
||||||
|
content: "attr";
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-function {
|
||||||
|
color: var(--doc-symbol-function-fg-color);
|
||||||
|
background-color: var(--doc-symbol-function-bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-function::after {
|
||||||
|
content: "func";
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-method {
|
||||||
|
color: var(--doc-symbol-method-fg-color);
|
||||||
|
background-color: var(--doc-symbol-method-bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-method::after {
|
||||||
|
content: "meth";
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-class {
|
||||||
|
color: var(--doc-symbol-class-fg-color);
|
||||||
|
background-color: var(--doc-symbol-class-bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-class::after {
|
||||||
|
content: "class";
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-module {
|
||||||
|
color: var(--doc-symbol-module-fg-color);
|
||||||
|
background-color: var(--doc-symbol-module-bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
code.doc-symbol-module::after {
|
||||||
|
content: "mod";
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-signature .autorefs {
|
||||||
|
color: inherit;
|
||||||
|
border-bottom: 1px dotted currentcolor;
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
2031
mongo-ops/lib/cache/backend/index.html
vendored
Normal file
2031
mongo-ops/lib/cache/backend/index.html
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1275
mongo-ops/lib/cache/config/index.html
vendored
Normal file
1275
mongo-ops/lib/cache/config/index.html
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1952
mongo-ops/lib/cache/in_memory/index.html
vendored
Normal file
1952
mongo-ops/lib/cache/in_memory/index.html
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2702
mongo-ops/lib/cache/index.html
vendored
Normal file
2702
mongo-ops/lib/cache/index.html
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2045
mongo-ops/lib/cache/redis_backend/index.html
vendored
Normal file
2045
mongo-ops/lib/cache/redis_backend/index.html
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2124
mongo-ops/lib/cache/repository/index.html
vendored
Normal file
2124
mongo-ops/lib/cache/repository/index.html
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1499
mongo-ops/lib/connection/index.html
Normal file
1499
mongo-ops/lib/connection/index.html
Normal file
File diff suppressed because it is too large
Load Diff
6872
mongo-ops/lib/index.html
Normal file
6872
mongo-ops/lib/index.html
Normal file
File diff suppressed because it is too large
Load Diff
1409
mongo-ops/lib/models/index.html
Normal file
1409
mongo-ops/lib/models/index.html
Normal file
File diff suppressed because it is too large
Load Diff
BIN
mongo-ops/lib/objects.inv
Normal file
BIN
mongo-ops/lib/objects.inv
Normal file
Binary file not shown.
1556
mongo-ops/lib/populate/engine/index.html
Normal file
1556
mongo-ops/lib/populate/engine/index.html
Normal file
File diff suppressed because it is too large
Load Diff
1568
mongo-ops/lib/populate/index.html
Normal file
1568
mongo-ops/lib/populate/index.html
Normal file
File diff suppressed because it is too large
Load Diff
1152
mongo-ops/lib/populate/rules/index.html
Normal file
1152
mongo-ops/lib/populate/rules/index.html
Normal file
File diff suppressed because it is too large
Load Diff
1722
mongo-ops/lib/registry/index.html
Normal file
1722
mongo-ops/lib/registry/index.html
Normal file
File diff suppressed because it is too large
Load Diff
4091
mongo-ops/lib/repository/index.html
Normal file
4091
mongo-ops/lib/repository/index.html
Normal file
File diff suppressed because it is too large
Load Diff
1
mongo-ops/lib/search/search_index.json
Normal file
1
mongo-ops/lib/search/search_index.json
Normal file
File diff suppressed because one or more lines are too long
1284
mongo-ops/lib/transactions/index.html
Normal file
1284
mongo-ops/lib/transactions/index.html
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user