sharpapi 0.2.0__py3-none-any.whl → 0.2.1__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.
sharpapi/__init__.py CHANGED
@@ -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
sharpapi/async_client.py CHANGED
@@ -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):
sharpapi/client.py CHANGED
@@ -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):
@@ -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
@@ -1,12 +1,12 @@
1
- sharpapi/__init__.py,sha256=thLONzlOusuGL1M7NiE7PVzO_nQgI-ZGAIx59mxE5oE,1974
1
+ sharpapi/__init__.py,sha256=dCb0vGKwVAMd8nCaLTfo_m5IyV_yymY4N9bjTborKLU,1974
2
2
  sharpapi/_base.py,sha256=roQjRMVz0NxTZGc303tkQs5iWwcGyg-LUppdIC1p0eI,3348
3
3
  sharpapi/_utils.py,sha256=nQU1gNkzepAIr93HDYX455aRO2yhc6BeBbaWDnpI5lw,1143
4
- sharpapi/async_client.py,sha256=MrNM01ZTUcnSSoeJpw6Z_77-5iWi1kNHyIW58wJvPZc,15370
5
- sharpapi/client.py,sha256=V80lCdTQvN-yt-RdRfeT0VQGxtf9NqJpFCejLRksHp4,22519
4
+ sharpapi/async_client.py,sha256=P4qWY7VSEXjP5TUmpoxZggdQuu2SHiENhwzGmXaDBoU,15150
5
+ sharpapi/client.py,sha256=nPgzhgXX2Em_4cu0f-txuagjKxn1TEWa56zZM1bhOAM,22310
6
6
  sharpapi/exceptions.py,sha256=nseJ4BboGjSWIfDtMYQpXPIaOUxbPAJLsxUPbERZqpY,1272
7
7
  sharpapi/models.py,sha256=z9IIQd2dQKeEQTzZ8-qF8J5_L0GwT-8k2r3Y3ozXJ0U,12951
8
8
  sharpapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  sharpapi/streaming.py,sha256=smQi9F-m7ET7s7V_psdg3S-butiuG_bIq3CnOE1zG8M,6971
10
- sharpapi-0.2.0.dist-info/METADATA,sha256=N_CF_re06FgeeqmNPFDtbcC9azO_iB9MOzD0XWo9-wE,5795
11
- sharpapi-0.2.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
12
- sharpapi-0.2.0.dist-info/RECORD,,
10
+ sharpapi-0.2.1.dist-info/METADATA,sha256=TvHNOVs-f6uCkTuo3B8nS9U6yEtc176VvaMCjzc8fzQ,5764
11
+ sharpapi-0.2.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
12
+ sharpapi-0.2.1.dist-info/RECORD,,