Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Add global configuration object #96

Description

@mjclawar

Description

For authentication, we currently have API_CREDENTIALS object which can be updated with authentication.authenticate_to_api. However, it would be nice to be able to specify a max timeout for an application globally instead of for each API call. This could be achieved potentially by adding a new object, _STRATODEM_API_CONFIG, which has entries for timeout (and potentially headers, or other configuration), then adding methods such as configuration.set_default_timeout that modify this object, which would be used as default if a user did not pass in a method-specific timeout.

User Story

As an API user with many queries, I want to be able to set a timeout for all of my queries at once instead of adding a keyword argument to each individually.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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