polysimulator 0.2.0__tar.gz → 0.2.1__tar.gz

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.
Files changed (23) hide show
  1. {polysimulator-0.2.0 → polysimulator-0.2.1}/PKG-INFO +7 -3
  2. {polysimulator-0.2.0 → polysimulator-0.2.1}/README.md +4 -0
  3. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/__init__.py +1 -1
  4. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/_http.py +2 -2
  5. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/aio.py +2 -2
  6. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/client.py +2 -2
  7. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/sse.py +2 -2
  8. {polysimulator-0.2.0 → polysimulator-0.2.1}/pyproject.toml +3 -3
  9. {polysimulator-0.2.0 → polysimulator-0.2.1}/.gitignore +0 -0
  10. {polysimulator-0.2.0 → polysimulator-0.2.1}/LICENSE +0 -0
  11. {polysimulator-0.2.0 → polysimulator-0.2.1}/NOTICE +0 -0
  12. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_clob_client/__init__.py +0 -0
  13. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_clob_client/client.py +0 -0
  14. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_clob_client/clob_types.py +0 -0
  15. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_clob_client/constants.py +0 -0
  16. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_clob_client/exceptions.py +0 -0
  17. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_clob_client/order_builder/__init__.py +0 -0
  18. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_clob_client/order_builder/constants.py +0 -0
  19. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/constants.py +0 -0
  20. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/exceptions.py +0 -0
  21. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/pagination.py +0 -0
  22. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/updown.py +0 -0
  23. {polysimulator-0.2.0 → polysimulator-0.2.1}/polysim_sdk/ws.py +0 -0
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: polysimulator
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python SDK for the PolySimulator paper-trading API, with py-clob-client drop-in parity
5
5
  Project-URL: Homepage, https://polysimulator.com
6
- Project-URL: Documentation, https://api.polysimulator.com/docs
7
- Project-URL: Repository, https://github.com/Bavariance/polysimulator
6
+ Project-URL: Documentation, https://docs.polysimulator.com
7
+ Project-URL: API Reference, https://api.polysimulator.com/docs
8
8
  Author: Bavariance
9
9
  License-Expression: Apache-2.0
10
10
  License-File: LICENSE
@@ -56,6 +56,10 @@ Targets Python 3.10+.
56
56
  pip install polysimulator
57
57
  ```
58
58
 
59
+ > The install name is **`polysimulator`**; the import name stays **`polysim_sdk`**
60
+ > (like `pip install pillow` → `import PIL`). The older `polysim-sdk` name is now a
61
+ > thin alias that installs `polysimulator` for you, so existing installs keep working.
62
+
59
63
  From a checkout of this directory (for development):
60
64
 
61
65
  ```bash
@@ -24,6 +24,10 @@ Targets Python 3.10+.
24
24
  pip install polysimulator
25
25
  ```
26
26
 
27
+ > The install name is **`polysimulator`**; the import name stays **`polysim_sdk`**
28
+ > (like `pip install pillow` → `import PIL`). The older `polysim-sdk` name is now a
29
+ > thin alias that installs `polysimulator` for you, so existing installs keep working.
30
+
27
31
  From a checkout of this directory (for development):
28
32
 
29
33
  ```bash
@@ -49,4 +49,4 @@ __all__ = [
49
49
  "ValidationError",
50
50
  ]
51
51
 
52
- __version__ = "0.2.0"
52
+ __version__ = "0.2.1"
@@ -196,7 +196,7 @@ class SyncTransport:
196
196
  timeout: float = DEFAULT_TIMEOUT_SECONDS,
197
197
  max_retries: int = DEFAULT_MAX_RETRIES,
198
198
  floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
199
- user_agent: str = "polysim-sdk/0.2.0",
199
+ user_agent: str = "polysim-sdk/0.2.1",
200
200
  ) -> None:
201
201
  self.base_url = base_url.rstrip("/")
202
202
  self._max_retries = max_retries
@@ -307,7 +307,7 @@ class AsyncTransport:
307
307
  timeout: float = DEFAULT_TIMEOUT_SECONDS,
308
308
  max_retries: int = DEFAULT_MAX_RETRIES,
309
309
  floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
310
- user_agent: str = "polysim-sdk/0.2.0",
310
+ user_agent: str = "polysim-sdk/0.2.1",
311
311
  ) -> None:
312
312
  self.base_url = base_url.rstrip("/")
313
313
  self._max_retries = max_retries
@@ -49,7 +49,7 @@ class AsyncPolySimClient:
49
49
  timeout: float = DEFAULT_TIMEOUT_SECONDS,
50
50
  max_retries: int = DEFAULT_MAX_RETRIES,
51
51
  floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
52
- user_agent: str = "polysim-sdk/0.2.0",
52
+ user_agent: str = "polysim-sdk/0.2.1",
53
53
  ) -> None:
54
54
  resolved_key = api_key or os.environ.get("POLYSIM_API_KEY")
55
55
  if not resolved_key:
@@ -607,7 +607,7 @@ class AsyncPolySimClient:
607
607
  timeout: float = DEFAULT_TIMEOUT_SECONDS,
608
608
  max_retries: int = DEFAULT_MAX_RETRIES,
609
609
  floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
610
- user_agent: str = "polysim-sdk/0.2.0",
610
+ user_agent: str = "polysim-sdk/0.2.1",
611
611
  ) -> dict[str, Any]:
612
612
  """``POST /v1/keys/bootstrap`` — JWT-authed first-key mint, no key needed.
613
613
 
@@ -43,7 +43,7 @@ class PolySimClient:
43
43
  timeout: float = DEFAULT_TIMEOUT_SECONDS,
44
44
  max_retries: int = DEFAULT_MAX_RETRIES,
45
45
  floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
46
- user_agent: str = "polysim-sdk/0.2.0",
46
+ user_agent: str = "polysim-sdk/0.2.1",
47
47
  ) -> None:
48
48
  resolved_key = api_key or os.environ.get("POLYSIM_API_KEY")
49
49
  if not resolved_key:
@@ -713,7 +713,7 @@ class PolySimClient:
713
713
  timeout: float = DEFAULT_TIMEOUT_SECONDS,
714
714
  max_retries: int = DEFAULT_MAX_RETRIES,
715
715
  floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
716
- user_agent: str = "polysim-sdk/0.2.0",
716
+ user_agent: str = "polysim-sdk/0.2.1",
717
717
  ) -> dict[str, Any]:
718
718
  """``POST /v1/keys/bootstrap`` — mint the FIRST key from a Supabase JWT.
719
719
 
@@ -170,7 +170,7 @@ def spot_stream(
170
170
  backoff = reconnect_min_interval
171
171
  attempts = 0
172
172
  url = resolve_url(client.base_url, "/prices/stream")
173
- headers = _sse_headers(client._api_key, "polysim-sdk/0.2.0")
173
+ headers = _sse_headers(client._api_key, "polysim-sdk/0.2.1")
174
174
  with httpx.Client(timeout=_stream_timeout()) as http:
175
175
  while True:
176
176
  try:
@@ -228,7 +228,7 @@ async def aspot_stream(
228
228
  backoff = reconnect_min_interval
229
229
  attempts = 0
230
230
  url = resolve_url(client.base_url, "/prices/stream")
231
- headers = _sse_headers(client._api_key, "polysim-sdk/0.2.0")
231
+ headers = _sse_headers(client._api_key, "polysim-sdk/0.2.1")
232
232
  async with httpx.AsyncClient(timeout=_stream_timeout()) as http:
233
233
  while True:
234
234
  try:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "polysimulator"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Python SDK for the PolySimulator paper-trading API, with py-clob-client drop-in parity"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -39,8 +39,8 @@ dev = [
39
39
 
40
40
  [project.urls]
41
41
  Homepage = "https://polysimulator.com"
42
- Documentation = "https://api.polysimulator.com/docs"
43
- Repository = "https://github.com/Bavariance/polysimulator"
42
+ Documentation = "https://docs.polysimulator.com"
43
+ "API Reference" = "https://api.polysimulator.com/docs"
44
44
 
45
45
  [tool.hatch.build.targets.wheel]
46
46
  packages = ["polysim_sdk", "polysim_clob_client"]
File without changes
File without changes
File without changes