Airtable to Neo4j Data Ingestor written in Python
Project description
air2neo
Airtable to Neo4j data ingestor
Quickstart
from air2neo import Air2Neo, MetatableConfig
a2n = Air2Neo(
airtable_api_key,
airtable_base_id,
neo4j_uri,
neo4j_username,
neo4j_password,
MetatableConfig(
table_name, # "Metatable"
# Optionally, you can provide `table`,
# which is a pyairtable.Table object.
name_col, # "Name",
index_for_col, # "IndexFor",
constrain_for_col, # "ConstrainFor",
node_properties_col, # "NodeProperties",
edges_col, # "Edges",
node_properties_last_ingested_col, # "nodesLastIngested",
edges_last_ingested_col, # "edgesLastIngested",
airtable_id_property_in_neo4j, # "_aid" (The name of the property in Neo4j that stores the Airtable ID, defaults to)
format_edge_col_name, # "function that formats edge column names. Removes everything after a double-underscore, e.g. IN_INDUSTRY__BANK is renamed to IN_INDUSTRY",
airtable_api_key, # "Airtable API key",
airtable_base_id, # "Airtable base ID",
),
)
a2n.run()
If you have a .env file like so:
AIRTABLE_API_KEY=
AIRTABLE_BASE_ID=
AIRTABLE_METATABLE_NAME= # Optional, defaults to "Metatable"
NEO4J_URI=
NEO4J_USERNAME=
NEO4J_PASSWORD=
You just run the following:
from air2neo import Air2Neo
a2n = Air2Neo()
a2n.run()
Installation
$ pip install air2neo
Documentation
To be implemented. For now, please look at the code docstrings. Sorry about that!
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
air2neo-2.1.0.tar.gz
(12.8 kB
view details)
Built Distribution
File details
Details for the file air2neo-2.1.0.tar.gz
.
File metadata
- Download URL: air2neo-2.1.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e63d9f1fc12258c44aa951b077634f65517f47f60479cdd67e580f5d88162047 |
|
MD5 | e9c7f9ad75cbb248483460d8a78a904c |
|
BLAKE2b-256 | ab225ae7899ec2c1ac4c9fa532a204fee28fef37b5f2464b2b9d3c581d6b6265 |
File details
Details for the file air2neo-2.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: air2neo-2.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 289ed32975fca441a852ed12977ccffb7e50a96f7d17ba02b9a8b555eb129d75 |
|
MD5 | bdce26777d47acf53cdcadd7d0f063cd |
|
BLAKE2b-256 | 90c96b9b9c05d6aac79c35891c190e3388c840dc2333bd4edbbf8df10720cabd |