Metadata-Version: 2.4
Name: mnemosyne-connectors
Version: 0.1.0
Summary: Sync external data sources (GitHub, Google Drive, Notion, filesystem, web crawler) into the Mnemosyne memory substrate. CLI + Python API, incremental sync, content deduplication, per-source chunking strategies.
Author-email: Mashle Burneded <mashle@geasslabs.xyz>
Maintainer-email: Geass Labs <team@geasslabs.xyz>
License: MIT License
        
        Copyright (c) 2026 Geass Labs
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://mnemosyne.geasslabs.xyz
Project-URL: Documentation, https://docs.geasslabs.xyz/mnemosyne-connectors
Project-URL: Repository, https://github.com/synet-systems/mnemosyne/tree/main/packages/mnemosyne-connectors-python
Project-URL: Issues, https://github.com/synet-systems/mnemosyne/issues
Project-URL: Changelog, https://github.com/synet-systems/mnemosyne/blob/main/packages/mnemosyne-connectors-python/CHANGELOG.md
Keywords: mnemosyne,connectors,etl,sync,github,google-drive,notion,filesystem,web-crawler
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Filesystems
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE-MIT
License-File: NOTICE
Requires-Dist: mnemosyne-sdk>=0.1.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: pydantic>=2.7.0
Provides-Extra: github
Requires-Dist: PyGithub>=2.1.0; extra == "github"
Provides-Extra: gdrive
Requires-Dist: google-api-python-client>=2.100.0; extra == "gdrive"
Provides-Extra: notion
Requires-Dist: notion-client>=2.0.0; extra == "notion"
Provides-Extra: filesystem
Requires-Dist: watchfiles>=0.21.0; extra == "filesystem"
Provides-Extra: web
Requires-Dist: trafilatura>=1.9.0; extra == "web"
Requires-Dist: readability-lxml>=0.8.1; extra == "web"
Provides-Extra: all
Requires-Dist: PyGithub>=2.1.0; extra == "all"
Requires-Dist: google-api-python-client>=2.100.0; extra == "all"
Requires-Dist: notion-client>=2.0.0; extra == "all"
Requires-Dist: trafilatura>=1.9.0; extra == "all"
Requires-Dist: readability-lxml>=0.8.1; extra == "all"
Requires-Dist: watchfiles>=0.21.0; extra == "all"
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
Requires-Dist: ruff>=0.5.0; extra == "dev"
Requires-Dist: mypy>=1.10.0; extra == "dev"
Requires-Dist: respx>=0.21.0; extra == "dev"
Dynamic: license-file

# mnemosyne-connectors

[![PyPI version](https://img.shields.io/pypi/v/mnemosyne-connectors.svg)](https://pypi.org/project/mnemosyne-connectors/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)

> Sync external data sources (GitHub, Google Drive, Notion, filesystem, web crawler) into the Mnemosyne memory substrate. CLI + Python API, with incremental sync, content deduplication, and per-source chunking strategies.

## Install

```bash
pip install mnemosyne-connectors
# or with specific connectors:
pip install mnemosyne-connectors[github]
pip install mnemosyne-connectors[gdrive]
pip install mnemosyne-connectors[notion]
pip install mnemosyne-connectors[all]
```

## Quick start

The 0.1.0 release ships the `BaseConnector` interface and `ConnectorManager`. The connector-specific implementations (GitHub, Google Drive, Notion, filesystem, web crawler) are imported lazily to avoid forcing all dependencies on every install.

```python
from mnemosyne_connectors import (
    BaseConnector,
    ConnectorConfig,
    ConnectorManager,
    GitHubConnector,  # requires [github] extra
    NotionConnector,  # requires [notion] extra
)

manager = ConnectorManager(api_key="mn_...")

# Register a GitHub connector
gh = GitHubConnector(ConnectorConfig(
    name="my-repo",
    config={"token": "ghp_...", "repos": ["owner/repo"]},
    container_tag="engineering",
))
manager.register(gh)

# Sync everything
results = manager.sync_all()
print(results)  # {connector_id: items_synced}
```

## License

MIT © [Geass Labs](https://geasslabs.xyz)
