Django TimeScale DB App
Project description
TimeScaleDB App
TimeScaleDB App is a Django-based web application that provides an API for managing and querying time-series data. This application utilizes RealTimeDB, a time-series database built atop PostgreSQL, for efficient storage and analysis of time-series data. With custom pagination classes and viewsets, the TimeScaleDB App delivers a powerful and flexible way to interact with Source, Measure, Channel, and TimeSerie models.
Features
- API endpoints for managing and querying time-series data
- Custom pagination classes for more efficient data retrieval
- Custom viewset mixin enabling creation of multiple objects
- Grouping and aggregation of TimeSerie objects by channel
- Computation of various statistics for aggregated time-series data
Getting Started
Installation
- Clone the repository:
git clone https://github.com/dunderlab/python-django-timescaledbapp.git
cd python-django-timescaledbapp
- Install the required dependencies:
pip install -r requirements.txt
Configuration
- Configure your database settings in the
settings.py
file:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'your_database_name',
'USER': 'your_database_user',
'PASSWORD': 'your_database_password',
'HOST': 'your_database_host',
'PORT': 'your_database_port',
}
}
- Add the required apps to
INSTALLED_APPS
in thesettings.py
file:
INSTALLED_APPS = [
'django_extensions',
'rest_framework',
'dunderlab.django.timescaledbapp.apps.TimeScaleDBConfig',
]
- Include the TimeScaleDB App URLs in your project's
urls.py
file:
urlpatterns = [
path("timescaledbapp/", include('dunderlab.django.timescaledbapp.urls')),
]
Execution
- Apply the migrations:
python manage.py migrate
- Start the development server:
python manage.py runserver
You can now access the TimeScaleDB App API at http://localhost:8000/
.
API Endpoints
/sources/
: View or edit sources/measures/
: View or edit measures/channels/
: View or edit channels/timeseries/
: View or edit time series with custom behavior for listing and paginating time series data/chunk/
: Handle chunks
Contributing
If you'd like to contribute to TimeScaleDB App, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bugfix
- Commit your changes to your branch
- Push your branch to your fork
- Submit a pull request with a detailed description of your changes
We appreciate your contributions and will review them as soon as possible.
License
TimeScaleDB App is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dunderlab_timescaledbapp-0.1.17.tar.gz
.
File metadata
- Download URL: dunderlab_timescaledbapp-0.1.17.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b07b6458a95993d08e82df79622e90a4e94801e258201ba736229d4773165d20 |
|
MD5 | 1d8b9c03cd0faffde6f16cbc1ad52d0c |
|
BLAKE2b-256 | 982a3ab73e2040a3cd3acca0f5b3a0281c6f35429ac924af0ba3c4555de38254 |
File details
Details for the file dunderlab_timescaledbapp-0.1.17-py3-none-any.whl
.
File metadata
- Download URL: dunderlab_timescaledbapp-0.1.17-py3-none-any.whl
- Upload date:
- Size: 31.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c8d69a9dcecf0a3eb808b61b13867455df03f8558b9f962f656531b0cd5703 |
|
MD5 | db014c0cba8d12d182417dbf5739ff24 |
|
BLAKE2b-256 | 50dff6cde075dbeacac481e5cc524bbb90aa7fae655403febaad7ed375f6c79f |