sharpapi 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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sharpapi
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Official Python SDK for the SharpAPI real-time sports betting odds API
5
5
  Project-URL: Homepage, https://sharpapi.io
6
6
  Project-URL: Documentation, https://docs.sharpapi.io/sdks/python
@@ -118,7 +118,6 @@ client.sports.list()
118
118
  client.leagues.list(sport="basketball")
119
119
  client.sportsbooks.list()
120
120
  client.events.list(league="nba", live=True)
121
- client.events.search("Lakers")
122
121
 
123
122
  # Account
124
123
  client.account.me() # Tier, limits, features
@@ -85,7 +85,6 @@ client.sports.list()
85
85
  client.leagues.list(sport="basketball")
86
86
  client.sportsbooks.list()
87
87
  client.events.list(league="nba", live=True)
88
- client.events.search("Lakers")
89
88
 
90
89
  # Account
91
90
  client.account.me() # Tier, limits, features
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "sharpapi"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Official Python SDK for the SharpAPI real-time sports betting odds API"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -51,7 +51,7 @@ from .models import (
51
51
  from .streaming import EventStream
52
52
  from ._utils import american_to_decimal, american_to_probability, decimal_to_american
53
53
 
54
- __version__ = "0.2.0"
54
+ __version__ = "0.2.1"
55
55
 
56
56
  __all__ = [
57
57
  # Clients
@@ -442,11 +442,6 @@ class _AsyncEventsResource:
442
442
  raw = data.get("data", data)
443
443
  return Event.model_validate(raw)
444
444
 
445
- async def search(self, query: str) -> APIResponse[list[Event]]:
446
- """Search events by name."""
447
- data = await self._client._get("/events/search", {"q": query})
448
- return parse_response(data, Event)
449
-
450
445
 
451
446
  class _AsyncAccountResource:
452
447
  def __init__(self, client: AsyncSharpAPI):
@@ -555,11 +555,6 @@ class _EventsResource:
555
555
  raw = data.get("data", data)
556
556
  return Event.model_validate(raw)
557
557
 
558
- def search(self, query: str) -> APIResponse[list[Event]]:
559
- """Search events by name."""
560
- data = self._client._get("/events/search", {"q": query})
561
- return _parse_response(data, Event)
562
-
563
558
 
564
559
  class _AccountResource:
565
560
  def __init__(self, client: SharpAPI):
@@ -346,15 +346,6 @@ class TestReferenceResources:
346
346
  result = client.events.list(league="nba")
347
347
  assert len(result.data) == 1
348
348
 
349
- @respx.mock
350
- def test_events_search(self):
351
- respx.get(f"{BASE_URL}/api/v1/events/search").mock(
352
- return_value=Response(200, json=EVENTS_RESPONSE)
353
- )
354
- with SharpAPI(API_KEY) as client:
355
- result = client.events.search("Lakers")
356
- assert len(result.data) == 1
357
-
358
349
  @respx.mock
359
350
  def test_account_me(self):
360
351
  respx.get(f"{BASE_URL}/api/v1/account").mock(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes