Skip to main content

django-eremaea2

Build Status PyPI version

django-eremaea2 is a simple Django application to store and manage webcam image snapshots. The application is built on top of django-rest-framework and provides REST API to access the files.

There are three kind of resources available through REST API interface. A collection is a collection of snapshots. A snapshot is image file in essence. For any snapshot there is a retention policy associated with to specify how long store the file.

Installation

The following prerequisites are required to operate django-eremaea2:

To use django-eremaea2 in your django project, include the following code into your settings.py:

INSTALLED_APPS = (
     #...
    'rest_framework',
    'eremaea',
)

Into your urls.py you have to add the following:

urlpatterns = patterns('',
    #...
    url(r'^eremaea/', include('eremaea.urls')),
)

Configuration

The whole configuration is stored into the project database, there is not separate dedicated config file.

The RetentionPolicy model has two parameters: a lookup field name and duration that specifies time-to-live for associated objects. To perform actual cleanup a POST request to the endpoint http://example.com/eremaea/retention_policies/{name}/purge is required. The Collection model has two parameters: a lookup field name and default_retention_policy. The Snapshot model has the following field: associated collection and retention_policy, file object, and auto-now date. New images are uploaded by POST request to the endpoint http://example.com/eremaea/snapshots/{collection}/ with optional retention_policy={retention_policy_name} query string parameter.

The other ways to configure the application are Django fixtures, Django admin interface, django-rest-framework web browsable interface, and REST API itself.

Authentication and permissions

You may utilise all possible options provided by django-rest-framework. See Tutorial for reference.

Caching

You may utilise all caching mechanisms provided by Django framework. See Django's cache framework.

Feedback

If you have any questions, issues, or pull-requests, you are welcome to use GitHub infrastructure.

License

Copyright (c) 2016, Matwey V. Kornilov

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. 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.

THIS 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.

Release files for django-eremaea2 2.1.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 django-eremaea2 2.1.1
File Size Uploaded
django_eremaea2-2.1.1.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-eremaea2 2.1.1
File Interpreter ABI Platform
django_eremaea2-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 32.0 kB

Release files / django_eremaea2-2.1.1.tar.gz

Download URL django_eremaea2-2.1.1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7f42ee72dfbd5f0353a7bd5ee5a11365e3ec3b993ca57c4895373292841f9f68
BLAKE2b-256 checksum
How to use checksums
698e5b9ceac205be76adf68407bc25aac2614aeb0e4f9a675cce1839fcfb65d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release files / django_eremaea2-2.1.1-py3-none-any.whl

Download URL django_eremaea2-2.1.1-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31d6e4012ca923c9a0555111670a5c42d8f4cbe42dba632b63b8b778df73e6f7
BLAKE2b-256 checksum
How to use checksums
a4399027315c117fe9b6e08a39f731ba46bccd6bfc00a464ddb3a75b29345dac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.21

2 release files

2.0.20

2 release files

2.0.17

2 release files

2.0.15

2 release files

2.0.13

3 release files

2.0.12

1 release file

2.0.11

1 release file

2.0.10

1 release file

2.0.9

1 release file

2.0.8

1 release file

2.0.6

1 release file

2.0.5

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

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