Skip to content

Enhancement: Global configuration for max_retries, obey_rate_limit, perhaps others #1890

Open
@swarren

Description

@swarren

Description of the problem, including code/CLI snippet

My reading of the API docs and implementation indicate that HTTP-oriented parameters such as obey_rate_limit and max_retries must be specified separately for each API invocation. It would be nice if a "default" set of such parameters could be passed in when creating the Gitlab object, to avoid the need to pass the parameters on every subsequent API call.

Expected Behavior

Can set values such as max_retries once when initializing the library.

Actual Behavior

Need to pass those values to each get API call.

Specifications

  • python-gitlab version: 1.15.0 (although I believe the latest git is the same)
  • API version you are using (v3/v4): Whichever is the library default.
  • Gitlab server version (or gitlab.com): gitlab.com

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions