Python client for the Airtable API providing comprehensive database operations, ORM functionality, enterprise features, and testing utilities
—
Record-level commenting system with user mentions, collaborative features, and comment management for team coordination.
Retrieve and manage comments on individual records with full CRUD support.
def comments(self, record_id: str) -> list[object]:
"""
Get all comments for a record.
Parameters:
- record_id: Record ID to get comments for
Returns:
List of Comment objects
"""
def add_comment(self, record_id: str, text: str) -> object:
"""
Add comment to record.
Parameters:
- record_id: Record ID to comment on
- text: Comment text content
Returns:
Comment object for the created comment
"""
class Comment:
def save(self) -> 'Comment':
"""Save changes to comment text."""
def delete(self) -> bool:
"""Delete comment."""from pyairtable import Api
api = Api('your_token')
table = api.table('base_id', 'table_name')
# Add comment to record
comment = table.add_comment('rec1234567890abcde', 'This needs review')
# Get all comments for record
comments = table.comments('rec1234567890abcde')
for comment in comments:
print(f"{comment.author.name}: {comment.text}")
# Update comment
comment.text = 'This has been reviewed and approved'
comment.save()
# Delete comment
comment.delete()Install with Tessl CLI
npx tessl i tessl/pypi-pyairtable