Skip to main content

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

  1. Clone the repository:
git clone https://github.com/dunderlab/python-django-timescaledbapp.git
cd python-django-timescaledbapp
  1. Install the required dependencies:
pip install -r requirements.txt

Configuration

  1. 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',
    }
}
  1. Add the required apps to INSTALLED_APPS in the settings.py file:
INSTALLED_APPS = [
    'django_extensions',
    'rest_framework',
    'dunderlab.django.timescaledbapp.apps.TimeScaleDBConfig',
]
  1. Include the TimeScaleDB App URLs in your project's urls.py file:
urlpatterns = [
    path("timescaledbapp/", include('dunderlab.django.timescaledbapp.urls')),
]

Execution

  1. Apply the migrations:
python manage.py migrate
  1. 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:

  1. Fork the repository
  2. Create a new branch for your feature or bugfix
  3. Commit your changes to your branch
  4. Push your branch to your fork
  5. 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.

Database model

Metadata

Release files for dunderlab-timescaledbapp 0.1.17

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

Source distribution (sdist)

Source distribution for dunderlab-timescaledbapp 0.1.17
File Size Uploaded
dunderlab_timescaledbapp-0.1.17.tar.gz 26.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dunderlab-timescaledbapp 0.1.17
File Interpreter ABI Platform
dunderlab_timescaledbapp-0.1.17-py3-none-any.whl Python 3 none any Details

Total release size: 58.1 kB

Release files / dunderlab_timescaledbapp-0.1.17.tar.gz

Download URL dunderlab_timescaledbapp-0.1.17.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b07b6458a95993d08e82df79622e90a4e94801e258201ba736229d4773165d20
BLAKE2b-256 checksum
How to use checksums
982a3ab73e2040a3cd3acca0f5b3a0281c6f35429ac924af0ba3c4555de38254
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.5

Release files / dunderlab_timescaledbapp-0.1.17-py3-none-any.whl

Download URL dunderlab_timescaledbapp-0.1.17-py3-none-any.whl
Size 31.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42c8d69a9dcecf0a3eb808b61b13867455df03f8558b9f962f656531b0cd5703
BLAKE2b-256 checksum
How to use checksums
50dff6cde075dbeacac481e5cc524bbb90aa7fae655403febaad7ed375f6c79f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.5

Release history Release notifications | RSS feed

This release

0.1.17 This release

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

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