{ "info": { "author": "Nathan Cahill", "author_email": "nathan@nathancahill.com", "bugtrack_url": null, "classifiers": [], "description": "MimicDB\n-------\n\n|PyPI| |Build Status| |Coverage Status|\n\nPython Implementation of MimicDB\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nThe Python implementation of MimicDB works with the Boto library and several\ndifferent backends including Redis.\n\nInstallation\n^^^^^^^^^^^^\n\nBy default, MimicDB requires Redis (although other backends can be used\ninstead).\n\n::\n\n $ pip install boto\n $ pip install redis\n $ pip install mimicdb\n\nQuickstart\n^^^^^^^^^^\n\nIf you're using Boto already, replace ``boto`` imports with ``mimicdb``\nimports.\n\nChange:\n\n::\n\n from boto.s3.connection import S3Connection\n from boto.s3.key import Key\n\nTo:\n\n::\n\n from mimicdb.s3.connection import S3Connection\n from mimicdb.s3.key import Key\n\nAdditionally, import the MimicDB object itself, and initiate the\nbackend:\n\n::\n\n from mimicdb import MimicDB\n MimicDB()\n\nAfter establishing a connection for the first time, sync the connection\nto save the metadata locally:\n\n::\n\n conn = S3Connection(KEY, SECRET)\n conn.sync()\n\nOr sync only a couple buckets from the connection:\n\n::\n\n conn.sync('bucket1', 'bucket2')\n\nAfter that, upload, download and list as you usually would. API calls\nthat can be responded to locally will return instantly without hitting\nS3 servers. API calls that are made to S3 using MimicDB will be mimicked\nlocally to ensure consistency with the remote servers.\n\nPass ``force=True`` to most functions to force a call to the S3 API.\nThis also updates the local database.\n\nAlternate Backends\n^^^^^^^^^^^^^^^^^^\n\nBesides the default Redis backend, MimicDB has SQLite and in-memory\nbackends available.\n\n::\n\n from mimicdb.backends.sqlite import SQLite\n MimicDB(SQLite())\n\n::\n\n from mimicdb.backends.memory import Memory\n MimicDB(Memory())\n\nDocumentation\n^^^^^^^^^^^^^\n\n`mimicdb.readthedocs.org `_\n\nContributing\n^^^^^^^^^^^^\n\n1. Fork the repo.\n2. Run tests to ensure a clean, working slate.\n3. Improve/fix the code.\n4. Add test cases if new functionality introduced or bug fixed (100%\n test coverage).\n5. Ensure tests pass.\n6. Push to your fork and submit a pull request to the develop branch.\n\nTests\n^^^^^\n\nRun tests after installing nose and coverage.\n\n::\n\n $ nosetests --with-coverage --cover-package=mimicdb\n\nIntegration testing is provided by Travis-CI at\n`travis-ci.org/nathancahill/mimicdb `_\n\nTest coverage reporting is provided by Coveralls at\n`coveralls.io/r/nathancahill/mimicdb `_\n\nBenchmarks\n^^^^^^^^^^\n\nRun ``benchmarks.py`` in the root of the repo:\n\n::\n\n $ python benchmarks.py\n Boto Time: 0.338411092758\n MimicDB Time: 0.00015789039612\n Factor: 2143x faster\n\nLicense\n^^^^^^^\n\nMimicDB is BSD licensed.\n\n.. |PyPI| image:: http://img.shields.io/pypi/v/mimicdb.svg?style=flat\n :target: https://pypi.python.org/pypi/mimicdb/\n.. |Build Status| image:: http://img.shields.io/travis/nathancahill/mimicdb/master.svg?style=flat\n :target: https://travis-ci.org/nathancahill/mimicdb\n.. |Coverage Status| image:: http://img.shields.io/coveralls/nathancahill/mimicdb/master.svg?style=flat\n :target: https://coveralls.io/r/nathancahill/mimicdb", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nathancahill/mimicdb", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "MimicDB", "package_url": "https://pypi.org/project/MimicDB/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/MimicDB/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nathancahill/mimicdb" }, "release_url": "https://pypi.org/project/MimicDB/1.0.5/", "requires_dist": null, "requires_python": null, "summary": "Python implementation of MimicDB", "version": "1.0.5" }, "last_serial": 1513651, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "1eb42443ed8279e86e87cf69049c319c", "sha256": "8bea7145b050881357cf625d8fa020ff01a6e8c8ec387be53c14c7ef3fd9b061" }, "downloads": -1, "filename": "MimicDB-0.1.tar.gz", "has_sig": false, "md5_digest": "1eb42443ed8279e86e87cf69049c319c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1457, "upload_time": "2013-11-19T22:45:58", "url": "https://files.pythonhosted.org/packages/e6/0f/f930b20f1d853140109596d3145909ed4d948bf750222ae3f710b4daf711/MimicDB-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f527fb8a4f0720f262f62372c1312c20", "sha256": "6967d7354146a05e612f2561744e4123c2c7a8405e0c012383443d6facb1b85b" }, "downloads": -1, "filename": "MimicDB-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f527fb8a4f0720f262f62372c1312c20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2157, "upload_time": "2013-11-19T22:50:58", "url": "https://files.pythonhosted.org/packages/91/1e/b250c3c143d750dff139acfddb7ffa03cfe4ddc186bafb0901287cb841f2/MimicDB-0.1.1.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "952634e6a4b9f2912b32ebd0454c7550", "sha256": "04ed6883f310c68370a9057f09770db7e0879fbfa6bf498cbbe4fa9063f27323" }, "downloads": -1, "filename": "MimicDB-1.0.tar.gz", "has_sig": false, "md5_digest": "952634e6a4b9f2912b32ebd0454c7550", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8006, "upload_time": "2014-09-02T00:09:58", "url": "https://files.pythonhosted.org/packages/75/1a/109dde88d14a08ebac3bb0cbd3265b514112f51627feadd234f0bfc0cc1d/MimicDB-1.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "ac7e2acb01a157fa1c298d7d46fced4a", "sha256": "c3886c449582fc961c8993c7f0eaf5e1f99213a96c6f580733c3a70898cab6db" }, "downloads": -1, "filename": "MimicDB-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ac7e2acb01a157fa1c298d7d46fced4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8018, "upload_time": "2014-09-02T00:16:22", "url": "https://files.pythonhosted.org/packages/80/27/4f037f584cc9dfab91f505718f4afa90a3e607140f71f6b8c6d2397ad9cc/MimicDB-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "336a0c1143ba9fc8ce615dbfae28bc40", "sha256": "9897b96c63d1f39848d559d2e8e5490186e1886c1ada8e6b903bdcd8b2a2d084" }, "downloads": -1, "filename": "MimicDB-1.0.1.tar.gz", "has_sig": false, "md5_digest": "336a0c1143ba9fc8ce615dbfae28bc40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8010, "upload_time": "2014-09-02T00:21:24", "url": "https://files.pythonhosted.org/packages/84/2e/152ea40dd29de39d9ad41bbee1f07d80599c9b9af66dee367e794bb58641/MimicDB-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "b6b72a107ea84f265ed3fee74285a3dd", "sha256": "53d03af4720e9913f512b155364f314210d52e4bd138fa22426579f4ae57fd32" }, "downloads": -1, "filename": "MimicDB-1.0.2.tar.gz", "has_sig": false, "md5_digest": "b6b72a107ea84f265ed3fee74285a3dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8350, "upload_time": "2014-09-02T06:44:02", "url": "https://files.pythonhosted.org/packages/53/ba/865d877ec693eea6c533af5a281fb7b86731a98c07a274bad6ad2f60ffb5/MimicDB-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "3bd94fe4250c3a6836579e83e48a6059", "sha256": "48596cdad941e6de755d5e315434a0868130753720de5cef0c904d5b85a5e533" }, "downloads": -1, "filename": "MimicDB-1.0.3.tar.gz", "has_sig": false, "md5_digest": "3bd94fe4250c3a6836579e83e48a6059", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8342, "upload_time": "2014-09-08T16:59:46", "url": "https://files.pythonhosted.org/packages/be/81/1ce6d75fe385fa704107d6459da9d930a00a2c69a7a9332cb9a3ba9ac23f/MimicDB-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "26dc65510d85688ef0936836567de093", "sha256": "19d13d81adff3d33552c7eaab8b5418fde9c068452c96b48821640741a944e65" }, "downloads": -1, "filename": "MimicDB-1.0.4.tar.gz", "has_sig": false, "md5_digest": "26dc65510d85688ef0936836567de093", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8317, "upload_time": "2015-04-20T21:24:54", "url": "https://files.pythonhosted.org/packages/05/97/cc78f88db2a03820e4bfa9a16f17190c515be1420ae2f9cc34f54ff75dba/MimicDB-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "201f0b16803718418d7f4a893007e7f0", "sha256": "404b9df4cbc4ff9a535d5c7a1a4c1ec4529db95a37285d7020776865b3155014" }, "downloads": -1, "filename": "MimicDB-1.0.5.tar.gz", "has_sig": false, "md5_digest": "201f0b16803718418d7f4a893007e7f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8315, "upload_time": "2015-04-20T22:01:01", "url": "https://files.pythonhosted.org/packages/b3/a4/69ea29b33e89200ce7d069170fcbc6804da8b516ba4cf070e2cc3a3fa513/MimicDB-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "201f0b16803718418d7f4a893007e7f0", "sha256": "404b9df4cbc4ff9a535d5c7a1a4c1ec4529db95a37285d7020776865b3155014" }, "downloads": -1, "filename": "MimicDB-1.0.5.tar.gz", "has_sig": false, "md5_digest": "201f0b16803718418d7f4a893007e7f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8315, "upload_time": "2015-04-20T22:01:01", "url": "https://files.pythonhosted.org/packages/b3/a4/69ea29b33e89200ce7d069170fcbc6804da8b516ba4cf070e2cc3a3fa513/MimicDB-1.0.5.tar.gz" } ] }