Metadata-Version: 2.4
Name: stapel-integrations-core
Version: 0.1.1
Summary: Shared base of Stapel integrations: stored connections, access, safe HTTP, provider registry
License: MIT
Project-URL: Homepage, https://github.com/usestapel/stapel-integrations-core
Project-URL: Repository, https://github.com/usestapel/stapel-integrations-core
Project-URL: Documentation, https://github.com/usestapel/stapel-integrations-core#readme
Project-URL: Changelog, https://github.com/usestapel/stapel-integrations-core/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/usestapel/stapel-integrations-core/issues
Keywords: django,stapel,integrations-core
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: stapel-core<1.0,>=0.99.5
Requires-Dist: cryptography>=41.0
Requires-Dist: drf-spectacular>=0.27
Provides-Extra: all
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-django; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Dynamic: license-file

# stapel-integrations-core

Shared base of Stapel integrations: stored connections with encrypted secrets, per-workspace access, guarded outbound HTTP and a provider registry.

## Install

```bash
pip install stapel-integrations-core stapel-atlassian  # plus the integrations you need
```

```python
INSTALLED_APPS += ["stapel_integrations_core", "stapel_atlassian"]
urlpatterns += [path("integrations/", include("stapel_integrations_core.urls"))]
STAPEL_INTEGRATIONS_CORE = {"INTEGRATIONS_ENCRYPTION_KEYS": [FERNET_KEY]}  # or the secret STAPEL_INTEGRATIONS_ENCRYPTION_KEY
```

Run `migrate`. The default workspace policy asks the comm function `workspaces.check_membership`.

## Use

```python
from stapel_integrations_core import services

row = services.get_connection(request.user, connection_id, services.USE, provider="atlassian")
site = services.open_integration(row)
```

See `MODULE.md` for the contract, `CONFIG.MD` for settings, `llms.txt` for agents.

MIT licensed.
