{"repo":"jamessewell/django-timescaledb","free":true,"listed":false,"github":"https://github.com/jamessewell/django-timescaledb","clone":"git clone https://github.com/jamessewell/django-timescaledb.git","description":"A Django database backend and tooling for Timescaledb.","language":"Python","stars":242,"topics":["timescaledb","django"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Django timescaledb A database backend and tooling for Timescaledb. Based on gist from WeRiot. Quick start 1. Install via pip 2. Use as DATABASE engine in settings.py: Standard PostgreSQL PostGIS If you already make use of a custom PostgreSQL db backend you can set the path in settings.py. 3. Inherit from the TimescaleModel. A hypertable will automatically be created. Implementation would look like this If you already have a table, you can either add time field of type TimescaleDateTimeField to your model or rename (if not already named time ) and change type of existing DateTimeField (rename first then run makemigrations and then change the type, so that makemigrations considers it as change in same field instead of removing and adding new field). This also triggers the creation of a hypertable. The name of the field is important as Timescale specific feratures require this as a property of their functions. Reading Data \"TimescaleDB hypertables are designed to behave in the same manner as PostgreSQL database tables for reading data, using standard SQL commands.\" As such the use of the Django's ORM is perfectally suited to this type of data. By leveraging a custom model manager and queryset we can extend the queryset methods to include Timescale functions. Time Bucket More Info Time Bucket Gap Fill More Info Histogram More Info Contributors - Rasmus Schlünsen - Ben Cleary - Jonathan Sundqvist - Harsh Bhikadia","default_branch":null,"files":null,"tree":[],"storefront":"/r/jamessewell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jamessewell/django-timescaledb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}