Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Airtable integration for Django-based projects

Project description

travis pypi coveralls requiresio

Airtable integration for Django-based projects

This project’s target is to make the Airtable import easier in Django-based applications.

Installation

Add aa_airtable to your app’s INSTALLED_APPS, and also set AIRTABLE_SETTINGS in project settings. After all please migrate the app (./manage.py migrate aa_airtable).

Settings

  • API_KEY - Airtable API key.
  • DATABASES - Database settings eg. ("Media", "tests.parsers.MediaParser") where Media is table name and tests.parsers.MediaParser is path to table parser
  • ENDPOINT_URL - Airtable API endpoint url.
  • DATA_DIRECTORY - Folder with json data backups.
  • FILES_DIRECTORY - Folder with uploaded files to airtable.
  • SAVE_FILES - Should library save uploaded files (default: True)

Example Parser

from aa_airtable.parser import AbstractParser
class ArticleParser(AbstractParser):
    model = Article
    raw_fields = [
        "Name",
        ("custom_name", "Title"),
        "Description",
    ]
    related_fields = [
        ("gallery", "Gallery", Media),
    ]
    file_fields = [
        "NY Logo"
    ]

Support

  • Django 1.11
  • Python 3.4-3.6

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
aa_airtable-0.2-py2.py3-none-any.whl (19.1 kB) Copy SHA256 hash SHA256 Wheel 3.6
aa_airtable-0.2.tar.gz (8.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page