Skip to main content

Django Scylla - the Cassandra & ScyllaDB backend for Django

Django-scylla makes possible to connect your Django app to Cassandra or ScyllaDB and use native Django ORM as with any other relational database backend.

Latest version workflow

Discord: https://discord.gg/pxunMGmDNc

Sponsors

Help support ongoing development and maintenance by sponsoring Django Scylla.

Installation

Recommended installation:

pip install django-scylla

Basic Usage

  1. Add django_scylla to INSTALLED_APPS in your settings.py file:

     INSTALLED_APPS = ('django_scylla',) + INSTALLED_APPS
    
  2. Change DATABASES setting:

     DATABASES = {
         'default': {
             'ENGINE': 'django_scylla',
             'NAME': 'db',
             'TEST_NAME': 'test_db',
             'HOST': 'db1.example.com,db2.example.com,db3.example.com',
             'OPTIONS': {
                 'consistency_level': ...,
                 'load_balancing_policy': ...,
                 'retry_policy': ...,
                 'request_timeout': 10,
    
             }
         }
     }
    
  3. Define some model:

     # myapp/models.py
    
     from django.db import models
    
    
     class Person(models.Model):
         first_name = models.CharField(max_length=30)
         last_name = models.CharField(max_length=30)
    
  4. Connect to ScyllaDB and create a keyspace.

  5. Run ./manage.py makemigrations && ./manage.py migrate

  6. Done!

License

Copyright (c) 2021-2022, Rafał Furmański.

All rights reserved. Licensed under MIT License.

Metadata

Release files for django-scylla 0.0.10

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-scylla 0.0.10
File Size Uploaded Provenance
django_scylla-0.0.10.tar.gz 16.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-scylla 0.0.10
File Interpreter ABI Platform
django_scylla-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 37.5 kB

Release files / django_scylla-0.0.10.tar.gz

Download URL django_scylla-0.0.10.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3e3c951c0ff9de04c4667757cd9936aee5a5c4660bee9a9ae344f805aaeec3ed
BLAKE2b-256 checksum
How to use checksums
b3561e442eb1d36ea0667c9cf3d37c3f0c1c29b4eb288ccfffb022c8e2c9649b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.5 Linux/5.19.0-23-generic

Release files / django_scylla-0.0.10-py3-none-any.whl

Download URL django_scylla-0.0.10-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b10d00afc7e66c52f5d88e78041e5e3c4e0468ce8be644b95a63bc98efe82cea
BLAKE2b-256 checksum
How to use checksums
776b4417868dbab5e50c63545c76e3c0636783440c9f9a097e63ac582196c3d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.5 Linux/5.19.0-23-generic

Security for django-scylla 0.0.10

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.

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