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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_tarantool_reborn-0.1.0.tar.gz | 25.2 kB | Without provenance | Details for django_tarantool_reborn-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_tarantool_reborn-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for django_tarantool_reborn-0.1.0-py3-none-any.whl |
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}
|
Security for django-tarantool-reborn 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.