Skip to content

Add named CVI factory - #119

Merged
AP6YC merged 3 commits into
developfrom
add-cvi-factory
Sep 29, 2026
Merged

AP6YC merged 3 commits into
developfrom
add-cvi-factory

Conversation

@NiklasMelton

@NiklasMelton NiklasMelton commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add cvi.create_cvi(name, **kwargs) for constructing a fresh index from its case-insensitive short name.
  • Derive the lookup from the existing MODULES list and preserve cvi.CVI as the public base class.
  • Document named construction and test all ten indices, constructor forwarding, and invalid names.

Closes #111.

Verification

  • python3 -m pytest -q -o log_cli=false — 809 passed, 140 skipped.
  • Sphinx dummy build with the available extensions — succeeded.

@NiklasMelton
NiklasMelton requested a review from AP6YC September 25, 2026 05:21
Comment thread docs/source/api.rst

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a big usage change, but I'm totally good with the pattern.

Comment thread docs/source/guide.rst

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This usage makes sense.

Comment thread src/cvi/__init__.py

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward splatting strategy.

@AP6YC
AP6YC merged commit b81ea4a into develop Sep 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a CVI factory

2 participants