Airtable integration for Django-based projects
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aa_airtable-0.2.tar.gz
.
File metadata
- Download URL: aa_airtable-0.2.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ab6ac5b2febb75b6049f002837d28d99d05f88fcda9ca800bc2a40685c1ab0 |
|
MD5 | 0ddfda454ffb5aeacde2900de7c74bf0 |
|
BLAKE2b-256 | ee2d3eed630f4d6997d3ec450e052e7aec6d74f5066636a330f58e9d7bf127e0 |
File details
Details for the file aa_airtable-0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: aa_airtable-0.2-py2.py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9f8b8ee708dd26553a95dbb6f08f3998fb8b895d35352027a73a60614c8d273 |
|
MD5 | d5037d30639190cd1b4820bbd8e32bb5 |
|
BLAKE2b-256 | 2aa92bc9c30a40668a8864ec348a9839da0ded903bf28cdb6cd58dba8c50a827 |