Skip to content

Simlplify import for resources #43

@FlorianK13

Description

@FlorianK13

Thanks for your work - pycgmes is very helpful in a project that I'm working on right now. I think one small change in the codebase might help to simplify the import of classes:

Current state

from pycgmes.resources.BaseVoltage import BaseVoltage
from pycgmes.resources.ConnectivityNode import ConnectivityNode
from pycgmes.resources.EquipmentContainer import EquipmentContainer
from pycgmes.resources.TopologicalNode import TopologicalNode  

-> One new import line for every class

Improvement

from pycgmes.resources import BaseVoltage, ConnectivityNode, EquipmentContainer, TopologicalNode

This could be achieved by importing all classes in the __init__.py file in the resources folder. If this is of interest, I can create the corresponding Pull Request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions