File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 3
3
from .orders import OrdersAPI
4
4
from .subscriptions import SubscriptionsAPI
5
5
from planet .http import Session
6
+ from planet .__version__ import __version__
6
7
7
- SYNC_CLIENT_AGENT = "python-sdk-sync"
8
+ SYNC_CLIENT_X_PLANET_APP = "python-sdk-sync"
8
9
9
10
10
11
class Planet :
@@ -42,8 +43,12 @@ class Planet:
42
43
43
44
def __init__ (self , session : Optional [Session ] = None ) -> None :
44
45
self ._session = session or Session ()
45
- self ._session ._client .headers .update (
46
- {"X-Planet-App" : SYNC_CLIENT_AGENT })
46
+ self ._session ._client .headers .update ({
47
+ "X-Planet-App" :
48
+ SYNC_CLIENT_X_PLANET_APP ,
49
+ "User-Agent" :
50
+ f"planet-client-python/{ __version__ } /sync"
51
+ })
47
52
48
53
self .data = DataAPI (self ._session )
49
54
self .orders = OrdersAPI (self ._session )
You can’t perform that action at this time.
0 commit comments