{ "info": { "author": "Matwey V. Kornilov", "author_email": "matwey.kornilov@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# django-eremaea2\n\n[![Build Status](https://travis-ci.org/matwey/django-eremaea2.svg?branch=master)](https://travis-ci.org/matwey/django-eremaea2)\n[![PyPI version](https://badge.fury.io/py/django-eremaea2.svg)](https://badge.fury.io/py/django-eremaea2)\n\ndjango-eremaea2 is a simple [Django] application to store and manage webcam image snapshots.\nThe application is built on top of [django-rest-framework] and provides REST API to access the files.\n\nThere are three kind of resources available through REST API interface.\nA *collection* is a collection of *snapshots*.\nA *snapshot* is image file in essence.\nFor any *snapshot* there is a *retention policy* associated with to specify how long store the file.\n\n## Installation\n\nThe following prerequisites are required to operate django-eremaea2:\n* [django-rest-framework] - powerful and flexible toolkit that makes it easy to build Web APIs.\n* [dj-inmemorystorage] - a non-persistent in-memory data storage backend for Django (required for testing).\n\nTo use django-eremaea2 in your django project, include the following code into your ```settings.py```:\n```\nINSTALLED_APPS = (\n #...\n 'rest_framework',\n 'eremaea',\n)\n```\n\nInto your ```urls.py``` you have to add the following:\n```\nurlpatterns = patterns('',\n #...\n url(r'^eremaea/', include('eremaea.urls')),\n)\n```\n\n## Configuration\nThe whole configuration is stored into the project database, there is not separate dedicated config file.\n\nThe ```RetentionPolicy``` model has two parameters: a lookup field ```name``` and ```duration``` that specifies time-to-live for associated objects.\nTo perform actual cleanup a POST request to the endpoint ```http://example.com/eremaea/retention_policies/{name}/purge``` is required.\nThe ```Collection``` model has two parameters: a lookup field ```name``` and ```default_retention_policy```.\nThe ```Snapshot``` model has the following field: associated ```collection``` and ```retention_policy```, ```file``` object, and auto-now ```date```.\nNew images are uploaded by POST request to the endpoint ```http://example.com/eremaea/snapshots/?collection=collection_name&retention_policy=retention_policy_name```.\nThe latest query parameter is optional one.\n\nThe other ways to configure the application are Django fixtures, Django admin interface, [django-rest-framework] web browsable interface, and REST API itself.\n\n## Authentication and permissions\nYou may utilise all possible options provided by [django-rest-framework]. See [Tutorial](http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/) for reference.\n\n## Caching\nYou may utilise all caching mechanisms provided by [Django] framework. See [Django's cache framework](https://docs.djangoproject.com/en/dev/topics/cache/).\n\n## Feedback\nIf you have any questions, issues, or pull-requests, you are welcome to use GitHub infrastructure.\n\n## License\n\nCopyright (c) 2016, Matwey V. Kornilov\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\n[Django]:https://www.djangoproject.com/\n[django-rest-framework]:http://www.django-rest-framework.org\n[dj-inmemorystorage]:https://pypi.python.org/pypi/dj-inmemorystorage\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/matwey/django-eremaea2", "keywords": "", "license": "BSD-2-Clause", "maintainer": "", "maintainer_email": "", "name": "django-eremaea2", "package_url": "https://pypi.org/project/django-eremaea2/", "platform": "", "project_url": "https://pypi.org/project/django-eremaea2/", "project_urls": { "Homepage": "https://github.com/matwey/django-eremaea2" }, "release_url": "https://pypi.org/project/django-eremaea2/2.0.13/", "requires_dist": [ "Django", "djangorestframework", "requests", "cmdln" ], "requires_python": "", "summary": "A simple Django application to store and show webcam snapshots", "version": "2.0.13" }, "last_serial": 3616648, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "0c3a1b76718561655ef216ad91ce2efe", "sha256": "24f63a7984dfb935eb493a12b4920293c82ecf456b5b5abe669959d073d8642f" }, "downloads": -1, "filename": "django-eremaea2-2.0.0.tar.gz", "has_sig": false, "md5_digest": "0c3a1b76718561655ef216ad91ce2efe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15652, "upload_time": "2016-04-01T10:51:07", "url": "https://files.pythonhosted.org/packages/59/8b/5e25557df287115a32712d83172c1b1d3871628df280af03dd79b6c38e99/django-eremaea2-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "8f8e104899511d92754e2ab529628382", "sha256": "1c68bbef6b139626f6ce629a76d443978593b28105d1126fc6aa2ec9da6bef24" }, "downloads": -1, "filename": "django-eremaea2-2.0.1.tar.gz", "has_sig": false, "md5_digest": "8f8e104899511d92754e2ab529628382", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10927, "upload_time": "2016-04-01T10:55:51", "url": "https://files.pythonhosted.org/packages/d8/18/ddb5f69a30ca41c83ee4553ff06d7f6e8fa9acb525ac6f1b5bbd226f1460/django-eremaea2-2.0.1.tar.gz" } ], "2.0.10": [ { "comment_text": "", "digests": { "md5": "b77497f0f228e5b4adcf69b4c301f578", "sha256": "a92adba25772a8e840d2bd31e6f54d7ec0c3f81b8771963d618aeb9063bc3dec" }, "downloads": -1, "filename": "django-eremaea2-2.0.10.tar.gz", "has_sig": false, "md5_digest": "b77497f0f228e5b4adcf69b4c301f578", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14802, "upload_time": "2017-08-06T11:49:49", "url": "https://files.pythonhosted.org/packages/75/43/7ca4d1188e83a2012cfe9ec5c13384765156daea210355368750728f2627/django-eremaea2-2.0.10.tar.gz" } ], "2.0.10.1": [ { "comment_text": "", "digests": { "md5": "dee0577953ed4c7d9ad6d523f88f3a0a", "sha256": "75a072bf170e89b71ee1ebb3b9ce97391f35027d7c32cc7f48c32e2057d43fc5" }, "downloads": -1, "filename": "django-eremaea2-2.0.10.1.tar.gz", "has_sig": false, "md5_digest": "dee0577953ed4c7d9ad6d523f88f3a0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14794, "upload_time": "2017-08-06T13:42:34", "url": "https://files.pythonhosted.org/packages/62/ce/57cb24c20049695dc56983c7a41cd679625d73d2fd2253d33d7937fcbfc4/django-eremaea2-2.0.10.1.tar.gz" } ], "2.0.11": [ { "comment_text": "", "digests": { "md5": "17b2e85fc83088118e064812d7ed9503", "sha256": "a4c5a4ef5f2bd04c9e55de1a4455ce4a959e4d028de7e61e8900948f59c5781a" }, "downloads": -1, "filename": "django-eremaea2-2.0.11.tar.gz", "has_sig": false, "md5_digest": "17b2e85fc83088118e064812d7ed9503", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14522, "upload_time": "2017-12-23T17:46:38", "url": "https://files.pythonhosted.org/packages/60/91/d0f44ddfafaf8e5a5d6aa03ec46d86b3b8558f27b4d1d570e9cbfe314070/django-eremaea2-2.0.11.tar.gz" } ], "2.0.12": [ { "comment_text": "", "digests": { "md5": "8abe0bee9259b0f3486eab371be90dad", "sha256": "a67adc480b2ff66eab1616637bce0c9d98ab6797ffa7319686244a35877ed01a" }, "downloads": -1, "filename": "django-eremaea2-2.0.12.tar.gz", "has_sig": false, "md5_digest": "8abe0bee9259b0f3486eab371be90dad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14650, "upload_time": "2017-12-24T10:00:03", "url": "https://files.pythonhosted.org/packages/49/8b/0a99dcf663bdc6001bbd80d31ac93a3312eeaacabbbd747f0a9b93284809/django-eremaea2-2.0.12.tar.gz" } ], "2.0.13": [ { "comment_text": "", "digests": { "md5": "30c8acc2180c31a2e3e96f708aef6e7b", "sha256": "dcb26fd654a878f1a817db4de8c8d4bed075af10fbb945469c763419404bb713" }, "downloads": -1, "filename": "django_eremaea2-2.0.13-py2-none-any.whl", "has_sig": false, "md5_digest": "30c8acc2180c31a2e3e96f708aef6e7b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13871, "upload_time": "2018-02-26T09:26:09", "url": "https://files.pythonhosted.org/packages/35/10/7510b5ceb612eeb1af0a271ee3c54279a2696e2afb321d1eaeb346feeed9/django_eremaea2-2.0.13-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f2ab899cd30393c9f3c151fe98337223", "sha256": "8cf9eaabbf273eec862e5c14e72b0226c8af6343564cd99ab11f29749fa46acb" }, "downloads": -1, "filename": "django_eremaea2-2.0.13-py3-none-any.whl", "has_sig": false, "md5_digest": "f2ab899cd30393c9f3c151fe98337223", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13872, "upload_time": "2018-02-26T09:27:48", "url": "https://files.pythonhosted.org/packages/84/97/83af83202590a733620b241f72de9eb1101e34a498fe68018638bd05f465/django_eremaea2-2.0.13-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9cf3e7f780ccf28b5e262747f7a5e773", "sha256": "b214792b473b294cc41ed3a016115cb82652b15a558fba738ffd306e0a9a46a5" }, "downloads": -1, "filename": "django-eremaea2-2.0.13.tar.gz", "has_sig": false, "md5_digest": "9cf3e7f780ccf28b5e262747f7a5e773", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14680, "upload_time": "2018-02-26T09:26:10", "url": "https://files.pythonhosted.org/packages/83/0e/ad195fb399c0181de35c054005754b379223d74d06166214237a3e14b84e/django-eremaea2-2.0.13.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "6608f567597ef79207affe299a355ea4", "sha256": "964a959ba877ce691bf8b108cf8e41a0a0d3aa52c395c08e82b27f44c26d06df" }, "downloads": -1, "filename": "django-eremaea2-2.0.2.tar.gz", "has_sig": false, "md5_digest": "6608f567597ef79207affe299a355ea4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11503, "upload_time": "2016-04-03T09:12:43", "url": "https://files.pythonhosted.org/packages/57/e0/1aebc04c9efcc3c7a198d97905bf1f0705e4fc99da5b0cea2862fa49950f/django-eremaea2-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "870b8cfcd5952a6180ab55547529ee08", "sha256": "5177ee7c281b3b1f3cd49611ff8065f29738332e7a2d1aa3932e8814f8caf2af" }, "downloads": -1, "filename": "django-eremaea2-2.0.3.tar.gz", "has_sig": false, "md5_digest": "870b8cfcd5952a6180ab55547529ee08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13488, "upload_time": "2016-04-10T10:40:52", "url": "https://files.pythonhosted.org/packages/8c/70/19f7b11fce86a1cfcd12a1b1e9bc301f11d2e84a15d4563e4be24204e6cf/django-eremaea2-2.0.3.tar.gz" } ], "2.0.4": [ { "comment_text": "", "digests": { "md5": "e7e0537d746aca8b593d4c0e131e69f0", "sha256": "fe87e058fffef0742d80ecfa4bf2949d7244bbce00d3525f9488ec41275bc633" }, "downloads": -1, "filename": "django-eremaea2-2.0.4.tar.gz", "has_sig": false, "md5_digest": "e7e0537d746aca8b593d4c0e131e69f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13840, "upload_time": "2016-04-10T10:55:05", "url": "https://files.pythonhosted.org/packages/81/83/bffe31b0472a47dd2e82825b804b881603cc350bc20a388d3f324e4c0e1c/django-eremaea2-2.0.4.tar.gz" } ], "2.0.5": [ { "comment_text": "", "digests": { "md5": "608a1975c85b00d39c1c8c277555a8e1", "sha256": "c6f83f521502ff1133d858bfdcfdf3c42666ce50833e168e5da68141f8d14ab1" }, "downloads": -1, "filename": "django-eremaea2-2.0.5.tar.gz", "has_sig": false, "md5_digest": "608a1975c85b00d39c1c8c277555a8e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13905, "upload_time": "2016-04-10T12:02:51", "url": "https://files.pythonhosted.org/packages/7f/ad/450546d5da705dada421c11c2e6da7fef7bab658dc59ded924da109b2e05/django-eremaea2-2.0.5.tar.gz" } ], "2.0.6": [ { "comment_text": "", "digests": { "md5": "e5ab1b37622bf28780ac354c8a39561c", "sha256": "c50a79ede81409930ec05342bc201c8c357a87e1a030a2d1eef197fac39b8faa" }, "downloads": -1, "filename": "django-eremaea2-2.0.6.tar.gz", "has_sig": false, "md5_digest": "e5ab1b37622bf28780ac354c8a39561c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14244, "upload_time": "2016-06-21T16:23:20", "url": "https://files.pythonhosted.org/packages/51/c0/8d2f1bfecfa8d786bd98aecc62b038681b5adb3048fa63c52e16e2886194/django-eremaea2-2.0.6.tar.gz" } ], "2.0.8": [ { "comment_text": "", "digests": { "md5": "1b8d771b529906f9dcb1ca1c1f9a6194", "sha256": "41a4ed96466d7cff35176c961832873e513c4882ee2c7f5dd6a039e34951f830" }, "downloads": -1, "filename": "django-eremaea2-2.0.8.tar.gz", "has_sig": false, "md5_digest": "1b8d771b529906f9dcb1ca1c1f9a6194", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14572, "upload_time": "2016-08-10T17:07:01", "url": "https://files.pythonhosted.org/packages/72/3b/1a1ba1ef89b5c22e5ae7845bdad79e53bdb17ed4ff50c466b9675a548c95/django-eremaea2-2.0.8.tar.gz" } ], "2.0.9": [ { "comment_text": "", "digests": { "md5": "8f29c1c5c95caf43655880e165c6c71e", "sha256": "d7e37376c034c897479759d568ff2a05fd1c2a607ad0b04d635259214b836c5a" }, "downloads": -1, "filename": "django-eremaea2-2.0.9.tar.gz", "has_sig": false, "md5_digest": "8f29c1c5c95caf43655880e165c6c71e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14577, "upload_time": "2016-08-31T16:38:44", "url": "https://files.pythonhosted.org/packages/09/2a/747a44a42cde9aac561cd66bb84acbadf033c3f0532f82ba282224d73472/django-eremaea2-2.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "30c8acc2180c31a2e3e96f708aef6e7b", "sha256": "dcb26fd654a878f1a817db4de8c8d4bed075af10fbb945469c763419404bb713" }, "downloads": -1, "filename": "django_eremaea2-2.0.13-py2-none-any.whl", "has_sig": false, "md5_digest": "30c8acc2180c31a2e3e96f708aef6e7b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13871, "upload_time": "2018-02-26T09:26:09", "url": "https://files.pythonhosted.org/packages/35/10/7510b5ceb612eeb1af0a271ee3c54279a2696e2afb321d1eaeb346feeed9/django_eremaea2-2.0.13-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f2ab899cd30393c9f3c151fe98337223", "sha256": "8cf9eaabbf273eec862e5c14e72b0226c8af6343564cd99ab11f29749fa46acb" }, "downloads": -1, "filename": "django_eremaea2-2.0.13-py3-none-any.whl", "has_sig": false, "md5_digest": "f2ab899cd30393c9f3c151fe98337223", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13872, "upload_time": "2018-02-26T09:27:48", "url": "https://files.pythonhosted.org/packages/84/97/83af83202590a733620b241f72de9eb1101e34a498fe68018638bd05f465/django_eremaea2-2.0.13-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9cf3e7f780ccf28b5e262747f7a5e773", "sha256": "b214792b473b294cc41ed3a016115cb82652b15a558fba738ffd306e0a9a46a5" }, "downloads": -1, "filename": "django-eremaea2-2.0.13.tar.gz", "has_sig": false, "md5_digest": "9cf3e7f780ccf28b5e262747f7a5e773", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14680, "upload_time": "2018-02-26T09:26:10", "url": "https://files.pythonhosted.org/packages/83/0e/ad195fb399c0181de35c054005754b379223d74d06166214237a3e14b84e/django-eremaea2-2.0.13.tar.gz" } ] }