• This repository has been archived on 24/Apr/2018
  • Stars
    star
    481
  • Rank 91,384 (Top 2 %)
  • Language
    Python
  • Created over 11 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A persistent, full-text searchable key-value store. Powered by Flask, ElasticSearch, S3, and good intentions.

Elephant

Elephant is an S3-backed key-value store with querying powered by Elastic Search. Your data is persisted on S3 as simple JSON documents, but you can instantly query it over HTTP.

Suddenly, your data becomes as durable as S3, as portable as JSON, and as queryable as HTTP. Enjoy!

Usage

>>> requests.post('http://elephant-server/', data={'title': 'Test Page', 'draft': True})
<Response [200]>

>>> requests.get('http://elephant-server/', params={'q': 'draft:True'}).json()
{u'records': [{u'epoch': 1364286524987, u'title': u'Test Page', u'uuid': u'ce251e8a-ab6b-4f7e-bdc4-eecf0e71ac16'}}

Configuration

Elephant expects the following environment variables to be set:

# AWS Credentials
BYODEMO_BUCKET_NAME = xxxxxx
BYODEMO_AWS_ACCESS_KEY_ID = xxxxxx
BYODEMO_AWS_SECRET_ACCESS_KEY = xxxxxx

# Elastic Search Server
FOUNDELASTICSEARCH_URL = xxxxxx
ES_PASSWORD = xxxxxx

If you need a production Elastic Search instance, checkout searchly and heroku-elasticsearch.

Management

Reseeding ElasticSearch is super simple:

$ python elephant.py seed
Creating Index...
Indexing...
[####                            ] 29/378

Inspiration

Extracted out of the in-progress blackbox project.

More Repositories

1

osx-gcc-installer

GCC Installer for OSX! Without Xcode!
Python
3,049
star
2

envoy

Python Subprocesses for Humansâ„¢.
Python
2,266
star
3

flask-sslify

Force SSL on your Flask app.
Python
504
star
4

markdownplease.com

Give it a URL, it'll give you Markdown. Powered by Readability.
HTML
203
star
5

wsl-guide

The Hitchhiker's Guide to Bash on Ubuntu on Windows!
Python
189
star
6

dream-python

Individual dreams for Python and its community.
187
star
7

flango

A Django template for using Flask for the frontend, Django for the backend.
Python
183
star
8

pipenvlib

A library for manipulating Pipenv projects.
Python
133
star
9

github-reflog

The GitHub Reflog™ — the weekly chronicle of awesome repos
88
star
10

talks

My conference talks
86
star
11

pysoundcloud

Scraping the Un–scrapable™
Python
63
star
12

typy.io

just typeâ„¢
Python
49
star
13

omnijson

Like AnyJSON, but better.
Python
43
star
14

python-for-humans

Talk from PyCodeConf.
Ruby
42
star
15

goldenarch

Serves crap. Fast.
Python
40
star
16

knative-for-humans

Knative for Humans (for Kubernetes) -- a work in progress
Batchfile
35
star
17

click-tools

Command-Line utilities for Click (extracted from Clint).
Python
30
star
18

records-migrate

A migration system for Records.
Python
29
star
19

now.httpbin.org

An API (for Humans) for converting timestamps.
Python
24
star
20

team

KR Org stuff.
21
star
21

super-sphere2

A minimal action game by Kenneth Reitz.
Lua
20
star
22

humble

Python version of seejohnrun/vain
Python
16
star
23

SlashWear

"Kenneth is the Computer Guru. The King of Programmers!!!!!!"
16
star
24

morepython.org

Python
14
star
25

unmastered-impulses

Infinite State's first album.
14
star
26

Flask-Caster

A simple Flask extension for automatically casting the type of query arguments.
Python
13
star
27

pipenv-docker-tests

A public repo for a docker image to speed up docker tests for Pipenv.
12
star
28

convore.json

Full backup of all public Convore content.
CSS
11
star
29

pipenv-buildpack

A minimal buildpack for Pipenv.
Shell
11
star
30

pypidownloads-service

a PyPI downloads information web service, using GraphQL (and Flask!)
Python
9
star
31

alphaglyph

Αμπθαημπθ: Ησεελ Μευυεστ ζοσ Yοφ αξδ Ι
Python
8
star
32

uuid4

CLI for uuid4
7
star
33

git-legit.org

The Official Websiteâ„¢ of Legit.
CSS
7
star
34

tommorrow-night-italics-vscode

Tomorrow Night Italics for VSCode
4
star