Skip to main content

Django Tarantool database backend

⚠️ Fork Notice

This package is a fork of django-tarantool by @artembo.

Changes in this fork:

  • Django 5.0+ support

Installation

Install Tarantool v2.2+. See the installation manual for your OS here

Make a database directory and run Tarantool instance there:

$ mkdir ~/project_db
$ cd ~/project_db
$ tarantool

You will see the Tarantool interpreter. Initialize DB configuration and create password for admin

tarantool> box.cfg({ listen = 3301 })
tarantool> box.schema.user.passwd('admin', 'password')

To get started with django-tarantool, run the following in a virtual environment:

pip install django-tarantool

Add DATABASES config of your Tarantool into settings.py

DATABASES = {
    'default': {
        'ENGINE': 'django_tarantool.backend',
        'HOST': '127.0.0.1',
        'PORT': '3301',
        'USER': 'admin',
        'PASSWORD': 'password',
        'CONN_MAX_AGE': 3600,
    }
}

Mind using CONN_MAX_AGE param as very important. It allows to keep connection opened for the specified time in seconds. Otherwise, Django will open the connection to the Tarantool instance on each request and close after it, which increases the request latency.

Run migrate as usual:

python manage.py migrate

Run Django development server:

python manage.py runserver 0:8000

Metadata

Release files for django-tarantool-reborn 0.1.0

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-tarantool-reborn 0.1.0
File Size Uploaded
django_tarantool_reborn-0.1.0.tar.gz 25.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tarantool-reborn 0.1.0
File Interpreter ABI Platform
django_tarantool_reborn-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 61.1 kB

Release files / django_tarantool_reborn-0.1.0.tar.gz

Download URL django_tarantool_reborn-0.1.0.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f2496266579352674bb1c54bb0c8d7d7dbb6f23af8e6572557ae26ce708a89db
BLAKE2b-256 checksum
How to use checksums
e4787565a862315ab642c420701cfc228d737d6dac0e78fcefe0595cbd5155be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / django_tarantool_reborn-0.1.0-py3-none-any.whl

Download URL django_tarantool_reborn-0.1.0-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99bc0f512ee0379e215f6c8da3ec451336f778f438445b1cd3b90b4da76386be
BLAKE2b-256 checksum
How to use checksums
29cf3475f6b4d21e22cec9b8ea9837e237e9b8531296163d36fcfb5588176349
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

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