Integrator guide¶
This section is for developers adding PostProject to a host application, plugin, service, or pipeline tool.
The fastest successful integration is usually smaller than the whole PostProject feature set. Begin with durable identity and media resolution, prove that the host can reopen the same production objects, then add richer knowledge only when the application has a use for it.
Integration depths¶
An integration can stop at any depth that solves the host’s problem. Each depth builds on the one before it, and each already pays off on its own:
flowchart TD
d0["<b>Alongside the application</b><br/>CLI and pipeline scripts maintain the production;<br/>the application itself is unchanged"]
d1["<b>1 · Identity</b><br/>open a production, import media, store references<br/>to assets and representations in the host document"]
d2["<b>2 · Resolution</b><br/>media roots, relinking with explicit confirmation,<br/>verification, sequences, spans, and packages"]
d3["<b>3 · Production knowledge</b><br/>external identifiers, metadata, provenance,<br/>dependencies, artifact staleness"]
d4["<b>4 · Live coordination</b><br/>revision feed and observers, jobs and workers"]
oaio["<b>OpenAssetIO host</b><br/>resolves and publishes through the<br/>PostProject Manager without calling PostProject"]
d0 -- "references survive moves<br/>between applications" --> d1
d1 -- "offline media found again,<br/>relinked once for all" --> d2
d2 -- "trace media origins,<br/>tell what is current" --> d3
d3 -- "react to other tools,<br/>hand off work" --> d4
oaio -.-> d1
oaio -.-> d2
The labels on the arrows name what the host gains by going one depth further. The steps below follow the same order.
Recommended integration path¶
1. Install and open a production¶
Choose a public surface:
C — the native ABI and lowest common denominator;
C++17 — convenience wrapper over the native API;
Python — binding over the C ABI;
CLI — useful for scripting, diagnostics, fixtures, and integration tests.
Start with Install a release without Cargo, then choose C quickstart, C++ quickstart, or Python quickstart. An application shipped as a Flatpak builds PostProject as a module of its manifest; see Package PostProject in a Flatpak.
2. Create or open media identities¶
Follow Create a production and import media. It also shows how to reopen a production, commit or roll back a transaction explicitly, and handle errors on each surface. Store the returned PostProject identity in the host’s own project/object model where appropriate, ideally as a host-object binding.
Do not substitute a filesystem path for that identity. The entire portability model depends on those being different concepts.
3. Make media resolution part of host behavior¶
Implement Media roots and resolution before building elaborate metadata features. A useful integration should survive media moving to a different mount or workstation.
The host should surface ambiguity rather than silently accepting the first candidate. Fingerprints, verification, and inventory covers what to do when content itself changes: recording a new fingerprint, verifying content during resolution, and scanning storage for media the production does not know yet.
When several hosts share a production, Adopt media already known to a production shows how a host finds an existing asset by current locator or fingerprint evidence before creating another logical asset. Use Coherent reads and scoped edits for read–decide–edit flows and Base revisions and semantic conflicts for writes based on state another local process may change. Share one production between local applications combines those operations into one local multi-application workflow. Native host actions and cleanup shows installed C/C++ ownership, terminal transactions and retained sequence decisions in real host adapters.
4. Support the media structures your application actually uses¶
If the host handles VFX or camera media, continue with Compound-media integration so sequences, spans, packages, and proxies remain one representation each instead of becoming one logical asset per file.
5. Add production knowledge incrementally¶
Use the pieces that solve real host problems:
External identifiers for identifiers owned by other systems;
Metadata vocabularies for structured, typed metadata;
Provenance integration for activity history and input snapshots;
Dependency integration for files that reference other production objects;
Artifacts and staleness for knowing whether a generated artifact is still current;
Jobs and workers when the host coordinates durable production work;
Reference local executor as an example of the execution boundary, not as a requirement;
Bounded queries and cursors for scalable enumeration and traversal;
Consuming the revision feed for reacting to changes, including changes made by other processes;
Exchange portable production knowledge for development checkpoint and passive catch-up workflows;
Publishing through OpenAssetIO when an OpenAssetIO host publishes rendered media through the PostProject Manager.
Existing 0.8 integrations should follow Move an integration from 0.8 to 0.9 for the removed forms and runnable task comparisons.
Every guide shows every surface¶
Each task guide shows the operation in C, C++, Python, Rust, and the CLI. Choose a language with the tabs or with the Code selector in the sidebar; the choice applies to every example on the site. Where a surface deliberately lacks an operation, the tab says so and names the alternative.
The listings are extracts of example programs that CI compiles and runs against an installed package, so they cannot drift from the public interfaces. CI also checks that every public C function, C++ member function, and Python method appears in at least one of those programs. The complete quickstart programs are collected in Compiled and tested examples.
Integration rules that matter early¶
A few rules prevent most architectural mistakes:
PostProject identity is internal production identity. Do not pretend a PostProject UUID is a UMID, EIDR, camera ID, or another external scheme.
Preserve external identifiers exactly. Store their scheme and value rather than translating them into the internal identity space.
Never silently choose an ambiguous relink candidate. Ambiguity is a meaningful result.
Perform mutations in explicit transactions. A transaction groups one semantic production change and its revision history.
Advance a revision cursor only after a complete revision has been processed. This keeps consumers restartable.
Release owned C handles. Treat the ownership rules in the native API as part of the contract.
Do not infer relationships that were not recorded. An activity connecting media does not automatically mean “revision,” “variant,” or “alternative.”
Separate semantic documentation from API lookup¶
Use the concept pages when deciding what an operation means. Use generated API reference when deciding how to call it.
For example:
Assets, representations, resources, and locators explains the representation model.
Compound-media integration shows integration workflow.
the generated C/C++/Python reference gives exact signatures and ownership details.
This separation keeps the conceptual contract readable while allowing API reference to remain precise.
Rust is not required for downstream integration¶
PostProject is implemented in Rust, but an installed native consumer should not need Cargo or Rust tooling. The public native boundary is the C ABI, with C++ and Python layers built on top of it.
If you are changing PostProject itself rather than integrating it, use Contributor guide.