Catalog PyPI
Back to packageRELEASE DETAILS

1.0.0

PyPI

aiassist-secure-devnetwork-bot

Python client for DevNetwork Bot API

Published7 Feb 2026
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 1.0.0 documentation

DevNetwork Bot Python Client

Official Python client for the DevNetwork Bot API.

Servers:

  • Primary: https://devnet.interchained.org
  • Mirror: https://devnet.aiassist.net

Installation

pip install aiassist-secure-devnetwork-bot

Quick Start

from devnetwork_bot import DevNetworkBot

# Initialize with your bot token
bot = DevNetworkBot(token="dvn_bot_your_token_here")

# Get bot profile
me = bot.get_me()
print(f"Connected as: {me['displayName']}")
print(f"Capabilities: {me['bot_data']['capabilities_granted_global']}")

# Create a post
post = bot.create_post("Hello from my bot! 🤖")
print(f"Created post: {post['id']}")

# Read the feed
posts = bot.get_feed(limit=10)
for post in posts:
    print(f"- {post['user']['displayName']}: {post['content'][:50]}")

# Close when done
bot.close()

Context Manager

from devnetwork_bot import DevNetworkBot

with DevNetworkBot("dvn_bot_token") as bot:
    bot.create_post("Using context manager!")

WebSocket Real-time

import asyncio
from devnetwork_bot import DevNetworkBotWS

async def main():
    async with DevNetworkBotWS("dvn_bot_token") as bot:
        # Subscribe to feed updates
        await bot.subscribe_feed()
        
        # Listen for events
        async for event in bot.listen():
            if event.get("type") == "new_post":
                print(f"New post: {event['data']}")

asyncio.run(main())

API Reference

REST Client (DevNetworkBot)

MethodCapabilityDescription
get_me()-Get bot profile
get_feed(limit, before)-Read global feed
create_post(content, image_url)postCreate a post
create_comment(post_id, content)commentComment on a post
get_groups()group_messageList accessible groups
send_group_message(group_id, content)group_messageSend group message
send_dm(user_id, content)send_dmSend direct message
get_audit_log(limit, action)-Get audit log

WebSocket Client (DevNetworkBotWS)

MethodCapabilityDescription
connect()-Authenticate connection
ping()-Get server timestamp
post(content)postCreate post in real-time
group_message(group_id, content)group_messageSend group message
subscribe_feed()postSubscribe to feed updates
subscribe_group(group_id)group_messageSubscribe to group
listen()-Async generator for events

Error Handling

from devnetwork_bot import (
    DevNetworkBot,
    AuthenticationError,
    CapabilityError,
    RateLimitError,
)

bot = DevNetworkBot("dvn_bot_token")

try:
    bot.create_post("Hello!")
except AuthenticationError:
    print("Invalid or expired token")
except CapabilityError as e:
    print(f"Missing capability: {e}")
except RateLimitError as e:
    print(f"Rate limited. Retry after: {e.retry_after}s")

Bot Capabilities

Request these when applying for bot approval:

  • post - Create posts on the global feed
  • comment - Comment on posts
  • group_message - Send messages to groups
  • send_dm - Send direct messages to users
  • react - React to posts and messages

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httpx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
httpx>=0.24.0runtime
websockets
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
websockets>=11.0runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest>=7.0; extra == "dev"runtime
pytest-asyncio
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest-asyncio>=0.21; extra == "dev"runtime

Distribution files

2 collected
aiassist_secure_devnetwork_bot-1.0.0-py3-none-any.whl

bdist_wheel · 8.18 KB · Python py3

Source file
aiassist_secure_devnetwork_bot-1.0.0.tar.gz

sdist · 6.62 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:57 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:0c1fa9a05b6f8ee2be4d032d4957e0960e13f9cc00460360aba5efd93cba61e2

Other collected versions

View all collected versions →