imbi 2.17.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,300 @@
1
+ Metadata-Version: 2.4
2
+ Name: imbi
3
+ Version: 2.17.0
4
+ Summary: Imbi is a DevOps Service Management Platform designed to provide an efficient way to manage a large environment that contains many services and applications.
5
+ Author-email: "Gavin M. Roy" <gavinr@aweber.com>, Dave Shawley <daves@aweber.com>, Alex Campbell <alexc@aweber.com>
6
+ License-Expression: BSD-3-Clause
7
+ License-File: LICENSE
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Natural Language :: English
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.14
14
+ Requires-Python: >=3.14
15
+ Requires-Dist: imbi-api==2.17.0
16
+ Requires-Dist: imbi-assistant==2.17.0
17
+ Requires-Dist: imbi-common[databases,llm,mcp,otel,sentry,server]==2.17.0
18
+ Requires-Dist: imbi-gateway==2.17.0
19
+ Requires-Dist: imbi-mcp==2.17.0
20
+ Requires-Dist: imbi-plugin-aws==2.17.0
21
+ Requires-Dist: imbi-plugin-github==2.17.0
22
+ Requires-Dist: imbi-plugin-google==2.17.0
23
+ Requires-Dist: imbi-plugin-logzio==2.17.0
24
+ Requires-Dist: imbi-plugin-oidc==2.17.0
25
+ Requires-Dist: imbi-plugin-pagerduty==2.17.0
26
+ Requires-Dist: imbi-plugin-sonarqube==2.17.0
27
+ Requires-Dist: imbi-slackbot==2.17.0
28
+ Description-Content-Type: text/markdown
29
+
30
+ # Imbi
31
+
32
+ Imbi is a DevOps Service Management Platform for managing large environments
33
+ containing many services and applications. It provides a centralized service
34
+ catalog with metadata management, dependency tracking, ownership hierarchy,
35
+ and AI-powered features.
36
+
37
+ ## Features
38
+
39
+ - **Service Catalog**: Centralized inventory of all services and applications
40
+ - **Dependency Tracking**: Graph-based dependency visualization using PostgreSQL + Apache AGE
41
+ - **Blueprint System**: Customizable metadata schemas for extending project fields
42
+ - **Ownership Hierarchy**: Organization, team, and user-based ownership model
43
+ - **AI Assistant**: Conversational AI powered by Claude for service queries
44
+ - **MCP Server**: Model Context Protocol server for AI agent access
45
+ - **Webhook Gateway**: Inbound event processing from GitHub, PagerDuty, etc.
46
+ - **Analytics**: Operations logs and time-series data via ClickHouse
47
+ - **Authentication**: OAuth2/OIDC (Google, GitHub, Keycloak) + local auth
48
+
49
+ ## Architecture
50
+
51
+ ```
52
+ +--------------------+
53
+ | Caddy |
54
+ | reverse proxy |
55
+ +----+--+--+--+--+---+
56
+ | | | | |
57
+ +----------------------+ | | | +---------------------+
58
+ | +------------+ | +-----------+ |
59
+ | | | | |
60
+ imbi-api imbi-assistant imbi-ui imbi-gateway imbi-mcp
61
+ (FastAPI) (FastAPI) (React/Vite) (FastAPI) (FastMCP)
62
+ | | | |
63
+ +------------+--------------+---------------+------------+
64
+ |
65
+ imbi-common
66
+ (shared Python library)
67
+ |
68
+ +---------+---------+
69
+ | |
70
+ PostgreSQL + AGE ClickHouse
71
+ (graph database) (analytics)
72
+ ```
73
+
74
+ All services run behind [Caddy](https://caddyserver.com/), a powerful and
75
+ extensible reverse proxy with automatic HTTPS. The Docker image packages
76
+ everything into a single deployable unit that can run all services together
77
+ or scale out individual components.
78
+
79
+ ## Quick Start
80
+
81
+ ### Prerequisites
82
+
83
+ - [Docker](https://docs.docker.com/get-docker/)
84
+ - [moon](https://moonrepo.dev) (task runner)
85
+
86
+ ### Running with Docker Compose
87
+
88
+ The included `compose.yaml` starts Imbi and all backing services:
89
+
90
+ ```bash
91
+ # Build and start everything
92
+ docker compose up --build -d
93
+
94
+ # Run initial setup (create admin user, seed permissions)
95
+ docker compose exec -it imbi imbi-api setup
96
+
97
+ # View logs
98
+ docker compose logs -f imbi
99
+ ```
100
+
101
+ Once running, Imbi is available at **http://localhost:8080** — the only
102
+ service published on a fixed host port:
103
+
104
+ | Service | URL | Description |
105
+ |---------|-----|-------------|
106
+ | Imbi | http://localhost:8080 | Main application (UI + API via Caddy) |
107
+
108
+ The backing services are exposed on **ephemeral** host ports (assigned by
109
+ Docker) to avoid collisions. Find a service's mapped port with
110
+ `docker compose port <service> <container-port>`:
111
+
112
+ | Service | Container port | Description |
113
+ |---------|----------------|-------------|
114
+ | PostgreSQL | 5432 | Graph database (Apache AGE); user `postgres`, password `secret` |
115
+ | ClickHouse | 8123 | Analytics database HTTP interface |
116
+ | Mailpit | 8025 | Email testing UI (captures all outbound email) |
117
+ | LocalStack | 4566 | S3-compatible object storage |
118
+
119
+ ### UI Development with Docker Compose
120
+
121
+ You can use Docker Compose to run the full backend stack while developing
122
+ the UI locally with hot-reload:
123
+
124
+ ```bash
125
+ # 1. Start the backend services
126
+ docker compose up --build -d
127
+
128
+ # 2. Run initial setup (first time only — creates admin user, seeds permissions)
129
+ docker compose exec -it imbi imbi-api setup
130
+
131
+ # 3. In the ui/ directory, point the dev proxy at the local backend
132
+ cd ui
133
+ echo 'VITE_API_URL=http://localhost:8080/api' > .env.local
134
+ npm install
135
+ npm run dev
136
+ ```
137
+
138
+ The Vite dev server starts on http://localhost:5173 and proxies `/api`
139
+ requests to the Caddy reverse proxy at `:8080`, which routes them to the
140
+ appropriate backend service.
141
+
142
+ Useful services during UI development:
143
+
144
+ | Service | URL | Use |
145
+ |---------|-----|-----|
146
+ | UI (dev) | http://localhost:5173 | Vite dev server with hot-reload |
147
+ | Imbi (backend) | http://localhost:8080 | Full app via Caddy (API + bundled UI) |
148
+
149
+ Mailpit (email) and PostgreSQL (graph data) are reachable on the ephemeral
150
+ host ports reported by `docker compose port <service> <container-port>`
151
+ (see the table above) for inspecting state during development.
152
+
153
+ ### Python Development
154
+
155
+ The repository is a [uv workspace](https://docs.astral.sh/uv/concepts/projects/workspaces/):
156
+ every library, app, and plugin is a workspace member sharing one
157
+ lockfile and one virtualenv. [moon](https://moonrepo.dev) is the task
158
+ runner — it owns the lint/format/typecheck/test/build/docs tasks and
159
+ downloads its toolchains (node, npm) on first use.
160
+
161
+ Development prerequisites:
162
+
163
+ - [moon](https://moonrepo.dev/docs/install) — the version is pinned in
164
+ `.prototools` ([proto](https://moonrepo.dev/proto) users get it
165
+ automatically)
166
+ - [uv](https://docs.astral.sh/uv/) — provisions Python 3.14 and the
167
+ shared `.venv`
168
+ - [Docker](https://docs.docker.com/get-docker/) — backing services for
169
+ the test suite
170
+
171
+ ```bash
172
+ moon run root:setup # uv sync + pre-commit hooks
173
+ moon run root:coverage # full suite (single session, aggregate coverage)
174
+ moon run api:test # one member's suite in isolation
175
+ uv run --env-file .env.test pytest apps/api/tests/endpoints/test_projects.py # a single suite or file
176
+ moon run :lint :typecheck :format # ruff + basedpyright across every project
177
+ uv run pre-commit run --all-files # reformat (ruff + tombi, write mode)
178
+ ```
179
+
180
+ `moon run <member>:test` boots the backing services and writes `.env.test`
181
+ first; run `moon run root:services` yourself before invoking `pytest`
182
+ directly. `moon query tasks` lists every available task.
183
+
184
+ ### Running the Docker Image
185
+
186
+ ```bash
187
+ # Run all services (default)
188
+ docker run -p 8080:8080 \
189
+ -e CLICKHOUSE_URL=clickhouse+http://default:password@clickhouse:8123/imbi \
190
+ -e POSTGRES_URL=postgresql://postgres:secret@postgres/imbi \
191
+ -e IMBI_AUTH_JWT_SECRET=your-secret-here \
192
+ -e IMBI_AUTH_ENCRYPTION_KEY=your-encryption-key \
193
+ -e IMBI_API_URL=http://localhost:8080/api \
194
+ -e VITE_API_URL=http://localhost:8080/api \
195
+ ghcr.io/aweber-imbi/imbi:latest
196
+
197
+ # Run a specific service only
198
+ docker run -e IMBI_SERVICE=api ...
199
+ docker run -e IMBI_SERVICE=assistant ...
200
+ docker run -e IMBI_SERVICE=gateway ...
201
+ docker run -e IMBI_SERVICE=mcp ...
202
+ docker run -e IMBI_SERVICE=slackbot ...
203
+
204
+ # Run initial setup (create admin user, seed permissions)
205
+ docker run -it \
206
+ -e CLICKHOUSE_URL=clickhouse+http://default:password@clickhouse:8123/imbi \
207
+ -e IMBI_AUTH_JWT_SECRET=your-secret-here \
208
+ -e IMBI_AUTH_ENCRYPTION_KEY=your-encryption-key \
209
+ ghcr.io/aweber-imbi/imbi:latest setup
210
+ ```
211
+
212
+ ### Deploying with Helm
213
+
214
+ ```bash
215
+ helm install imbi helm/imbi \
216
+ --set auth.jwtSecret=your-secret \
217
+ --set auth.encryptionKey=your-key
218
+ ```
219
+
220
+ See [Helm chart documentation](helm/imbi/README.md) for full configuration.
221
+
222
+ ## Building
223
+
224
+ ### Prerequisites
225
+
226
+ - [moon](https://moonrepo.dev/docs/install)
227
+ - [Docker](https://docs.docker.com/get-docker/)
228
+
229
+ ### Build Commands
230
+
231
+ ```bash
232
+ # Build the production Docker image
233
+ moon run root:image
234
+ ```
235
+
236
+ ## Environment Variables
237
+
238
+ ### Required
239
+
240
+ | Variable | Description | Services |
241
+ |----------|-------------|----------|
242
+ | `CLICKHOUSE_URL` | ClickHouse connection URL | api, all |
243
+ | `IMBI_AUTH_JWT_SECRET` | JWT signing secret | api, assistant, all |
244
+ | `IMBI_AUTH_ENCRYPTION_KEY` | Fernet encryption key | api, all |
245
+ | `POSTGRES_URL` | PostgreSQL connection URL | gateway, slackbot, all |
246
+
247
+ ### Optional
248
+
249
+ | Variable | Description | Default |
250
+ |----------|-------------|---------|
251
+ | `IMBI_SERVICE` | Service to run (`all`, `api`, `assistant`, `gateway`, `mcp`, `slackbot`) | `all` |
252
+ | `IMBI_API_URL` | Public URL of the API, including the path prefix it is mounted under (e.g. `http://localhost:8080/api`); needed when serving behind the bundled Caddy | - |
253
+ | `VITE_API_URL` | Same value as `IMBI_API_URL`; injected into the UI at serve time | - |
254
+ | `ANTHROPIC_API_KEY` | Anthropic API key for assistant | - |
255
+ | `IMBI_ASSISTANT_ENABLED` | Enable the AI assistant | `false` |
256
+ | `IMBI_EMAIL_ENABLED` | Enable email notifications | `false` |
257
+ | `IMBI_EMAIL_SMTP_HOST` | SMTP server host | `localhost` |
258
+ | `IMBI_EMAIL_SMTP_PORT` | SMTP server port | `587` |
259
+ | `IMBI_EMAIL_SMTP_USE_TLS` | Use TLS for SMTP | `true` |
260
+ | `IMBI_ENVIRONMENT` | Runtime environment | `development` |
261
+
262
+ ## Project Structure
263
+
264
+ The repository is a monorepo organized as a uv workspace. Every Python
265
+ package publishes its own distribution; the root `imbi` package is a
266
+ meta-distribution that installs the whole platform.
267
+
268
+ ```
269
+ imbi/
270
+ ├── libraries/
271
+ │ └── common/ # imbi-common — shared library (imbi.common)
272
+ │ └── {pyproject.toml, src/, tests/} # every member carries its own tests
273
+ ├── apps/
274
+ │ ├── api/ # imbi-api — core REST API (imbi.api)
275
+ │ ├── assistant/ # imbi-assistant — AI assistant (imbi.assistant)
276
+ │ ├── gateway/ # imbi-gateway — webhook gateway (imbi.gateway)
277
+ │ ├── mcp/ # imbi-mcp — MCP server (imbi.mcp)
278
+ │ └── slackbot/ # imbi-slackbot — Slack bot (imbi.slackbot)
279
+ ├── plugins/ # imbi-plugin-* — first-party plugins (imbi.plugins.*)
280
+ │ ├── aws/ github/ google/ logzio/ oidc/ pagerduty/ sonarqube/
281
+ ├── ui/ # React frontend (npm, not a uv member)
282
+ ├── docs/ # unified Zensical site
283
+ ├── pyproject.toml # workspace root + the `imbi` meta-package
284
+ ├── container/ # Dockerfile, Caddyfile, and entrypoint.sh for
285
+ │ # the production image
286
+ ├── compose.yaml # Local run of the production image
287
+ ├── compose.ci.yaml # Backing services for the test suites
288
+ ├── helm/imbi/ # Helm chart for Kubernetes deployment
289
+ └── .moon/ + moon.yml # moon task runner configuration (lint/test/build/…)
290
+ ```
291
+
292
+ ## Documentation
293
+
294
+ Full documentation is available at
295
+ [aweber-imbi.github.io/imbi](https://aweber-imbi.github.io/imbi/) and
296
+ covers installation, configuration, administration, and usage.
297
+
298
+ ## License
299
+
300
+ BSD 3-Clause License. See [LICENSE](LICENSE) for details.
@@ -0,0 +1,4 @@
1
+ imbi-2.17.0.dist-info/METADATA,sha256=Rxh6ZgupovR_IoL2cwSc0PYEUupp2NRF1L1ODSLcbug,11917
2
+ imbi-2.17.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
3
+ imbi-2.17.0.dist-info/licenses/LICENSE,sha256=9aMaLQf9Xv118BnkznD0QpQ8wkmJYkI6zQrwceUKDwE,1509
4
+ imbi-2.17.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,25 @@
1
+ Copyright (c) 2018-2026 AWeber Communications
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
+ * Neither the name of the copyright holder nor the names of its contributors may
13
+ be used to endorse or promote products derived from this software without
14
+ specific prior written permission.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
20
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.