gologinapp / pygologin

REST API provides programmatic access to GoLogin App. Create a new browser profile, get a list of all browser profiles, add a browser profile and running
Other
61 stars 42 forks source link

Add context manager #83

Closed kaliiiiiiiiii closed 3 months ago

kaliiiiiiiiii commented 4 months ago

allow smth like:

gl = GoLogin({
            'profile_id': self.profile_id,
            'token': gologin_token,
            'port': getRandomPort(),
        })
with gl as gl:
    # ... connect using some framework

to handle shutdown & exceptions nicely