Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

9 downloads

Install on DigitalOcean Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

Daniel Quellhorst Changelog for this batch. 65ef78d 3 hours, 49 minutes ago History
exchange.py · 738 bytes · 17 lines
1"""webhook_exchange -- the exchange endpoint: a partner's box delivers here.
2
3POST /webhooks/exchange, the core raw-body route: the exact bytes that
4arrived are what object_exchange_box.inbound verifies and, once every check
5passes, stores verbatim in exchange_inbox. Unauthenticated by nature (the
6caller is another company's server, not a user), so authenticity is the
7signatures against keys pinned for a connected partner; a public execute
8rule lets the request reach this object and nothing else. The answer is the
9signed receipt, or a refusal with a stable code; nothing from the request is
10reflected back.
11"""
12
13import object_exchange_box as box
14
15
16def POST(request):
17 return box.inbound(box.base_dir(), request.get("_raw_body"))