Skip to main content

Floe

Project description

# Floe Microservice

This presents a simple key value data store with a list of ids and configurable backends.

## Configuration You can configure docker with environmental variables.

new relic can use the standard environmental variables:

https://docs.newrelic.com/docs/agents/python-agent/installation-configuration/python-agent-configuration#environment-variables

then you can add additonal environmental vars for backends.

` FLOE_URL_FOO='file://.floe' FLOE_URL_BAR='file:///tmp/floe' FLOE_URL_BAZZ='mysql://root:pass@127.0.0.1:3306/test?table=bazz' FLOE_URL_QUUX='http://127.0.0.1:995/my_namespace' `

## API You can add other connectors. The interface provides the following methods:

  • get

  • get_multi

  • set

  • set_multi

  • delete

  • delete_multi

  • ids

  • flush

The ids method returns a generator to iterate. The multi methods allow you do do batch operations on multiple keys.

## Running Locally

Due to some inconsistencies with the way request bodies are handled in different WSGI implementations, PUT requests with a missing or incorrect Content-Length header may hang (https://falcon.readthedocs.io/en/stable/user/faq.html#why-does-req-stream-read-hang-for-certain-requests).

An easy workaround for this when running the server locally is to use gunicorn rather than wsgiref.simple_server

` $ pip install gunicorn $ gunicorn -w 4 run:app `

## Publishing new versions

  1. Set a new version number in floe/version.py

  2. ./activate to set up and enter the project venv

  3. ./publish.sh to create source and binary distributions and upload them to pypi using the twine tool

Credentials for pypi are stored in 1password

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

floe-0.0.15.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

floe-0.0.15-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file floe-0.0.15.tar.gz.

File metadata

  • Download URL: floe-0.0.15.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.18

File hashes

Hashes for floe-0.0.15.tar.gz
Algorithm Hash digest
SHA256 c0ed750f6915b44bed49468c82a4cdbb160251564d5c30867ae17ebf860731d0
MD5 1bdcbf70b1a2fe55642de6b2972d87d0
BLAKE2b-256 f4a217047e8c129ebc40972ae7bb4f447bca90718e96b2ca8ef6d1181033df8e

See more details on using hashes here.

File details

Details for the file floe-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: floe-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.18

File hashes

Hashes for floe-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 d750de2882fd490726e907dc7ab427d2602ff73845f3432f3c2056928a2a798a
MD5 b9b5298234f49a6175a173dc0ad24d40
BLAKE2b-256 90a0494b81eaab7d190a23daa9501f9f456c579fb58cf2b4eaf1afa46666a72b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page