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:
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 `
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
Built Distribution
File details
Details for the file floe-0.0.14.tar.gz
.
File metadata
- Download URL: floe-0.0.14.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77001c2d1dd35b346ed9bf523a587b0602737716cea8403b6d7739815e4b5bc2 |
|
MD5 | f9932e1f72c61cfe5b84a1223049617d |
|
BLAKE2b-256 | 2c1484e5f6a9c761a9309c570ecd67da8c0dfb529d648519b515d64515d8a554 |
File details
Details for the file floe-0.0.14-py3-none-any.whl
.
File metadata
- Download URL: floe-0.0.14-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 483f68a7ca851603277a06e8a9e900dfd3960eec0e39a2168e1c0eda46992a5f |
|
MD5 | 72d2a8a34db7721f066f6edddc53b5a1 |
|
BLAKE2b-256 | 663247daf288acdd10abae30c3a33a38dee7267492200a3d0e7fa0726ad57ddd |