reportify-sdk 0.3.4__tar.gz → 0.3.5__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 (24) hide show
  1. {reportify_sdk-0.3.4/reportify_sdk.egg-info → reportify_sdk-0.3.5}/PKG-INFO +2 -3
  2. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/README.md +1 -2
  3. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/pyproject.toml +1 -1
  4. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/client.py +1 -1
  5. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/stock.py +1 -84
  6. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5/reportify_sdk.egg-info}/PKG-INFO +2 -3
  7. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/LICENSE +0 -0
  8. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/__init__.py +0 -0
  9. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/agent.py +0 -0
  10. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/channels.py +0 -0
  11. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/chat.py +0 -0
  12. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/concepts.py +0 -0
  13. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/docs.py +0 -0
  14. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/exceptions.py +0 -0
  15. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/kb.py +0 -0
  16. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/quant.py +0 -0
  17. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/search.py +0 -0
  18. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/timeline.py +0 -0
  19. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk/user.py +0 -0
  20. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk.egg-info/SOURCES.txt +0 -0
  21. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk.egg-info/dependency_links.txt +0 -0
  22. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk.egg-info/requires.txt +0 -0
  23. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/reportify_sdk.egg-info/top_level.txt +0 -0
  24. {reportify_sdk-0.3.4 → reportify_sdk-0.3.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reportify-sdk
3
- Version: 0.3.4
3
+ Version: 0.3.5
4
4
  Summary: Python SDK for Reportify API - Financial data and document search
5
5
  Author-email: Reportify <support@reportify.cn>
6
6
  License-Expression: MIT
@@ -84,8 +84,7 @@ quote = client.stock.quote("US:AAPL")
84
84
  overview = client.stock.overview("US:AAPL")
85
85
  shareholders = client.stock.shareholders("US:AAPL")
86
86
 
87
- # Screening and calendar
88
- stocks = client.stock.screener(country="US", market_cap_more_than=1e10)
87
+ # Earnings calendar
89
88
  earnings = client.stock.earnings_calendar(market="us", start_date="2024-01-01", end_date="2024-01-31")
90
89
  ```
91
90
 
@@ -55,8 +55,7 @@ quote = client.stock.quote("US:AAPL")
55
55
  overview = client.stock.overview("US:AAPL")
56
56
  shareholders = client.stock.shareholders("US:AAPL")
57
57
 
58
- # Screening and calendar
59
- stocks = client.stock.screener(country="US", market_cap_more_than=1e10)
58
+ # Earnings calendar
60
59
  earnings = client.stock.earnings_calendar(market="us", start_date="2024-01-01", end_date="2024-01-31")
61
60
  ```
62
61
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "reportify-sdk"
7
- version = "0.3.4"
7
+ version = "0.3.5"
8
8
  description = "Python SDK for Reportify API - Financial data and document search"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -74,7 +74,7 @@ class Reportify:
74
74
  return {
75
75
  "Authorization": f"Bearer {self.api_key}",
76
76
  "Content-Type": "application/json",
77
- "User-Agent": "reportify-sdk-python/0.3.4",
77
+ "User-Agent": "reportify-sdk-python/0.3.5",
78
78
  }
79
79
 
80
80
  def _request(
@@ -369,92 +369,9 @@ class StockModule:
369
369
  return self._to_dataframe(response)
370
370
 
371
371
  # -------------------------------------------------------------------------
372
- # Screening and Calendar
372
+ # Calendar
373
373
  # -------------------------------------------------------------------------
374
374
 
375
- def screener(
376
- self,
377
- *,
378
- market_cap_more_than: float | None = None,
379
- market_cap_lower_than: float | None = None,
380
- price_more_than: float | None = None,
381
- price_lower_than: float | None = None,
382
- change_percentage_more_than: float | None = None,
383
- change_percentage_lower_than: float | None = None,
384
- volume_more_than: int | None = None,
385
- volume_lower_than: int | None = None,
386
- country: str | None = None,
387
- exchange: str | None = None,
388
- dividend_yield_more_than: float | None = None,
389
- dividend_yield_lower_than: float | None = None,
390
- pe_ttm_more_than: float | None = None,
391
- pe_ttm_lower_than: float | None = None,
392
- limit: int = 100,
393
- ) -> pd.DataFrame:
394
- """
395
- Screen stocks based on various criteria
396
-
397
- Args:
398
- market_cap_more_than: Market cap greater than
399
- market_cap_lower_than: Market cap less than
400
- price_more_than: Stock price greater than
401
- price_lower_than: Stock price less than
402
- change_percentage_more_than: Change percentage greater than (e.g., 0.02 for 2%)
403
- change_percentage_lower_than: Change percentage less than (e.g., 0.04 for 4%)
404
- volume_more_than: Trading volume greater than
405
- volume_lower_than: Trading volume less than
406
- country: Country code (e.g., "US", "CN", "HK")
407
- exchange: Exchange code (e.g., "NASDAQ", "NYSE", "HKEX")
408
- dividend_yield_more_than: Dividend yield greater than
409
- dividend_yield_lower_than: Dividend yield less than
410
- pe_ttm_more_than: PE TTM greater than
411
- pe_ttm_lower_than: PE TTM less than
412
- limit: Maximum number of results (default: 100)
413
-
414
- Returns:
415
- DataFrame with screened stocks
416
-
417
- Example:
418
- >>> # Find US stocks with PE < 15 and market cap > 1B
419
- >>> stocks = client.stock.screener(
420
- ... country="US",
421
- ... pe_ttm_lower_than=15,
422
- ... market_cap_more_than=1000000000
423
- ... )
424
- """
425
- data: dict[str, Any] = {"limit": limit}
426
- if market_cap_more_than is not None:
427
- data["market_cap_more_than"] = market_cap_more_than
428
- if market_cap_lower_than is not None:
429
- data["market_cap_lower_than"] = market_cap_lower_than
430
- if price_more_than is not None:
431
- data["price_more_than"] = price_more_than
432
- if price_lower_than is not None:
433
- data["price_lower_than"] = price_lower_than
434
- if change_percentage_more_than is not None:
435
- data["change_percentage_more_than"] = change_percentage_more_than
436
- if change_percentage_lower_than is not None:
437
- data["change_percentage_lower_than"] = change_percentage_lower_than
438
- if volume_more_than is not None:
439
- data["volume_more_than"] = volume_more_than
440
- if volume_lower_than is not None:
441
- data["volume_lower_than"] = volume_lower_than
442
- if country:
443
- data["country"] = country
444
- if exchange:
445
- data["exchange"] = exchange
446
- if dividend_yield_more_than is not None:
447
- data["dividend_yield_more_than"] = dividend_yield_more_than
448
- if dividend_yield_lower_than is not None:
449
- data["dividend_yield_lower_than"] = dividend_yield_lower_than
450
- if pe_ttm_more_than is not None:
451
- data["pe_ttm_more_than"] = pe_ttm_more_than
452
- if pe_ttm_lower_than is not None:
453
- data["pe_ttm_lower_than"] = pe_ttm_lower_than
454
-
455
- response = self._post("/v1/stock/screener", json=data)
456
- return self._to_dataframe(response)
457
-
458
375
  def earnings_calendar(
459
376
  self,
460
377
  *,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reportify-sdk
3
- Version: 0.3.4
3
+ Version: 0.3.5
4
4
  Summary: Python SDK for Reportify API - Financial data and document search
5
5
  Author-email: Reportify <support@reportify.cn>
6
6
  License-Expression: MIT
@@ -84,8 +84,7 @@ quote = client.stock.quote("US:AAPL")
84
84
  overview = client.stock.overview("US:AAPL")
85
85
  shareholders = client.stock.shareholders("US:AAPL")
86
86
 
87
- # Screening and calendar
88
- stocks = client.stock.screener(country="US", market_cap_more_than=1e10)
87
+ # Earnings calendar
89
88
  earnings = client.stock.earnings_calendar(market="us", start_date="2024-01-01", end_date="2024-01-31")
90
89
  ```
91
90
 
File without changes
File without changes