Skip to main content

# filedb Create a file that pretends to be a MongoDB collection. If you try to open the file, it will JSONify the collection and dump it back to you.

## Why? Because our enterprise database is file based, but our cloud based database isn’t.

## …no really why? Files are simpler and don’t break. The database operations we need to perform aren’t complicated and don’t require high performance. By using files there isn’t a database that can fail. There’s the added benefit that if customers want to use different types of databases for distributed systems, we can plug into any of them using a filedb (we just have to make something that dumps out JSON .

## Quickstart

#### Install FUSE Make sure you have [FUSE](http://fuse.sourceforge.net/) installed.

#### Get mongo running And you’ll need a collection with some data in it. `bash $ mongod `

`bash $ mongo > use test > db.people.insert({"username": "greg"}) > db.people.insert({"username": "phil"}) > db.people.insert({"username": "bob"}) > db.people.insert({"username": "samantha"}) `

#### Install filedb `bash $ pip install filedb `

#### Running via python `bash $ filedb /tmp/tutorial/mnt/ mongodb://localhost:27017/test people `

#### Open the file `bash $ cat /tmp/tutorial/mnt/db [{ "_id": "52f104a7a0fb769e0cd0d1d4", "username": "greg" } { "_id": "52f104a9a0fb769e0cd0d1d5", "username": "phil" } { "_id": "52f104aca0fb769e0cd0d1d6", "username": "bob" } { "_id": "52f104aea0fb769e0cd0d1d7", "username": "samantha" }] `

## Running as a service Upstart job. `bash # install the job $ sudo cp -R overlay/* / # or $ wget https://raw2.github.com/yhat/filedb/master/overlay/etc/init/filedb.conf $ sudo mv filedb.conf /etc/init/filedb.conf # start the job $ sudo start filedb `

Release files for filedb 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for filedb 0.2.1
File Size Uploaded
filedb-0.2.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for filedb 0.2.1
File Interpreter ABI Platform
filedb-0.2.1-py2.7.egg Legacy Egg format - - Details

Total release size: 8.0 kB

Release files / filedb-0.2.1.tar.gz

Download URL filedb-0.2.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d72b9927f24bc7177159c749f926f5dae74a5112382dc930dbf9252bd40443ae
BLAKE2b-256 checksum
How to use checksums
9873a97b56a1a49619758a6d870df46621d20b9403ace6f69f2c8a687e0adb0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / filedb-0.2.1-py2.7.egg

Download URL filedb-0.2.1-py2.7.egg
Size 5.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
62040c6cde76090921471dd8136ec0090d9e9db1a87af14ea81b290db3ca7bd6
BLAKE2b-256 checksum
How to use checksums
6fb6dee5149cc3a03b3e73d5c9d58fd287aff4be667f0d7368982c5ef45866ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.3

2 release files

0.2.2

2 release files

This release

0.2.1 This release

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page