atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Example API: how to use Atomic Data server from Python

Open AlexMikhalev opened this issue 3 years ago • 4 comments

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

AlexMikhalev avatar Apr 25 '22 18:04 AlexMikhalev

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.

joepio avatar Apr 25 '22 18:04 joepio

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.

AlexMikhalev avatar Apr 25 '22 21:04 AlexMikhalev

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

joepio avatar Apr 26 '22 06:04 joepio

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

AlexMikhalev avatar Apr 27 '22 07:04 AlexMikhalev