Skip to content

Stability and versioning

Read this page when you want to know how much a crew-dcs upgrade can break your scripts.

The short version

  • crew-dcs is at version 2.5.0, and its package classifier says "Development Status :: 3 - Alpha". A classifier is a label in the package's metadata (the information stored with the package) that says what kind of project it is. Take this one as the honest label: the library is used and maintained, and it is still changing.
  • Its stated rule is semantic versioning: a numbering scheme where a change to the first number can break your code, the second adds things, and the third fixes things.
  • That rule has not been kept strictly. Version 2.5.0, a minor release, contained breaking changes. They are listed below.
  • Domo's own APIs are largely undocumented and can change without notice. That is a risk no library version number can remove.

What the project says it promises

The repository's own standards describe the import surface (the names you can import from crew_dcs) as a contract:

  • Adding a name is a minor bump (2.5.0 to 2.6.0).
  • Removing or renaming a name, changing a function's signature (its name and the arguments it accepts), changing what a factory function returns, or changing an entity's entity_type is a major bump (2.5.0 to 3.0.0). A factory is a function that builds and returns an object. entity_type is the label an entity class carries so crew-dcs can tell what kind of Domo object it represents.

The repository also has a workflow that is meant to bump the version and create a tag on each merge, based on a label on the change: major, feat (minor), and fix, patch or refactor (patch).

What happened in practice

Only two versions are tagged, 2.4.4 and 2.5.0, and both tags were made by hand, not by that workflow. About 300 changes were merged between them, and there are no GitHub release notes. So the labels did not gate the version number.

Version 2.5.0 was a minor bump that included breaking changes, among them:

  • crew_dcs.classes.DomoDataflow.core.DomoDataflows was removed (#1635). There were two classes with that name. The one in core.py is gone. Import DomoDataflows from crew_dcs.classes.DomoDataflow instead.
  • SourceFunction.from_code now raises SourceParseError on code it can't parse. It used to return an empty list.
  • Domo entity objects now compare and hash by id. Code that relied on the old == or hash() behaviour, for example by putting entities in a set, can behave differently.
  • Some calls that used to succeed now raise, where the old behaviour wrote something you did not ask for: DataSet sharing at an unsupported level, and set_role_grants(is_replace=False). See the Security section of the Changelog.

See Changelog for the rest.

Deprecated names

The code has a way to retire a name: keep the old one as an alias (a second name for the same function) that shows a DeprecationWarning and still runs, and says what to use instead. Examples today are update_card_pages (use replace_card_pages) and DomoFilesetAccessController.add_owners (use transfer_owner). Python hides DeprecationWarning in most scripts. To show it without stopping your script, run:

uv run python -W default::DeprecationWarning my_script.py

What to depend on

crew-dcs has three layers, described in How crew-dcs is organised: crew_dcs.auth, crew_dcs.routes and crew_dcs.classes.

Auth (crew_dcs.auth) holds the credential objects, such as DomoTokenAuth. They are small and every script uses them.

Route functions (crew_dcs.routes) are the closest to Domo. Each makes one Domo API call, and its job ends there. If Domo changes an API, a route is where the change shows up first.

Classes (crew_dcs.classes) are built on routes and give you objects with methods, such as DomoDataset. They are more convenient, and also have a larger surface, so more that can change between versions.

Names that start with an underscore are internal. They are left out of this site's reference, and you should not rely on them.

Practical advice:

  • Read Changelog before any upgrade, including a minor or patch one, given the history above.
  • Pin the exact version you have tested. With uv, the uv.lock file in your project records it, so nothing changes until you run the upgrade command in Install. With pip, write crew-dcs==2.5.0 (your tested version) in requirements-datacrew.txt.
  • After an upgrade, run your script against a test Domo instance before you run it against production.

Gaps

  • Only two versions are tagged, and there are no GitHub release notes. Two tags are too few to show whether the versioning rule is followed from now on.
  • The alias period is not written down. The code keeps deprecated names, but no rule says for how many releases.
  • There is no stable or beta label yet. The Alpha classifier is the declared status.
  • Domo-side changes are outside the policy. If Domo changes how an endpoint behaves, crew-dcs may need a fix release even when its own names don't change.

If any of this matters for your decision, ask in the community Slack.