← Winnitude! Search  ·  Reader Mode (875 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 10 LINKS

Enhancement: Global configuration for max_retries, obey_rate_limit, perhaps others · Issue #1890 · python-gitlab/python-gitlab

Repository navigation

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


New issue

New issue

Closed as not planned

Closed as not planned
Enhancement: Global configuration for max_retries, obey_rate_limit, perhaps others #1890 Labels
enhancement

stale

Description

@swarren's profile swarren opened on Feb 10, 2022

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

    Labels


    enhancement

    stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions