socialfi-thesis 0.5.0__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.
@@ -0,0 +1,16 @@
1
+ node_modules/
2
+ *.tgz
3
+ .DS_Store
4
+ __pycache__/
5
+ *.py[cod]
6
+ .pytest_cache/
7
+ .mypy_cache/
8
+ .ruff_cache/
9
+ dist/
10
+ build/
11
+ *.egg-info/
12
+ .venv/
13
+ venv/
14
+ .env
15
+ .env.*
16
+ _core/
@@ -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.
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.5
2
+ Name: socialfi-thesis
3
+ Version: 0.5.0
4
+ Summary: SocialFi token theses — holders-only opinions on a token with the author's real position and live PnL, replies, reactions and a drop-in thesis widget for any crypto app. 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-thesis
8
+ Project-URL: Issues, https://github.com/CabalSpy/socialfi-thesis/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,pnl,python,sdk,social-trading,socialfi,socialfi-thesis,socialfi-widget,solana,token-theses,token-thesis,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-thesis — token theses for any crypto app (Python)
36
+
37
+ [![PyPI](https://img.shields.io/pypi/v/socialfi-thesis.svg)](https://pypi.org/project/socialfi-thesis/) [![ci](https://github.com/CabalSpy/socialfi-thesis/actions/workflows/ci.yml/badge.svg)](https://github.com/CabalSpy/socialfi-thesis/actions/workflows/ci.yml) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
38
+
39
+ **socialfi-thesis** brings SocialFi token theses to your app: holders-only opinions on a token, each with the author's real position and live PnL, replies, reactions and moderation — shared across every platform that uses CabalSpy ID. 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-thesis # live theses: pip install "socialfi-thesis[stream]"
45
+ ```
46
+
47
+ ```python
48
+ from socialfi_thesis import CabalSpyID, ThesisClient
49
+
50
+ csid = CabalSpyID() # Data API key: read everything, write in your users' names
51
+ theses = csid.list_theses(blockchain="solana", mint=mint, sort="top")
52
+ csid.post_thesis(blockchain="solana", mint=mint, body="Accumulating here.", stance="bull", csid_id=user_sub)
53
+
54
+ with ThesisClient(access_token) as tc: # public thesis API with the user's access token
55
+ page = tc.list("solana", mint)
56
+ ```
57
+
58
+ Contents: the `cabalspy_id.thesis` module. Full reference: [cabalspy-id README — Token theses](https://github.com/CabalSpy/cabalspy-id-python#token-theses).
59
+
60
+ 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.
61
+
62
+ ## License
63
+
64
+ MIT
@@ -0,0 +1,30 @@
1
+ # socialfi-thesis — token theses for any crypto app (Python)
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/socialfi-thesis.svg)](https://pypi.org/project/socialfi-thesis/) [![ci](https://github.com/CabalSpy/socialfi-thesis/actions/workflows/ci.yml/badge.svg)](https://github.com/CabalSpy/socialfi-thesis/actions/workflows/ci.yml) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
+
5
+ **socialfi-thesis** brings SocialFi token theses to your app: holders-only opinions on a token, each with the author's real position and live PnL, replies, reactions and moderation — shared across every platform that uses CabalSpy ID. Sync and async.
6
+
7
+ 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)
8
+
9
+ ```bash
10
+ pip install socialfi-thesis # live theses: pip install "socialfi-thesis[stream]"
11
+ ```
12
+
13
+ ```python
14
+ from socialfi_thesis import CabalSpyID, ThesisClient
15
+
16
+ csid = CabalSpyID() # Data API key: read everything, write in your users' names
17
+ theses = csid.list_theses(blockchain="solana", mint=mint, sort="top")
18
+ csid.post_thesis(blockchain="solana", mint=mint, body="Accumulating here.", stance="bull", csid_id=user_sub)
19
+
20
+ with ThesisClient(access_token) as tc: # public thesis API with the user's access token
21
+ page = tc.list("solana", mint)
22
+ ```
23
+
24
+ Contents: the `cabalspy_id.thesis` module. Full reference: [cabalspy-id README — Token theses](https://github.com/CabalSpy/cabalspy-id-python#token-theses).
25
+
26
+ 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.
27
+
28
+ ## License
29
+
30
+ MIT
@@ -0,0 +1,77 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "socialfi-thesis"
7
+ version = "0.5.0"
8
+ description = "SocialFi token theses — holders-only opinions on a token with the author's real position and live PnL, replies, reactions and a drop-in thesis widget for any crypto app. By CabalSpy ID."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.10"
12
+ authors = [{ name = "CabalSpy", email = "contact@cabalspy.xyz" }]
13
+ keywords = [
14
+ "socialfi-thesis",
15
+ "token-thesis",
16
+ "token-theses",
17
+ "socialfi-widget",
18
+ "socialfi",
19
+ "social-trading",
20
+ "copy-trading",
21
+ "crypto-social",
22
+ "web3-social",
23
+ "kol",
24
+ "kol-tracker",
25
+ "wallet-tracker",
26
+ "trading-leaderboard",
27
+ "pnl",
28
+ "crypto-login",
29
+ "solana",
30
+ "bnb",
31
+ "base",
32
+ "ethereum",
33
+ "cabalspy",
34
+ "cabalspy-id",
35
+ "sdk",
36
+ "python",
37
+ ]
38
+ classifiers = [
39
+ "Development Status :: 4 - Beta",
40
+ "Intended Audience :: Developers",
41
+ "License :: OSI Approved :: MIT License",
42
+ "Programming Language :: Python :: 3",
43
+ "Programming Language :: Python :: 3.10",
44
+ "Programming Language :: Python :: 3.11",
45
+ "Programming Language :: Python :: 3.12",
46
+ "Programming Language :: Python :: 3.13",
47
+ "Topic :: Internet :: WWW/HTTP",
48
+ "Topic :: Office/Business :: Financial",
49
+ "Topic :: Software Development :: Libraries :: Python Modules",
50
+ "Typing :: Typed",
51
+ ]
52
+ dependencies = ["cabalspy-id>=0.5.0,<0.6"]
53
+
54
+ [project.optional-dependencies]
55
+ stream = ["cabalspy-id[stream]>=0.5.0,<0.6"]
56
+ dev = ["pytest>=8.0", "websockets>=14.0"]
57
+
58
+ [project.urls]
59
+ Homepage = "https://www.cabalspy.xyz/cabalspy-id/"
60
+ Documentation = "https://docs.cabalspy.xyz/cabalspy-id"
61
+ Repository = "https://github.com/CabalSpy/socialfi-thesis"
62
+ Issues = "https://github.com/CabalSpy/socialfi-thesis/issues"
63
+ SDK = "https://pypi.org/project/cabalspy-id/"
64
+
65
+ [tool.hatch.build.targets.wheel]
66
+ packages = ["socialfi_thesis"]
67
+
68
+ [tool.pytest.ini_options]
69
+ testpaths = ["tests"]
70
+
71
+ [tool.ruff]
72
+ line-length = 120
73
+ target-version = "py310"
74
+ extend-exclude = ["*.md"]
75
+
76
+ [tool.ruff.lint]
77
+ select = ["E", "F", "W", "I", "UP"]
@@ -0,0 +1,24 @@
1
+ """socialfi-thesis — token theses by CabalSpy ID.
2
+
3
+ Re-exports ``cabalspy_id.thesis``: Data API thesis methods, the public thesis
4
+ client (``ThesisClient``) and the theses stream.
5
+
6
+ from socialfi_thesis import CabalSpyID, ThesisClient
7
+ """
8
+
9
+ from typing import Any
10
+
11
+ import cabalspy_id.thesis as _source
12
+ from cabalspy_id.thesis import * # noqa: F403
13
+ from cabalspy_id.thesis 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.thesis loads lazily (the stream clients) are forwarded too.
24
+ return getattr(_source, name)
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ from __future__ import annotations
2
+
3
+ import cabalspy_id.thesis as source
4
+
5
+ import socialfi_thesis
6
+
7
+
8
+ def test_reexports_the_same_objects() -> None:
9
+ for name in source.__all__:
10
+ if name == "__version__":
11
+ continue
12
+ assert getattr(socialfi_thesis, name) is getattr(source, name), name
13
+
14
+
15
+ def test_entry_points() -> None:
16
+ for name in ["CabalSpyID", "AsyncCabalSpyID", "ThesisClient", "AsyncThesisClient", "ThesisLive", "ThesesStream"]:
17
+ assert getattr(socialfi_thesis, name) is getattr(source, name), name
18
+ assert socialfi_thesis.__version__ == "0.5.0"
19
+ assert socialfi_thesis.cabalspy_id_version == source.__version__
20
+
21
+
22
+ def test_star_import() -> None:
23
+ ns: dict[str, object] = {}
24
+ exec("from socialfi_thesis import *", ns)
25
+ for name in ["CabalSpyID", "AsyncCabalSpyID", "ThesisClient", "AsyncThesisClient", "ThesisLive", "ThesesStream"]:
26
+ assert ns[name] is getattr(source, name), name