This release is a pre-release and may not be stable for production use.
PM Gateway
Standalone, provider-neutral project-management interoperability SDK and
optional HTTP gateway. The Python package provides an in-process SDK and an HTTP
service for the draft PM interoperability API. It does not import OpenNomos
backend code or share its database, and is designed to be usable independently
of OpenNomos. The package lives in its own repository,
opennomos-pm-gateway.
Status:
0.1.0a1alpha technical preview. The Python API and the draft contract may change before 1.0. Microsoft Planner has not been validated against a live tenant.
Install
Requires Python 3.11 or newer.
Published on PyPI as
opennomos-pm-gateway.
# SDK only
pip install opennomos-pm-gateway
# SDK plus the optional HTTP service
pip install 'opennomos-pm-gateway[server]'
OpenNomos is one possible consumer, not the boundary of the gateway's product direction.
Roadmap
The gateway is built in the following order of priority:
| # | Phase | Goal | Status |
|---|---|---|---|
| 1 | Standard | Provide a global standard terminology and API for project management tools (provider-neutral vocabulary + single OpenAPI contract). | In progress (v0.1 draft) |
| 2 | Provider support | Test and support different PM tools via adapters, validated live where possible; capabilities reported per provider. | In progress (Plane, Jira, Planner, monday.com, Asana) |
| 3 | Compliance & routing | Enable unknown/other software to become compliant with the standard, with the gateway simply re-routing requests to them (conformance + passthrough). | In progress (passthrough routing and conformance checker implemented) |
| 4 | SDKs | Provide SDK support for different programming languages beyond Python. | Planned |
1. Global standard terminology and API
Establish and stabilize a provider-neutral vocabulary (workspaces, containers, work items,
workflow states, iterations, milestones, custom fields, comments, attachments, …) and a
single OpenAPI contract
(pm-api-openapi-v0.1.yaml)
that every adapter implements. This is the foundation; adapter and SDK work depend on it.
Generated server code and Pydantic models derive from this spec.
2. Test & support different PM tools
Implement adapters for the providers in the field-mapping inventory and validate them
against live APIs where credentials allow. Report per-provider capabilities via
get_capabilities so callers know what is supported. Broad, tested coverage is the
immediate priority after the standard stabilizes.
3. Compliance for unknown software, gateway as router
Make it possible for any PM tool to become compliant with the standard on its own, so the gateway can simply re-route requests to it instead of maintaining a bespoke adapter. This requires a published conformance checklist and checker plus a passthrough/router mode for compliant providers. The wire-level checklist and checker are implemented; semantic conformance and live-provider CI remain follow-ups.
Example: a small compliant PM tool ("TinyTasks")
To make the compliance/routing idea concrete, consider TinyTasks, a deliberately small
project-management app that implements the standard API directly. It is documentation
only here (no shipped code); it shows the shape a third-party tool must expose so the
gateway can treat it as a compliant provider and just re-route.
- Data model (minimal): one workspace → many containers (projects) → work items.
Each work item carries the standard fields:
id,title,status,containerId,workspaceId, plus optionalassignee,priority,createdAt,updatedAt. - Implemented standard endpoints (subset):
GET /pm/v1/workspacesGET /pm/v1/containers?workspaceId=...GET /pm/v1/work-items?workspaceId=...&containerId=...GET /pm/v1/work-items/{workItemId}PATCH /pm/v1/work-items/{workItemId}
- Workflow states: a fixed, small set exposed via
GET /pm/v1/workflow-states, e.g.todo,in_progress,done; transitions go throughPOST /pm/v1/work-items/{workItemId}/transitions. - Capabilities:
GET /pm/v1/capabilitiesreports only what TinyTasks supports (e.g.list_work_items,get_work_item,update_work_item,transition_work_item; no comments/attachments/custom fields), so callers degrade gracefully. - Auth: a single API token per workspace, passed by the gateway per request; TinyTasks is stateless about gateway credentials and never stores them.
Because TinyTasks speaks the standard contract, the gateway does not need a TinyTasks-specific adapter: it re-routes incoming requests to TinyTasks' base URL, translating only transport and authentication concerns. Compliance is verified with the bundled conformance checker (see Becoming a compliant provider); the gateway itself does not run conformance tests at request time. Any other small PM tool can follow the same pattern to become compliant.
4. SDK support for multiple languages
Ship first-party SDKs beyond Python (e.g. TypeScript/JavaScript, Go, …) so consumers can use the standard API ergonomically in their own stack. The REST API remains callable from any language via HTTP in the meantime.
Current support and roadmap
Languages
| Status | Support |
|---|---|
| Supported | Python 3.11+ for the in-process SDK and gateway service. |
| HTTP clients | The REST API can be called from any language with an HTTP client; this package does not provide non-Python SDKs. |
| Roadmap relationship | The OpenNomos roadmap discusses Go for other OpenNomos services; it does not set this standalone tool's language direction. |
PM providers
The table explicitly lists every product in the field-mapping inventory, plus Azure DevOps from the OpenNomos product roadmap. “Implemented” means an adapter is present in this package; it does not imply full feature parity. The provider test column means live/provider validation, not unit-test coverage.
The Implementation column records how the adapter talks to the vendor:
“Vendor SDK” means it uses the vendor's official Python client library, while
“Direct API” means it calls the vendor's HTTP API itself with httpx. Direct
API adapters keep the credential, redirect, and timeout handling identical to
the rest of the gateway and add no third-party dependency.
| Provider / product | Implementation status | Implementation | Live/provider-tested | Est. PM-category adoption (Ramp, Oct 2026) | Free-account API access / credential | Native model / qualification | OpenAPI spec (download) |
|---|---|---|---|---|---|---|---|
| Jira | Implemented | Vendor SDK (jira) or Direct API (httpx) via X-PM-Provider-Mode |
Yes | 47% | Yes — API token on Free Cloud | Issue | Yes — swagger-v3.v3.json |
| Trello | Implemented | Direct API (httpx) |
Pending | 7% | Yes — API key + user token | Card | Yes — swagger.v3.json |
| Plane | Implemented | Vendor SDK (plane-sdk) |
Yes | Not reported | Yes — personal API key on Free | Work Item | Yes — self-hosted GET /api/schema/?format=openapi-json (no public Cloud URL) |
| Smartsheet | Not implemented | — | — | 9% | No — trial cannot issue API tokens; Business/Enterprise required | Row in an explicitly selected Sheet | Yes (URL TBD) — Redocly-hosted openapi.yaml, not directly fetchable |
| Microsoft Planner | Implemented | Direct API (httpx + msal for OAuth) |
No | Not reported | Conditional — OAuth, work/school tenant; personal accounts unsupported | plannerTask; unit normalization tests exist, but no live/provider validation |
Yes — Graph openapi.yaml (Planner is a subset) |
| Asana | Implemented | Direct API (httpx) |
Pending | 22% | Yes — personal access token on Personal | Task; project sections are the workflow states; multi-project memberships preserved | Yes — asana_oas.yaml |
| monday.com | Implemented | Direct API (httpx, GraphQL) |
Yes | 19% | Yes — API token in free developer sandbox | Item with runtime board columns; board groups are the workflow states | No — GraphQL only |
| Airtable | Not implemented | — | — | 16% | Yes — personal access token on Free; Free API quota applies | Record only after selecting/configuring a table | No official spec (third-party generators only) |
| Linear | Not implemented | — | — | 15% | Yes — personal API key on Free | Issue | No — GraphQL only |
| ClickUp | Implemented | Direct API (httpx) |
Pending | 9% | Yes — personal API token on Free Forever | Task; Lists are the containers and List statuses are the workflow states | Yes — clickup-api-v2-reference.json |
| Notion | Not implemented | — | — | 32% | Yes — internal integration token on Free; share pages with it | Page/data-source item only by configuration | Yes (unofficial) — notion-openapi.json |
| Microsoft Project | Not implemented | — | — | Not reported | Conditional — no generic Project API; choose a product/API family first | Must choose a specific Project product/API family | No — no generic Project API |
| Wrike | Not implemented | — | — | 1% | Yes — permanent token or OAuth; API is free on Free plan | Task / Work Item | Yes (URL TBD) — published July 2025, behind JS-rendered docs |
| Basecamp | Implemented | Direct API (httpx) |
Pending | 4% | Free plan; OAuth token, no API key; API docs don’t state a paid-plan requirement | To-do/Card; Message is a separate content profile | Yes — openapi.json |
| Zoho Projects | Not implemented | — | — | Not reported | Yes — OAuth with a free Zoho account | Task; preserve API generation/layout differences | No published OAS (Zoho ships OAS for CRM/Desk/WorkDrive, not Projects) |
| GitHub Issues | Implemented | Direct API (httpx) |
Pending | Not reported | Yes — personal access token on GitHub Free | Issue; pull-request semantics are an extension | Yes — api.github.com.json |
| Celoxis | Implemented | Direct API (httpx) |
Pending | Not reported | Yes — access token | Task; projects and tasks via Celoxis API v2 | No published OAS (account-specific property reference) |
| GitLab Issues | Not implemented | — | — | Not reported | Yes — personal access token on GitLab Free | Issue / Work Item; model varies by GitLab version | Yes (URL TBD) — partial OpenAPI in gitlab-org/gitlab, path not resolvable unauthenticated |
| Azure DevOps | Not implemented | — | — | Not reported | Yes — PAT; Basic is free for the first five users | Product-roadmap target; not included in the 18-product field inventory | Yes (URL TBD) — MicrosoftDocs/vsts-rest-api-specs (repo not anonymously reachable) |
| Compliant (any tool) | Implemented | Direct API passthrough (httpx) |
— | — | Tool-defined bearer token | The tool implements the standard API itself; the gateway only re-routes | Yes — this package's own spec/pm-api-openapi-v0.1.yaml |
The adoption estimates are Ramp Rate's share of businesses in its U.S. business dataset that purchased from the vendor among businesses purchasing in the Project Management category during the trailing 12 months. Ramp reports spend data from more than 85,000 businesses; this is a directional adoption proxy, not global market share or revenue share. Vendors can overlap, so percentages do not sum to 100%. “Not reported” means no comparable Ramp Project Management category estimate was found; do not substitute another category's figure or infer a value from the ETR market tiers. Snapshot checked 2026-11-22 against the linked Ramp Rate Project Management category and vendor pages. Ramp also publishes richer breakdowns (SMB/mid-market/enterprise adoption, first-time adopter share, growth rate, and switch rate) for these vendors on the same page; consult it when prioritising adapter work. For a broader, review-weighted directory of PM tools, see G2's Project Management category (~1,860 products) and Baserow's 55-tool comparison directory.
Free-tier access describes whether a developer can obtain credentials and make test API calls without buying a plan; it does not guarantee every endpoint or feature is included. “API credential” includes personal access tokens and OAuth tokens, not just static API keys. Microsoft Planner requires a work/school tenant (Graph does not support personal Microsoft accounts); Smartsheet trial accounts cannot create API tokens; and Microsoft Project has no single API to test until its product family is selected. For GitHub/GitLab issues, use the vendor's Issues API and a test repository/project; the listed vendors may classify those products under DevOps rather than PM.
The 18 mapped products come from the
PM tools comparison
and
field-mapping inventory;
Celoxis is an additional, manually added implemented adapter that is not yet
part of that 18-product inventory. “Not implemented” means mapped for possible
support but not yet built as an adapter. Microsoft Project stays unimplemented
until its API family is selected.
Provider support is operation-specific; use
get_capabilities to check the operations available for a particular provider.
The OpenAPI spec (download) column records whether a provider publishes a machine-readable REST description and where to get it. It is a snapshot checked 2026-11-10 by fetching each linked URL; vendor URLs drift, so re-verify before relying on one. “Yes (URL TBD)” means the vendor ships a spec but no stable, directly fetchable URL was confirmed from here — the download script in Provider OpenAPI specs skips those with a note rather than failing. “No — GraphQL only” means the vendor's public API is GraphQL, so there is no OpenAPI document to generate REST models from. The Notion document is unofficial: it is published from Notion's own MCP server repository, not as a supported contract, and the Top-level MCP surface may lag the REST API. These provider-native specs are reference material for adapter work; they are not the gateway's contract, and nothing in this package generates code from them.
Future interoperability scope
The field-mapping inventory describes the intended direction for future provider adapters and richer operations. It covers 18 product entries; Azure DevOps and Celoxis are additional candidates (Celoxis is implemented but not yet mapped in the inventory), not part of that field inventory. These are mapping proposals—not claims that every product or feature is implemented. Adapter work should prioritize:
- Discoverable custom fields: fetch definitions, stable native IDs, types, options, scope, and writability before mapping values. This is essential for systems whose work-item shape is configured per project, board, sheet, table, or data source.
- Faithful work-item semantics: preserve native workflow states separately from completion/progress; support multiple container memberships; and keep parent/subtask structure distinct from typed relationships such as blocks, duplicates, and dependencies.
- Optional capability profiles: lifecycle/archive state, followers, components and versions, cycles/iterations and milestones, time tracking, comments, and attachments. Expose these only where the provider supports them and report availability through capabilities.
- Native-value preservation: retain provider-scoped identities, native values and scales, and mapping quality. Do not infer priority from labels or workflow status from percentages/list placement; use namespaced extensions where no safe common field exists.
Some sources require explicit configuration before they can be treated as work items: for example, Airtable or Notion records need a selected table/data source and field mapping. Microsoft Project also needs an explicitly named API family. Feature availability and field definitions can vary by connection or container, so provider-wide capability flags alone may be too coarse. See the field-mapping inventory for the product-by-product crosswalk and mapping constraints.
In-process SDK
Install the package from PyPI:
pip install opennomos-pm-gateway
For development inside the OpenNomos monorepo, use the editable install in Development. The SDK is asynchronous and calls the provider adapter in-process: you do not need to start the gateway service, configure a gateway bearer token, or make an HTTP request to the gateway.
Create a PMGateway and pass the provider credentials on each execute call.
Supported provider keys are plane, jira, planner, monday, asana,
clickup, trello, basecamp, github, celoxis, and compliant. Jira and compliant providers require their site URL
as base_url; Plane, Planner, monday.com, Asana, and ClickUp use their
documented defaults unless an allowlisted URL is supplied. Jira supports two
backend modes selected with X-PM-Provider-Mode (or the SDK mode
argument): http-client (default, generated OpenAPI client) and sdk
(vendor jira client). base_url is
security-sensitive because it decides where the provider credential is sent:
HTTPS is required, known SaaS endpoints (Jira Cloud, Plane Cloud, Microsoft
Graph, monday.com, Asana, and ClickUp) are trusted by default, and every other
host must be explicitly
allowlisted with PM_GATEWAY_ALLOWED_PROVIDER_HOSTS. Planner is restricted to
Microsoft Graph endpoints. Never pair a stored credential with an untrusted base
URL.
Credentials use the provider's expected format: Plane API token, Jira
email:api-token, Planner tenant_id:client_id:client_secret, monday.com
personal API token, Asana personal access token, ClickUp personal API token,
Trello API key + user token, Basecamp OAuth token, GitHub personal access token,
Celoxis access token, or, for a
compliant provider, the bearer token accepted by the remote service. Keep
credentials in a secret store or environment variables, not in source control.
import asyncio
import os
from pm_gateway import Operation, PMGateway, Provider
async def main() -> None:
gateway = PMGateway()
provider = Provider.JIRA
credential = os.environ["JIRA_API_TOKEN"] # email:api-token
base_url = os.environ["JIRA_BASE_URL"] # e.g. https://example.atlassian.net
# Check what this provider supports before relying on optional operations.
capabilities = await gateway.execute(
Operation.GET_CAPABILITIES,
provider=provider,
credential=credential,
base_url=base_url,
)
print(capabilities)
# IDs are provider-native. Find the workspace and container (project, plan,
# board, etc.) to use from your provider or the discovery operations.
workspace_id = "your-workspace-id"
containers = await gateway.execute(
Operation.LIST_CONTAINERS,
provider=provider,
credential=credential,
base_url=base_url,
workspaceId=workspace_id,
limit=50,
)
for container in containers.items:
print(container.id, container.name)
asyncio.run(main())
execute(operation, *, provider, credential, base_url=None, **params) takes an
Operation enum member and that operation's parameters. The provider
argument takes a Provider enum member: Provider.PLANE, Provider.JIRA,
Provider.PLANNER, Provider.MONDAY, Provider.ASANA, Provider.CLICKUP,
Provider.TRELLO, Provider.BASECAMP, Provider.GITHUB, Provider.CELOXIS, or
Provider.COMPLIANT. For Jira, pass mode=ProviderMode.HTTP or
ProviderMode.SDK (defaults to SDK in the in-process SDK). Use operation
members such as
Operation.GET_CAPABILITIES, Operation.LIST_CONTAINERS, or
Operation.LIST_WORK_ITEMS; the enum is exported from pm_gateway. Parameter
names follow the generated Python API signatures (for example, workspaceId,
containerId, workItemId, and changed_since). Results are generated
Pydantic model instances, not dictionaries: page results expose items and
next_cursor, and individual resources expose their model fields.
list_workspaces returns configured workspace slugs; pass them as
x_pm_workspace_slugs="team-a,team-b".
To fetch work items and handle pagination, add this inside main() above,
using the same gateway, provider, credential, base_url, and
workspace_id values:
page = await gateway.execute(
Operation.LIST_WORK_ITEMS,
provider=provider,
credential=credential,
base_url=base_url,
workspaceId=workspace_id,
containerId="your-container-id",
limit=50,
)
for item in page.items:
print(item.id, item.title, item.status)
# Pass the opaque cursor back with the same query to fetch the next page.
if page.next_cursor:
next_page = await gateway.execute(
Operation.LIST_WORK_ITEMS,
provider=provider,
credential=credential,
base_url=base_url,
workspaceId=workspace_id,
containerId="your-container-id",
limit=50,
cursor=page.next_cursor,
)
Available operation names are get_capabilities, list_workspaces,
list_containers, list_boards, get_board_scope,
list_custom_field_definitions, list_iterations, list_milestones,
list_work_items, get_work_item, update_work_item,
list_work_item_comments, list_work_item_attachments,
list_workflow_states, and transition_work_item. Optional operations may
not be supported by every provider; consult get_capabilities and expect an
unsupported-operation error when a feature is unavailable. Page sizes are at
most 200. Provider/API errors are raised as fastapi.HTTPException with a
status code and detail; handle these at your application boundary.
Credentials are passed for each call and are not persisted by the SDK. Do not log credentials or include them in exception output. In the OpenNomos monorepo, the backend is one optional SDK consumer: it resolves and decrypts stored credentials, then supplies them per operation. The gateway itself does not depend on that backend.
Compliant providers (passthrough)
A compliant provider is third-party software that implements the standard
OpenAPI contract directly. The gateway does not map that software's native model
through an adapter. Instead, it forwards the standard operation to the remote
service and returns the remote standard payload unchanged (parsed into the
generated models). This lets an unknown PM tool become usable without a
bespoke adapter. The example host below is not a built-in default; allowlist it
with PM_GATEWAY_ALLOWED_PROVIDER_HOSTS=tools.example.com before calling.
gateway = PMGateway()
page = await gateway.execute(
Operation.LIST_WORK_ITEMS,
provider=Provider.COMPLIANT,
credential=os.environ["COMPLIANT_TOKEN"], # sent as Authorization: Bearer
base_url="https://tools.example.com", # /pm/v1 appended if absent
workspaceId="workspace-1",
containerId="project-1",
)
Rules for compliant providers:
base_urlis required and must be an absolute HTTPS URL without embedded credentials, a query, or a fragment. Plain HTTP is rejected unlessPM_GATEWAY_ALLOW_INSECURE_HTTP=1is set for local development. If the path does not already end with/pm/v1(case-insensitive), the gateway appends it. The remote service must therefore expose the standard operations under that base path. The provider credential is sent to whatever host is configured, so treat the host as part of the credential boundary. There is no default compliant host: add it toPM_GATEWAY_ALLOWED_PROVIDER_HOSTSbefore use.- The provider credential is forwarded only as
Authorization: Bearer <token>. Gateway-side headers such asX-PM-Provider,X-PM-Provider-Credential, andX-PM-Provider-Base-Urlare not sent upstream. Whenlist_workspacesis called withx_pm_workspace_slugs, that value is forwarded asX-PM-Workspace-Slugs. - All standard operations are forwarded, including query filters such as
changedSince,stateId,assigneeId,boardId, anditerationIds. Path IDs (workspaceId,containerId,workItemId) are percent-encoded before being placed in the upstream URL, so a client-supplied value cannot escape the standard route template on the remote host. update_work_itemforwards standard merge-patch semantics: fields the caller omitted are left out of the upstream body (unchanged remotely) while explicitnullvalues clear the field. This holds for plain-dict payloads and for generatedWorkItemPatchmodels alike.- Work-item reads and writes propagate the upstream
ETagon responses, andIf-Matchis forwarded onupdate_work_itemandtransition_work_item, so conditional updates work end-to-end through the gateway. - Upstream HTTP errors are surfaced as
fastapi.HTTPExceptionwith the remote status code. The remote body is replaced with a generic message by default; setPM_GATEWAY_EXPOSE_UPSTREAM_ERRORS=1to include a bounded remotemessage/detailfor debugging. A remoteRetry-Afterheader (for example on429) is always forwarded to the caller. A remote implementation that does not support an optional operation should return the appropriate standard error itself. - The remote implementation is assumed to be a standalone standard API, not another pm-gateway instance behind the same auth middleware.
The same behavior is available over HTTP: send X-PM-Provider: compliant,
X-PM-Provider-Credential, and X-PM-Provider-Base-Url with each request.
Becoming a compliant provider
A third-party PM tool becomes usable through the compliant provider by
implementing the standard API itself. The gateway does not translate the tool's
native model; it forwards the standard operation to the tool and parses the
standard response. The normative contract is
spec/pm-api-openapi-v0.1.yaml.
For a step-by-step implementation brief written for AI coding agents — including
OpenAPI scaffold generation, per-endpoint behavior, authentication, pagination,
merge-patch, and ETags — see
docs/compliance-implementation-guide.md.
Core Read checklist
Core Read is the minimum profile. These operations must work:
| Operation | Method and path | Required response |
|---|---|---|
get_capabilities |
GET /pm/v1/capabilities |
{apiVersion, coreProfile, features} |
list_workspaces |
GET /pm/v1/workspaces |
{items, nextCursor} with id, name, provider.key |
list_containers |
GET /pm/v1/workspaces/{workspaceId}/containers |
{items, nextCursor} with id, kind, name |
list_work_items |
GET /pm/v1/workspaces/{workspaceId}/containers/{containerId}/work-items |
{items, nextCursor} with id, title, source |
get_work_item |
GET /pm/v1/workspaces/{workspaceId}/work-items/{workItemId} |
a WorkItem with id, title, source |
Optional operations (boards, board-scope, workflow-states, transitions,
custom-fields, iterations, milestones, comments, attachments,
update_work_item) may be omitted, but must be reported truthfully in
capabilities and return 501 not_supported when unavailable. The boards
operation is the documented exception: return an empty page and advertise
boards.list: false.
Wire-level requirements that commonly cause failures:
- Authenticate every operation with
Authorization: Bearer <token>; the gateway does not forward itsX-PM-Provider*headers upstream. - Mount the API under
/pm/v1. Path IDs arrive percent-encoded. - Use
nextCursor(camelCase), notnext_cursor; the last page returnsnull. - Reject unsupported filters with
400 invalid_request; never silently ignore them. - Return errors as
ApiErrorJSON ({code, message}), not HTML or plain text. - Accept both
application/jsonandapplication/merge-patch+jsonforPATCH; the gateway currently sendsapplication/json. - If you emit an
ETag, enforceIf-Matchand return412 precondition_failedon a stale revision. - Keep core work items closed to ad-hoc fields (
additionalProperties: false); use the namespacedextensionsobject for provider-specific values.
Verify conformance
The package ships a read-only-by-default checker:
pip install -e '.[server,dev]'
pm-gateway-conformance \
--base-url https://tools.example.com \
--token-env COMPLIANT_TOKEN
Add --full to probe optional read operations, --json for CI, and --write
plus --transition-to/--transition-to-id for mutating checks in a staging
environment. Exit codes are 0 (no failures), 1 (a check failed), and 2
(invalid configuration). An INCOMPLETE result means required checks were
skipped for lack of accessible fixtures (for example, no workspace is visible to
the token); rerun with explicit IDs for a certification run. A COMPLIANT
result requires every required check to pass.
The checker verifies wire shapes, pagination basics, 401/404 error shapes,
capability claims for probed operations, and (opt-in) updates and transitions.
It does not prove semantic mapping quality, tenant isolation, filter
correctness, or rate-limit behavior; test those separately. See the
implementation guide for a manual test matrix.
Point the gateway at the tool
export PM_GATEWAY_ALLOWED_PROVIDER_HOSTS='tools.example.com'
Then send X-PM-Provider: compliant, X-PM-Provider-Credential, and
X-PM-Provider-Base-Url with each request, or use the SDK:
page = await gateway.execute(
Operation.LIST_WORK_ITEMS,
provider=Provider.COMPLIANT,
credential=os.environ["COMPLIANT_TOKEN"],
base_url="https://tools.example.com",
workspaceId="workspace-1",
containerId="project-1",
)
Generated server code
The OpenAPI document at
spec/pm-api-openapi-v0.1.yaml
is the contract source. Generated API routes and models are grouped under
src/pm_gateway/generated/ (APIs, models, and security_api.py). Do not edit
those generated files by hand. Implementations belong under
src/pm_gateway/impl/ and other handwritten modules. Regenerate with:
./scripts/generate-server.sh
# Verify generated files without changing the package:
./scripts/generate-server.sh --check
Run these commands from the package root. In the OpenNomos monorepo, prefix them
with pm-gateway/.
The script requires OpenAPI Generator CLI 7.24.0 and Java. Override the
specification or generated output directory with --spec and --package-dir,
or pin a different installed CLI version with OPENAPI_GENERATOR_VERSION.
The Python FastAPI server generator is currently marked beta by OpenAPI
Generator, and OpenAPI 3.1 support is marked beta. Review generated diffs and
run the service tests whenever the generator or specification changes. The
--check mode compares only generated API/model/security files and never writes
to the package. A test also fails if a generated API operation is missing from
the gateway dispatch registry.
Provider OpenAPI specs
Adapter work sometimes benefits from the vendor's own OpenAPI document: to
compare field shapes, verify enums, or generate reference models while mapping a
provider onto the standard API. scripts/download-provider-specs.sh fetches
every provider spec that has a stable public URL into one directory:
./scripts/download-provider-specs.sh
# → /tmp/pm-gateway-openapi-specs/{jira,confluence,trello,planner,asana,clickup,notion,basecamp,github}.json|yaml
./scripts/download-provider-specs.sh --list # show the catalog only
./scripts/download-provider-specs.sh --provider jira # fetch one provider
./scripts/download-provider-specs.sh --out-dir ./spec/providers # choose the destination
The script only downloads; it never invokes OpenAPI Generator. Point
openapi-generator-cli at the downloaded file yourself if you want provider
models. Run it from the package root (in the OpenNomos monorepo, prefix with
pm-gateway/). It requires curl and reports a per-provider OK/FAIL summary,
exiting non-zero if a requested download fails.
These are provider-native contracts and are not the gateway's contract.
spec/pm-api-openapi-v0.1.yaml remains the only source for generated server
code. Providers marked “Yes (URL TBD)” or “No” in the support table are listed
in the script's catalog as notes and skipped.
Run
pip install 'opennomos-pm-gateway[server]'
PM_GATEWAY_API_TOKEN='replace-with-a-long-random-secret' pm-gateway
PM_GATEWAY_HOST (default 127.0.0.1) and PM_GATEWAY_PORT (default 8080)
configure the listener.
The service mounts the draft OpenAPI API at /pm/v1. /healthz is an
unauthenticated liveness endpoint; API operations require the gateway bearer token.
Plane, Jira, Microsoft Planner, monday.com, Asana, ClickUp, Trello, Basecamp,
GitHub, and Celoxis adapters are implemented in src/pm_gateway/adapters/. They
support workspace/container discovery, work-item reads, workflow-state reads and
transitions where the provider exposes them; Jira and Planner also expose their
current board/bucket behavior. monday.com maps boards to containers and board
groups to workflow states; other board columns are surfaced through normalized
custom fields. Asana maps projects to containers and project sections to workflow
states; a task's project memberships are preserved, and its custom fields are
surfaced through normalized custom fields. ClickUp maps Lists to containers and
List statuses to workflow states; its custom fields are surfaced through
normalized custom fields. Trello maps boards to containers and lists to workflow
states; Basecamp maps projects to containers and to-do lists to workflow states;
GitHub maps repositories to containers; Celoxis maps projects to containers via
its API v2. Capabilities mark custom fields, milestones, comments, attachments,
and general field updates unsupported until implemented.
The compliant provider is a passthrough to third-party software that implements
the standard API directly.
The bearer token protects the optional HTTP service and is distinct from the PM vendor credential. HTTP consumers send provider identity, provider credential, and optional provider base URL per request. The service uses request-scoped clients and does not persist credentials. The OpenNomos backend does not use or start this HTTP service. To run it as a container:
docker build -t opennomos-pm-gateway .
docker run --rm -p 127.0.0.1:8080:8080 \
-e PM_GATEWAY_API_TOKEN='replace-with-a-long-random-secret' \
opennomos-pm-gateway
Bind published ports to localhost or a private interface, and terminate TLS in front of the service.
Development
From the repository root:
python -m pip install -e '.[server,dev]'
python -m pytest
python -m build
python -m twine check dist/*
The default suite is offline and does not call provider APIs. The optional live
monday.com suite validates a real account and writes a compatibility matrix to
reports/monday-live/:
MONDAY_LIVE=1 MONDAY_API_TOKEN='...' python -m pytest tests/live -m live -v
Add MONDAY_LIVE_WRITE_BOARD_ID=<board id> to also exercise the
create/move/delete lifecycle on a disposable board; the test deletes the item it
creates. MONDAY_API_TOKEN is read from the environment or from a local .env
file (never committed), and is never printed. CI runs the same suite when the
MONDAY_API_TOKEN repository secret is configured; the job is non-blocking and
publishes the report as an artifact and in the workflow summary.
The live Asana suite works the same way and writes to reports/asana-live/:
ASANA_LIVE=1 ASANA_API_TOKEN='...' python -m pytest tests/live/test_asana_live.py -m live -v
Add ASANA_LIVE_WRITE_PROJECT_ID=<project gid> to exercise the
create/move/delete lifecycle on a disposable project; the test deletes the task
it creates. ASANA_TEST_WORKSPACE_ID and ASANA_TEST_PROJECT_ID pin the
workspace and project under test. ASANA_API_TOKEN is read from the environment
or from a local .env file (never committed), and is never printed. CI runs the
suite when the ASANA_API_TOKEN repository secret is configured; the job is
non-blocking and publishes the report as an artifact and in the workflow summary.
Set PM_GATEWAY_LIVE_PROVIDER=asana|monday to choose which report a combined
tests/live run writes.
When working from the OpenNomos monorepo, run these from pm-gateway/.
Pre-push secret scanning
Install the local hook once per clone (it lives in .git/hooks, so it is not
shared automatically):
./scripts/install-hooks.sh # --check, --uninstall, --force
The hook scans the commits a push is about to publish and blocks credential
files (.env, *.pem, id_rsa, …) and secret-like values (monday.com, Plane,
GitHub, Atlassian, AWS, OpenAI, Slack, private keys). To use the pre-commit
framework instead, run pre-commit install --hook-type pre-push; both entry
points call the same scanner in hooks/pre-push. See
SECURITY.md for the overrides.
Release steps are documented in RELEASING.md.
Security
Provider credentials and the gateway token are bearer secrets. Treat the service as a trusted backend component, not as an authorization boundary.
- Terminate TLS in front of the service. Do not expose the gateway token or
X-PM-Provider-Credentialover plaintext. - Use a long random
PM_GATEWAY_API_TOKEN. The service fails closed when it is unset. Apply rate limiting at the reverse proxy. base_urlis part of the credential boundary. HTTPS is required; only known SaaS endpoints (includingapi.monday.comandapp.asana.com) are trusted by default, and every other host must be explicitly allowlisted. Planner is limited to Graph endpoints. Never let an untrusted user choose the base URL for a stored credential. The built-in*.atlassian.netwildcard trusts any Atlassian Cloud site; for stored credentials paired with user-controlled base URLs, prefer an exact-host allowlist.- Any caller with the gateway token can use any provider credential it supplies. The OpenNomos backend must scope credentials to the user or integration and validate integration base URLs.
- Provider credentials are request-scoped and not persisted or logged. Configure
the reverse proxy not to log
AuthorizationorX-PM-Provider-Credential. - Upstream error bodies are hidden by default. Set
PM_GATEWAY_EXPOSE_UPSTREAM_ERRORS=1only for debugging. - Descriptions may be
text/plainortext/html. Sanitize HTML before rendering it in a browser. - Apply request-size and rate limits at the proxy. Provider requests time out
after
PM_GATEWAY_PROVIDER_TIMEOUT_SECONDS(default 30). - Run the container with a read-only filesystem, no added capabilities, and
no-new-privileges; the image runs as uid 10001. - Report vulnerabilities using the process in
SECURITY.md.
Configuration
| Variable | Default | Purpose |
|---|---|---|
PM_GATEWAY_API_TOKEN |
required | Bearer token for the HTTP service. |
PM_GATEWAY_HOST |
127.0.0.1 |
HTTP listen address. |
PM_GATEWAY_PORT |
8080 |
HTTP listen port. |
PM_GATEWAY_ALLOWED_PROVIDER_HOSTS |
empty | Comma-separated host allowlist; supports *.example.com. Required for any host not covered by the built-in Jira Cloud, Plane Cloud, Microsoft Graph, monday.com, and Asana defaults. |
PM_GATEWAY_ALLOW_INSECURE_HTTP |
off | Allow http:// provider URLs. Use only for local development. |
PM_GATEWAY_PROVIDER_TIMEOUT_SECONDS |
30 |
Timeout for provider HTTP requests. |
PM_GATEWAY_MONDAY_MAX_ITEMS |
10000 |
Maximum items fetched from one monday.com board listing (0 disables the cap). |
PM_GATEWAY_MONDAY_API_VERSION |
unset | Optional API-Version header sent to monday.com; the API default is used when unset. |
PM_GATEWAY_ASANA_MAX_ITEMS |
10000 |
Maximum items fetched from one Asana listing (0 disables the cap). |
PM_GATEWAY_CLICKUP_MAX_ITEMS |
10000 |
Maximum items fetched from one ClickUp List listing (0 disables the cap). |
PM_GATEWAY_MAX_BODY_BYTES |
1048576 |
Maximum request body accepted by the HTTP service. |
PM_GATEWAY_EXPOSE_UPSTREAM_ERRORS |
off | Include bounded upstream error text in responses. |
License
Apache License 2.0. See LICENSE.
Metadata
Release files for opennomos-pm-gateway 0.1.0a5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opennomos_pm_gateway-0.1.0a5.tar.gz | 1.7 MB | With provenance | Details for opennomos_pm_gateway-0.1.0a5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opennomos_pm_gateway-0.1.0a5-py3-none-any.whl | Python 3 | none | any | Details for opennomos_pm_gateway-0.1.0a5-py3-none-any.whl |
Total release size: 8.2 MB
Release files / opennomos_pm_gateway-0.1.0a5.tar.gz
| Download URL | opennomos_pm_gateway-0.1.0a5.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b07f85752e31df8c14cfdc4b091e54373484d234e3e1cafb0f21891bbb0a7caf
|
|
BLAKE2b-256 checksum How to use checksums |
28f6695cc28c36fd85fcc3c9b2e0cb78f0cf497380bb574df76316d2654bd974
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / opennomos_pm_gateway-0.1.0a5-py3-none-any.whl
| Download URL | opennomos_pm_gateway-0.1.0a5-py3-none-any.whl |
|---|---|
| Size | 6.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
debc92f7330f8ed14c1ab9d33214106ce56fffa5de54bb260626e3c71fb40486
|
|
BLAKE2b-256 checksum How to use checksums |
c3f6b5bffcbc2b19c0b5501798a90cb9b6d13207cc6be7fea868c718938b22fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for opennomos-pm-gateway 0.1.0a5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for opennomos_pm_gateway-0.1.0a5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.