Skip to content

Move all imports up one module#41

Merged
alanocallaghan merged 1 commit intoqupath:mainfrom
alanocallaghan:module-exports
Oct 20, 2025
Merged

Move all imports up one module#41
alanocallaghan merged 1 commit intoqupath:mainfrom
alanocallaghan:module-exports

Conversation

@alanocallaghan
Copy link
Contributor

This means that instead of imports like this:

from qubalab.objects.object_type import ObjectType

we can do

from qubalab.objects import ObjectType

As most of the bottom-level submodules are extremely simple (many contain a single public class definition and private methods), this should make the interface easier to understand.

Users can still access private methods:

from qubalab.objects.geojson import _geojson_from_string

In future we could investigate hiding the submodules so that we have a clear public API without access to private methods.

@alanocallaghan alanocallaghan merged commit 02ad15b into qupath:main Oct 20, 2025
3 checks passed
@alanocallaghan alanocallaghan deleted the module-exports branch October 20, 2025 12:11
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.

1 participant