glourencoffee / pycvm

Python library for processing data from CVM
MIT License
2 stars 0 forks source link

Export names from library's module #2

Closed glourencoffee closed 2 years ago

glourencoffee commented 2 years ago

Description

As a library user, I want to use classes provided by it without having to type the packages they belong to.

Challenge

I have to specify package names, which makes code verbose and cumbersome.

Benefit

Ease of use

Acceptance criteria

Additional context

I have to use the library like this:

if balance_type == cvm.datatypes.BalanceType.CONSOLIDATED:
    ...

I want to use it like this:

if balance_type == cvm.BalanceType.CONSOLIDATED:
    ...