atomicdata-dev / atomic-server

An open source headless CMS / real-time database. Powerful table editor, full-text search, and SDKs for JS / React / Svelte.
https://atomicserver.eu
MIT License
1.05k stars 48 forks source link

Example API: how to use Atomic Data server from Python #399

Open AlexMikhalev opened 2 years ago

AlexMikhalev commented 2 years ago

Subj. We will be able to demonstrate the Atomic Data server and plug it into data pipeline tooling.

joepio commented 2 years ago

Using from python currently entails using any HTTP + JSON parsing library, I guess.

But ideally, we'd have something similar to @tomic/lib for Python.

Although, I'm not sure if we're talking about the same thing: I'm mostly thinking about using Atomic Server as some client, reading data and perhaps making some commits.

AlexMikhalev commented 2 years ago

use case: I would like to expand my notion to markdown export script to land data into atomic data server, https://alexmikhalev.medium.com/obsidian-to-notion-sync-manual-import-export-49ad429a6533 , I would like to have a doc/example where I can start.

joepio commented 2 years ago

I think the JSON-AD path is the easiest for this. I’ve added some pages to the docs about this. Doesn’t mention python, but should be enough for an intermediate dev to get started. What do you think?

https://docs.atomicdata.dev/create-json-ad.html

AlexMikhalev commented 2 years ago

Exactly, we just need to write the same calls using python-requests and write a blog posts.