Skip to content

context for gitlab.Gitlab #371

Closed
Closed

Description

@gsemet

Hello. It would be appreciable to have a context manager for Gitlab() class, and so be able to do:

with gitlab.Gitlab(gitlab_url, gitlab_token) as gl:
   ...

Activity

  1. gpocentek commented on Nov 15, 2017

    @gpocentek
    Contributor

    This should not be to complex to implement but I'm not sure I see the point. Could you describe a use case?

    Thanks!

  2. gsemet commented on Nov 15, 2017

    @gsemet
    Author

    Like the Session api of request. No other advanced use case

  3. added this to the v1.3 milestone on Jan 9, 2018
  4. gsemet commented on Feb 5, 2018

    @gsemet
    Author

    thx !

  5. locked as resolved and limited conversation to collaborators on Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions