socialfi-api 0.5.0__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.
@@ -0,0 +1,24 @@
1
+ """socialfi-api — the SocialFi API by CabalSpy ID.
2
+
3
+ Re-exports ``cabalspy_id.api``: Data API clients, the trade stream, Login with
4
+ CabalSpy ID (OpenID Connect) and webhook verification.
5
+
6
+ from socialfi_api import CabalSpyID, CabalSpyIDAuth, verify_webhook
7
+ """
8
+
9
+ from typing import Any
10
+
11
+ import cabalspy_id.api as _source
12
+ from cabalspy_id.api import * # noqa: F403
13
+ from cabalspy_id.api import __all__ as _source_all
14
+
15
+ __version__ = "0.5.0"
16
+ #: The version of the cabalspy-id package doing the work.
17
+ cabalspy_id_version: str = _source.__version__
18
+
19
+ __all__ = [*(n for n in _source_all if n != "__version__"), "__version__", "cabalspy_id_version"] # noqa: PLE0604
20
+
21
+
22
+ def __getattr__(name: str) -> Any:
23
+ # Names cabalspy_id.api loads lazily (the stream clients) are forwarded too.
24
+ return getattr(_source, name)
socialfi_api/py.typed ADDED
File without changes
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.5
2
+ Name: socialfi-api
3
+ Version: 0.5.0
4
+ Summary: SocialFi API — add a social layer to any app: login with X + verified wallets, live trades and PnL of your users, leaderboards and copy trading on Solana, BNB Chain, Base, Ethereum and Robinhood Chain. By CabalSpy ID.
5
+ Project-URL: Homepage, https://www.cabalspy.xyz/cabalspy-id/
6
+ Project-URL: Documentation, https://docs.cabalspy.xyz/cabalspy-id
7
+ Project-URL: Repository, https://github.com/CabalSpy/socialfi-api
8
+ Project-URL: Issues, https://github.com/CabalSpy/socialfi-api/issues
9
+ Project-URL: SDK, https://pypi.org/project/cabalspy-id/
10
+ Author-email: CabalSpy <contact@cabalspy.xyz>
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Keywords: base,bnb,cabalspy,cabalspy-id,copy-trading,crypto-login,crypto-social,ethereum,kol,kol-tracker,oidc,openid-connect,pnl,python,sdk,social-trading,socialfi,socialfi-api,socialfi-sdk,solana,trading-leaderboard,wallet-tracker,web3-social
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Internet :: WWW/HTTP
23
+ Classifier: Topic :: Office/Business :: Financial
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.10
27
+ Requires-Dist: cabalspy-id<0.6,>=0.5.0
28
+ Provides-Extra: dev
29
+ Requires-Dist: pytest>=8.0; extra == 'dev'
30
+ Requires-Dist: websockets>=14.0; extra == 'dev'
31
+ Provides-Extra: stream
32
+ Requires-Dist: cabalspy-id[stream]<0.6,>=0.5.0; extra == 'stream'
33
+ Description-Content-Type: text/markdown
34
+
35
+ # socialfi-api — the SocialFi API for any app (Python)
36
+
37
+ [![PyPI](https://img.shields.io/pypi/v/socialfi-api.svg)](https://pypi.org/project/socialfi-api/) [![ci](https://github.com/CabalSpy/socialfi-api/actions/workflows/ci.yml/badge.svg)](https://github.com/CabalSpy/socialfi-api/actions/workflows/ci.yml) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
38
+
39
+ **socialfi-api** adds a social layer to any crypto app: login with X, wallets verified by a tiny on-chain payment, reviewed KOL badges, live trades and PnL of your users, leaderboards and copy trading — on Solana, BNB Chain, Base, Ethereum and Robinhood Chain. Sync and async.
40
+
41
+ Part of **[CabalSpy ID](https://id.cabalspy.xyz)** — the SocialFi layer for crypto apps. [Website](https://www.cabalspy.xyz/cabalspy-id/) · [Docs](https://docs.cabalspy.xyz/cabalspy-id) · [API dashboard](https://apidashboard.cabalspy.xyz) · [Full SDK: cabalspy-id](https://github.com/CabalSpy/cabalspy-id-js)
42
+
43
+ ```bash
44
+ pip install socialfi-api # live trade stream: pip install "socialfi-api[stream]"
45
+ ```
46
+
47
+ ```python
48
+ from socialfi_api import CabalSpyID, CabalSpyIDAuth, verify_webhook
49
+
50
+ auth = CabalSpyIDAuth("csid_...", client_secret=os.environ["CSID_CLIENT_SECRET"], redirect_uri="https://your.app/callback")
51
+ req = auth.create_authorization_url(scope=["openid", "profile", "wallets"])
52
+
53
+ csid = CabalSpyID() # reads CABALSPY_ID_API_KEY / CABALSPY_API_KEY
54
+ board = csid.leaderboard(blockchain="solana", period="7d", sort="pnl_usd")
55
+ ```
56
+
57
+ Contents: `CabalSpyID` / `AsyncCabalSpyID` (Data API), `CabalSpyIDStream`, `CabalSpyIDAuth` (OIDC), `verify_webhook`, errors and response types — the `cabalspy_id.api` module. Full reference: [cabalspy-id README](https://github.com/CabalSpy/cabalspy-id-python#readme).
58
+
59
+ Versions follow `cabalspy-id`: 0.5.0 depends on `cabalspy-id` 0.5.0. This package contains no code of its own — it re-exports part of `cabalspy-id`, so behaviour, fixes and types are always the same.
60
+
61
+ ## License
62
+
63
+ MIT
@@ -0,0 +1,6 @@
1
+ socialfi_api/__init__.py,sha256=zcXqhPthmHaJoG8A1HSGwnulb5HAVdS49hOLUiVSyyU,815
2
+ socialfi_api/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ socialfi_api-0.5.0.dist-info/METADATA,sha256=HYRPPwNU_nj27RergLVdFWAFt7ufjFB7mvkM_-77dAs,3827
4
+ socialfi_api-0.5.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
5
+ socialfi_api-0.5.0.dist-info/licenses/LICENSE,sha256=b9VZkr_Gf4sAsybhKTSyTrGJs-GTqJ594dmNawmLYJM,1065
6
+ socialfi_api-0.5.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CabalSpy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.