Skip to main content

Python ORM for Airtable tables

Installation

pip install airtable-orm

Usage

from dataclasses import dataclass
# Importing library
from airtable_orm import AirtableORM

# Initialize the object and get the session
orm = AirtableORM("airtable://:<YOUR API KEY>@<YOUR APP KEY>")
session = orm.get_session()

# Create your data class with properties same as your Airtable tables
# The name of the class muse be matched to the Airtable table name
@dataclass
class MyEntity:
    id: str
    name: str

# Create new object for the dataclass
new_entity = MyEntity("id#1", "My name")

# Run add() to create new entry
session.add(new_entity)

# Run commit() to save the data to Airtable
session.commit()

To list all the data as object

data = session.query(MyEntity).all()
for _ in data:
    print(_.name)

Release files for airtable-orm 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airtable-orm 1.0.4
File Size Uploaded
airtable_orm-1.0.4.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airtable-orm 1.0.4
File Interpreter ABI Platform
airtable_orm-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size:9.0 kB

Release files / airtable_orm-1.0.4.tar.gz

Download URL airtable_orm-1.0.4.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ad046fe1c1a12a35a24a1f79c65e1488d2368dc5d220d980899420234d34242e
BLAKE2b-256 checksum
How to use checksums
02c2839b5374e22cf3824ec6f2bc325208784af2706573b4eef7aef794abfd50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / airtable_orm-1.0.4-py3-none-any.whl

Download URL airtable_orm-1.0.4-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c628a396e463bc4e46025dad7599972b611a3375bbb7a7df88969f597ef440d
BLAKE2b-256 checksum
How to use checksums
77d99df208cf96397081caab1674f4e5672619ad00d05f1361e67ceec5fe7111
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page