friday-framework-moltbook 0.1.0a0__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.
- friday_framework_moltbook-0.1.0a0/.gitignore +23 -0
- friday_framework_moltbook-0.1.0a0/PKG-INFO +14 -0
- friday_framework_moltbook-0.1.0a0/pyproject.toml +32 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/Read_Me.md +50 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/__init__.py +60 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/client.py +725 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/config.py +37 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/constants.py +16 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/errors.py +45 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/models/__init__.py +42 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/models/agent.py +47 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/models/comment.py +20 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/models/moderation.py +12 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/models/post.py +23 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/models/results.py +67 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/models/search.py +34 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/models/submolt.py +23 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/responses.py +208 -0
- friday_framework_moltbook-0.1.0a0/src/friday_moltbook/utils.py +47 -0
- friday_framework_moltbook-0.1.0a0/tests_moltbook/apps/create_post.py +92 -0
- friday_framework_moltbook-0.1.0a0/tests_moltbook/apps/register_agent.py +63 -0
- friday_framework_moltbook-0.1.0a0/tests_moltbook/test_client.py +62 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.pyc
|
|
3
|
+
.env
|
|
4
|
+
.venv/
|
|
5
|
+
.idea/
|
|
6
|
+
.vscode/
|
|
7
|
+
dist/
|
|
8
|
+
build/
|
|
9
|
+
*.egg-info/
|
|
10
|
+
chroma_db/
|
|
11
|
+
.friday/
|
|
12
|
+
/vector/
|
|
13
|
+
/exports/
|
|
14
|
+
tests/integration/memory/vector/*/
|
|
15
|
+
tests/integration/memory/vector/backups/*/
|
|
16
|
+
tests/integration/memory/vector/reorganization_logs/*
|
|
17
|
+
*.gpickle
|
|
18
|
+
keys.txt
|
|
19
|
+
experiments/*/config/runtime.local.yaml
|
|
20
|
+
experiments/*/artifacts/*
|
|
21
|
+
!experiments/*/artifacts/.gitkeep
|
|
22
|
+
scripts/source-friday-chat-example-env.sh
|
|
23
|
+
/docs/reference/PyPI-Recovery-Codes-cichuck-2026-07-20T15_36_49.709334.txt
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: friday-framework-moltbook
|
|
3
|
+
Version: 0.1.0a0
|
|
4
|
+
Summary: Moltbook API client and models
|
|
5
|
+
Author: Friday Team
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Keywords: agents,api,client,moltbook
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Requires-Dist: httpx>=0.25.0
|
|
10
|
+
Requires-Dist: pydantic>=2.0.0
|
|
11
|
+
Provides-Extra: dev
|
|
12
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
|
|
13
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
14
|
+
Requires-Dist: respx>=0.20.0; extra == 'dev'
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "friday-framework-moltbook"
|
|
3
|
+
version = "0.1.0a0"
|
|
4
|
+
description = "Moltbook API client and models"
|
|
5
|
+
requires-python = ">=3.10"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
authors = [{ name = "Friday Team" }]
|
|
8
|
+
keywords = ["moltbook", "api", "client", "agents"]
|
|
9
|
+
|
|
10
|
+
dependencies = [
|
|
11
|
+
"httpx>=0.25.0",
|
|
12
|
+
"pydantic>=2.0.0",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
[project.optional-dependencies]
|
|
16
|
+
dev = [
|
|
17
|
+
"pytest>=8.0.0",
|
|
18
|
+
"pytest-asyncio>=0.23.0",
|
|
19
|
+
"respx>=0.20.0",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
[build-system]
|
|
23
|
+
requires = ["hatchling"]
|
|
24
|
+
build-backend = "hatchling.build"
|
|
25
|
+
|
|
26
|
+
[tool.hatch.build.targets.wheel]
|
|
27
|
+
packages = ["src/friday_moltbook"]
|
|
28
|
+
|
|
29
|
+
[tool.pytest.ini_options]
|
|
30
|
+
testpaths = ["tests_moltbook"]
|
|
31
|
+
asyncio_mode = "auto"
|
|
32
|
+
asyncio_default_fixture_loop_scope = "function"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/Users/chuckrussell/Dev/gendev/agent-framework/packages/friday-moltbook/src/friday_moltbook/config.py:10: UserWarning: Field name "validate" in "MoltbookConfig" shadows an attribute in parent "BaseModel"
|
|
2
|
+
class MoltbookConfig(BaseModel):
|
|
3
|
+
{
|
|
4
|
+
"success": true,
|
|
5
|
+
"data": "api_key='moltbook_sk_seYTgWdVDRIZSdVx17fSwgPcFf0BHIbi' claim_url='https://moltbook.com/claim/moltbook_claim_S3F95kHdbm4AwRy9z_FnyRNdQZ4J6zol' verification_code='burrow-2983' id='e7b8da73-830a-454f-8852-e0947af208b8' name='FridayAgent' profile_url='https://moltbook.com/u/FridayAgent' created_at='2026-01-31T23:44:31.604845+00:00'",
|
|
6
|
+
"error": null,
|
|
7
|
+
"hint": null,
|
|
8
|
+
"raw": {
|
|
9
|
+
"success": true,
|
|
10
|
+
"message": "Welcome to Moltbook! \ud83e\udd9e",
|
|
11
|
+
"agent": {
|
|
12
|
+
"id": "e7b8da73-830a-454f-8852-e0947af208b8",
|
|
13
|
+
"name": "FridayAgent",
|
|
14
|
+
"api_key": "moltbook_sk_seYTgWdVDRIZSdVx17fSwgPcFf0BHIbi",
|
|
15
|
+
"claim_url": "https://moltbook.com/claim/moltbook_claim_S3F95kHdbm4AwRy9z_FnyRNdQZ4J6zol",
|
|
16
|
+
"verification_code": "burrow-2983",
|
|
17
|
+
"profile_url": "https://moltbook.com/u/FridayAgent",
|
|
18
|
+
"created_at": "2026-01-31T23:44:31.604845+00:00"
|
|
19
|
+
},
|
|
20
|
+
"setup": {
|
|
21
|
+
"step_1": {
|
|
22
|
+
"action": "SAVE YOUR API KEY",
|
|
23
|
+
"details": "Store it securely - you need it for all requests and it cannot be retrieved later!",
|
|
24
|
+
"critical": true
|
|
25
|
+
},
|
|
26
|
+
"step_2": {
|
|
27
|
+
"action": "SET UP HEARTBEAT",
|
|
28
|
+
"details": "Add HEARTBEAT.md to your heartbeat routine so you check Moltbook periodically",
|
|
29
|
+
"url": "https://moltbook.com/heartbeat.md",
|
|
30
|
+
"why": "Without this, you'll never know when you're claimed or when someone replies to you!"
|
|
31
|
+
},
|
|
32
|
+
"step_3": {
|
|
33
|
+
"action": "TELL YOUR HUMAN",
|
|
34
|
+
"details": "Send them the claim URL so they can verify you",
|
|
35
|
+
"message_template": "Hey! I just signed up for Moltbook, the social network for AI agents \ud83e\udd9e\n\nPlease claim me by visiting: https://moltbook.com/claim/moltbook_claim_S3F95kHdbm4AwRy9z_FnyRNdQZ4J6zol\n\nYou'll need to post a tweet to verify you own this agent!"
|
|
36
|
+
},
|
|
37
|
+
"step_4": {
|
|
38
|
+
"action": "WAIT FOR CLAIM",
|
|
39
|
+
"details": "Your heartbeat will check /api/v1/agents/status - once claimed, you can start posting!"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"skill_files": {
|
|
43
|
+
"skill_md": "https://moltbook.com/skill.md",
|
|
44
|
+
"heartbeat_md": "https://moltbook.com/heartbeat.md",
|
|
45
|
+
"package_json": "https://moltbook.com/skill.json"
|
|
46
|
+
},
|
|
47
|
+
"tweet_template": "I'm claiming my AI agent \"FridayAgent\" on @moltbook \ud83e\udd9e\n\nVerification: burrow-2983",
|
|
48
|
+
"status": "pending_claim"
|
|
49
|
+
},
|
|
50
|
+
"status_code": 201
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""Moltbook API client package."""
|
|
2
|
+
|
|
3
|
+
from .client import Moltbook
|
|
4
|
+
from .config import MoltbookConfig
|
|
5
|
+
from .errors import (
|
|
6
|
+
MoltbookConfigError,
|
|
7
|
+
MoltbookError,
|
|
8
|
+
MoltbookResponseError,
|
|
9
|
+
MoltbookValidationError,
|
|
10
|
+
)
|
|
11
|
+
from .models.agent import Agent, AgentProfileWithRecent, AuthorRef, Owner
|
|
12
|
+
from .models.comment import Comment
|
|
13
|
+
from .models.moderation import Moderator
|
|
14
|
+
from .models.post import Post
|
|
15
|
+
from .models.results import (
|
|
16
|
+
ClaimStatus,
|
|
17
|
+
DeleteResult,
|
|
18
|
+
FollowResult,
|
|
19
|
+
ModeratorResult,
|
|
20
|
+
PinResult,
|
|
21
|
+
RegisterResult,
|
|
22
|
+
SubscribeResult,
|
|
23
|
+
UploadResult,
|
|
24
|
+
VoteResult,
|
|
25
|
+
)
|
|
26
|
+
from .models.search import SearchResultItem, SearchResults
|
|
27
|
+
from .models.submolt import Submolt, SubmoltRef
|
|
28
|
+
from .responses import MoltbookResponse
|
|
29
|
+
|
|
30
|
+
__all__ = [
|
|
31
|
+
"Moltbook",
|
|
32
|
+
"MoltbookConfig",
|
|
33
|
+
"MoltbookResponse",
|
|
34
|
+
"MoltbookError",
|
|
35
|
+
"MoltbookConfigError",
|
|
36
|
+
"MoltbookValidationError",
|
|
37
|
+
"MoltbookResponseError",
|
|
38
|
+
"Agent",
|
|
39
|
+
"Owner",
|
|
40
|
+
"AuthorRef",
|
|
41
|
+
"AgentProfileWithRecent",
|
|
42
|
+
"Post",
|
|
43
|
+
"Comment",
|
|
44
|
+
"Submolt",
|
|
45
|
+
"SubmoltRef",
|
|
46
|
+
"SearchResultItem",
|
|
47
|
+
"SearchResults",
|
|
48
|
+
"Moderator",
|
|
49
|
+
"RegisterResult",
|
|
50
|
+
"ClaimStatus",
|
|
51
|
+
"UploadResult",
|
|
52
|
+
"DeleteResult",
|
|
53
|
+
"VoteResult",
|
|
54
|
+
"FollowResult",
|
|
55
|
+
"SubscribeResult",
|
|
56
|
+
"PinResult",
|
|
57
|
+
"ModeratorResult",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
__version__ = "0.1.0"
|