meshtrade 1.0.1__py3-none-any.whl → 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of meshtrade might be problematic. Click here for more details.

@@ -2,8 +2,7 @@
2
2
 
3
3
  from .config import (
4
4
  ACCESS_TOKEN_PREFIX,
5
- AUTHORIZATION_HEADER_KEY,
6
- BEARER_PREFIX,
5
+ API_KEY_HEADER,
7
6
  COOKIE_HEADER_KEY,
8
7
  DEFAULT_GRPC_PORT,
9
8
  DEFAULT_GRPC_URL,
@@ -17,10 +16,9 @@ __all__ = [
17
16
  "DEFAULT_GRPC_URL",
18
17
  "DEFAULT_GRPC_PORT",
19
18
  "DEFAULT_TLS",
20
- "AUTHORIZATION_HEADER_KEY",
19
+ "API_KEY_HEADER",
21
20
  "COOKIE_HEADER_KEY",
22
21
  "GROUP_HEADER_KEY",
23
- "BEARER_PREFIX",
24
22
  "ACCESS_TOKEN_PREFIX",
25
23
  "create_auth_metadata",
26
24
  "GRPCClient",
@@ -7,10 +7,9 @@ DEFAULT_GRPC_PORT = 443
7
7
  DEFAULT_TLS = True
8
8
 
9
9
  # gRPC metadata constants
10
- AUTHORIZATION_HEADER_KEY = "authorization"
10
+ API_KEY_HEADER = "x-api-key"
11
11
  COOKIE_HEADER_KEY = "cookie"
12
12
  GROUP_HEADER_KEY = "x-group"
13
- BEARER_PREFIX = "Bearer "
14
13
  ACCESS_TOKEN_PREFIX = "AccessToken="
15
14
 
16
15
 
@@ -18,13 +17,13 @@ def create_auth_metadata(api_key: str, group: str) -> list[tuple[str, str]]:
18
17
  """Create authentication metadata for gRPC requests.
19
18
 
20
19
  Args:
21
- api_key: The API key (without Bearer prefix)
20
+ api_key: The API key
22
21
  group: The group resource name in format groups/{group_id}
23
22
 
24
23
  Returns:
25
24
  List of metadata header tuples for authentication
26
25
  """
27
26
  return [
28
- (AUTHORIZATION_HEADER_KEY, f"{BEARER_PREFIX}{api_key}"),
27
+ (API_KEY_HEADER, api_key),
29
28
  (GROUP_HEADER_KEY, group), # Send full groups/uuid format in header
30
29
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshtrade
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Integration SDK for Mesh API Services
5
5
  Author-email: Bernard Bussy <bernard@meshtrade.co>
6
6
  License: LicenseRef-My-Custom-License
@@ -1,8 +1,8 @@
1
1
  buf/validate/validate_pb2.py,sha256=o1fP90GZz_DPMchPV02HBcVus2k6HzqgBDnbBlFfA3Q,153929
2
2
  buf/validate/validate_pb2.pyi,sha256=fUPIBbzonV2mNAClFBYe0BBALoKeFoR_oCYordTjyy0,30793
3
3
  meshtrade/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- meshtrade/common/__init__.py,sha256=VETjILxahtkNgHygm5fvRmVAm7faL4DWp3SRmSnIzks,615
5
- meshtrade/common/config.py,sha256=E-71swWWX8EPjmjHpLl0i5eb6TcG_Ejf85qG3fEp_1E,904
4
+ meshtrade/common/__init__.py,sha256=E0nRoma1sWcEYNqKfr6TI4tL7JDh7MlLeEfne5HKzIM,555
5
+ meshtrade/common/config.py,sha256=X9KPOirRqWOdpqoFyhHVXC4HgmZ9voI8vCjetQYSaH0,810
6
6
  meshtrade/common/grpc_client.py,sha256=xb-E1uFSH_gC1P8CMn-oRzASgcHHfvGoH5wBR0bzYeU,6950
7
7
  meshtrade/compliance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  meshtrade/compliance/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -185,7 +185,7 @@ meshtrade/wallet/account/v1/service_options_meshpy.py,sha256=ROVvFr-sub9TMtzHO-s
185
185
  meshtrade/wallet/account/v1/service_pb2.py,sha256=4huN7EQVoNpqMf5UK9iIyAKUGhWPj-a9OdC2soqXxlQ,5208
186
186
  meshtrade/wallet/account/v1/service_pb2.pyi,sha256=PL7ANYkhNYTrC8fXv9Pjfz2x-IeUj8HnytTAn4wnvNU,2132
187
187
  meshtrade/wallet/account/v1/service_pb2_grpc.py,sha256=lTykth2v98aluqtqaID78HJ6dubXqI0ShpvfFmu3_pY,9480
188
- meshtrade-1.0.1.dist-info/METADATA,sha256=fB1HmcSoWBxGnJfv-CLRFhlIBMacFejg5dJ687bTgQ0,3006
189
- meshtrade-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
190
- meshtrade-1.0.1.dist-info/top_level.txt,sha256=NV0mf_yWXSvBwj2_q5aSz2hN5hQF0QypAiJwV4schJI,14
191
- meshtrade-1.0.1.dist-info/RECORD,,
188
+ meshtrade-1.0.2.dist-info/METADATA,sha256=AV2U9x5QCcvWaA7dkOz1fO-xv04jDm1veO1MfpFRb8I,3006
189
+ meshtrade-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
190
+ meshtrade-1.0.2.dist-info/top_level.txt,sha256=NV0mf_yWXSvBwj2_q5aSz2hN5hQF0QypAiJwV4schJI,14
191
+ meshtrade-1.0.2.dist-info/RECORD,,