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 33from .orders import OrdersAPI
44from .subscriptions import SubscriptionsAPI
55from planet .http import Session
6+ from planet .__version__ import __version__
67
7- SYNC_CLIENT_AGENT = "python-sdk-sync"
8+ SYNC_CLIENT_X_PLANET_APP = "python-sdk-sync"
89
910
1011class Planet :
@@ -42,8 +43,12 @@ class Planet:
4243
4344 def __init__ (self , session : Optional [Session ] = None ) -> None :
4445 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+ })
4752
4853 self .data = DataAPI (self ._session )
4954 self .orders = OrdersAPI (self ._session )
You can’t perform that action at this time.
0 commit comments