A Python client for interacting with Anytype. Automate workflows and integrate with your apps! ✨
- Seamless Integration: Connect Python scripts directly to your Anytype workspace.
- Object Management: Create, modify, and organize pages, notes, and custom objects.
- Space Operations: Manage spaces, types, and relations programmatically.
- Batch Operations: Export data, automate repetitive tasks, and more.
- PDF Import Example: Bulk import annotated PDFs as structured notes (see examples).
pip install anytype-client
- Python 3.10+
- Anytype desktop app (v0.44.13-beta or higher) running during authentication
- Authentication
from anytype import Anytype
# Initialize client (first run triggers authentication)
any = Anytype()
any.auth() # 🔑 Enter 4-digit code from Anytype app when prompted
- Create Your First Object
from anytype import Object
# Get your workspace
spaces = any.get_spaces()
my_space = spaces[0] # Use your preferred space
# Create a new page
note_type = my_space.get_type("Page")
new_note = Object()
new_note.name = "My Python-Powered Note 📝"
new_note.icon = "🔥"
new_note.description = "Automatically generated via Python API"
# Add rich content
new_note.add_title1("Welcome to Automated Knowledge Management!")
new_note.add_text("This section was created programmatically using:")
# Commit to workspace
created_object = my_space.create_object(new_note, note_type)
print(f"Created object: {created_object.id}")
Example | Description | Results |
---|---|---|
📄 Hello World | Create a basic note with formatted text | Check Result |
📚 PDF Notes Importer | Batch import annotated PDFs | Check Result |
More examples coming as Anytype API evolves | Request a feature | ⚔️ |
Check the Wiki!
Contributions are welcomed! Here's how to help:
- Report bugs or request features via Issues
- Submit pull requests for improvements
- Share your use cases in Discussions
GPL-3.0 License - see LICENSE for details.