Skip to main content

Airtable connector for the Aracnid integration framework

Project description

aracnid-airtable

A Python Airtable connector implementation for the aracnid-base contract.

Overview

aracnid-airtable provides an AirtableConnector implementation that follows the shared connector interface used across i-* connector modules. It wraps Airtable CRUD operations with consistent validation, normalization, and error handling semantics.

Installation

Using Poetry:

poetry add aracnid-airtable

Using pip:

pip install aracnid-airtable

Requirements

  • Python 3.12+
  • Airtable API key with access to the target base/table

Configuration

Set your Airtable API key in the environment:

export AIRTABLE_API_KEY=your_api_key

Quick Start

from aracnid_airtable.connector import AirtableConnector

connector = AirtableConnector(
    base_id="appXXXXXXXXXXXXXX",
    table_name="MyTable",
)

created = connector.create_one({"name": "example", "status": "active"})
record_id = created["id"]

one = connector.read_one(record_id)
many = connector.read_many({"status": "active"})

updated = connector.update_one(record_id, {"status": "inactive"})
replaced = connector.replace_one(record_id, {"name": "replacement"})

deleted = connector.delete_one(record_id, hard=True)

API Notes

  • read_one(record_id) returns None when the record is not found.
  • delete_one(record_id, hard=False) raises RuntimeError because soft delete is not supported by this connector.
  • delete_one(record_id, hard=True) performs a hard delete and returns:
    • True if deleted
    • False if the record does not exist

Testing

Run default tests (excluding external-service integration tests):

pytest -m "not integration" -q

Run integration tests (real Airtable):

pytest -m integration -q

Integration test environment variables

  • AIRTABLE_API_KEY
  • AIRTABLE_BASE_ID
  • AIRTABLE_TABLE_NAME

If these are not set, integration tests will skip.

Development

Run all tests:

pytest -q

Run linting/type checks (if configured in your environment):

ruff check .
pyright

License

This project is licensed under the MIT License - see the LICENSE file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aracnid_airtable-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aracnid_airtable-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file aracnid_airtable-1.0.0.tar.gz.

File metadata

  • Download URL: aracnid_airtable-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aracnid_airtable-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5b9b3b082b4c4be41f89c098428fd15e0591ada59844b3dfcfd66a857840d1eb
MD5 c28a3436c37c6cd60c6f0c24a62d76f3
BLAKE2b-256 0f7fb0c4d1b709610fbbf99bae18049ea598055387da85d490cc95f3ee255b70

See more details on using hashes here.

Provenance

The following attestation bundles were made for aracnid_airtable-1.0.0.tar.gz:

Publisher: publish.yml on aracnid/aracnid-airtable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aracnid_airtable-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aracnid_airtable-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d90684a67c1257f6b894a590503b3f51ccd7f7420822e879d7f26eeba9165ef0
MD5 f3f9bfab07f0fce18018b34d7c4f0acd
BLAKE2b-256 ee9e90e62af7d8bcb3e7dbea970925e3eab5e29a1ad86fd7596ebf91516f8fa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for aracnid_airtable-1.0.0-py3-none-any.whl:

Publisher: publish.yml on aracnid/aracnid-airtable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page