mapillary / mapillary-python-sdk

A Python 3 library built on the Mapillary API v4 to facilitate retrieving and working with Mapillary data.
MIT License
39 stars 15 forks source link

[Request Mechanism] Client & Auth Changes, Resolves Extended Req#1 Changes #42

Closed Rubix982 closed 3 years ago

Rubix982 commented 3 years ago

[Request Mechanism] Client & Auth Changes, Resolves Extended Req#1 Changes

Pull Request Type

Purpose

Explore more options with Client, letting it integrate global context, as well as smaller session context

Why?

Preventing API being called with invalid tokens

Feedback required over

Feedback required when

Whenever is fine

Mentions

>>> import mapillary as mly
>>> mly.greetings('saif')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/saif/MLH/mapillary-python-sdk/mapillary/models/auth.py", line 27, in wrapper
    raise AuthError("Function called without setting the access token")
models.exceptions.AuthError: AuthError: An exception occured, "Function called without setting the access token"
Rubix982 commented 3 years ago

Noted, @gmelodie . :+1: