omhq / fragments

Transform and compose data for HTTP transactions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fragments

Fragments is a platform to compose and manage custom data objects for HTTP transactions. Write simple jinja templates to represent a json or yaml payloads.

  • You can integrate different data sources, currently the project supports PostgreSQL and HTTP.
  • Run transformations on the data through custom or built-in functions.
  • Cache and serve the results over HTTP.

Alt text

Alt text

Development

By default the environment variables defined in dot_env folder are enough for local development. Bring up the services make up.

Backend

python -m venv .env
source .env/bin/activate
pip install -r server/requirements.txt
pip install black

make dev_server

Frontend

By default, frontend will point to the server on http://localhost:9001/v1.

npm install && npm run start

Encrypting connector secrets

By default, the project uses simple symmetric fernet encryption. You can roll your own encryption strategy depending on your deployment setup.

  • make generate_key
  • Set ENCRYPT_DATA=True and ENCRYPTION_KEY="your-generated-fernet-here".
  • make up

About

Transform and compose data for HTTP transactions.


Languages

Language:TypeScript 68.5%Language:Python 27.5%Language:Dockerfile 0.9%Language:Makefile 0.8%Language:CSS 0.8%Language:HTML 0.7%Language:JavaScript 0.7%