Skip to content

Dynamically build Config from client attributes #176

@gadomski

Description

@gadomski

As mentioned in #163 (review), I'm a little unhappy with how Config has some client-specific attributes, but not all. IMO it'd be better architecture to have a "global" Config object that exposes client-specific configuration attributes via some sort of dynamic, namespaced mechanism. Sorta like:

class Config:
    ...

for client_class in CLIENT_CLASSES:
    Config.add_client_class(client_class)  # This would add attributes from each client in a namespace, e.g. `Config.http_timeout`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions