Skip to content

What should the API look like? #18

@mfisher87

Description

@mfisher87

The current API is, IMO, not very pythonic. Singleton classes are just generally icky. What about a stateful module? One thing singleton classes make easier is resetting state; just blow away the instance and reinstantiate. A stateful module would require a reset method which we constantly update to reset each piece of state the module holds. Maybe a hybrid approach with a module providing functions that use the singleton class under the hood?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions