Skip to content

Re-export public tools in submodule directories #239

@nmaarnio

Description

@nmaarnio

Currently, users need to access the tools like this:
from eis_toolkit.raster_processing.resampling import resample

It would be more convenient (and common in other libraries) to import like this:
from eis_toolkit.raster_processing import resample

This can be achieved by re-exporting the public functions in __init__.py files of each submodule directory (e.g. raster_processing). For example:
from .resampling import resample

It's also worth considering for the 1.0.0 release if the files with source code should be prefixed with _ to indicate they are not meant to be imported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmodificationChange to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions