{"id":16702848,"url":"https://github.com/r4fek/django-scylla","last_synced_at":"2025-04-10T04:56:53.808Z","repository":{"id":61482624,"uuid":"395685980","full_name":"r4fek/django-scylla","owner":"r4fek","description":"Django Scylla - ScyllaDB database backend for Django","archived":false,"fork":false,"pushed_at":"2023-05-15T17:05:43.000Z","size":260,"stargazers_count":12,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T15:18:35.768Z","etag":null,"topics":["cassandra","django","scylla","scylladb"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r4fek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["r4fek"]}},"created_at":"2021-08-13T14:34:12.000Z","updated_at":"2024-12-14T19:13:44.000Z","dependencies_parsed_at":"2025-02-16T14:38:12.236Z","dependency_job_id":"3d107d27-e005-4948-9869-785390953139","html_url":"https://github.com/r4fek/django-scylla","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4fek%2Fdjango-scylla","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4fek%2Fdjango-scylla/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4fek%2Fdjango-scylla/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r4fek%2Fdjango-scylla/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r4fek","download_url":"https://codeload.github.com/r4fek/django-scylla/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161262,"owners_count":21057554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cassandra","django","scylla","scylladb"],"created_at":"2024-10-12T19:06:16.920Z","updated_at":"2025-04-10T04:56:53.783Z","avatar_url":"https://github.com/r4fek.png","language":"Python","funding_links":["https://github.com/sponsors/r4fek"],"categories":[],"sub_categories":[],"readme":"# Django Scylla - the Cassandra \u0026 ScyllaDB backend for Django\n\nDjango-scylla makes possible to connect your Django app to Cassandra or ScyllaDB and **use native Django ORM** as with any other relational database backend.\n\n\n[![Latest version](https://img.shields.io/pypi/v/django-scylla.svg \"Latest version\")](https://pypi.python.org/pypi/django-scylla/)\n![workflow](https://github.com/r4fek/django-scylla/actions/workflows/tox.yml/badge.svg)\n\nDiscord: https://discord.gg/pxunMGmDNc\n\n## Sponsors ##\nHelp support ongoing development and maintenance by [sponsoring Django Scylla](https://github.com/sponsors/r4fek).\n\n## Installation ##\n\nRecommended installation:\n\n    pip install django-scylla\n\n## Basic Usage ##\n\n1. Add `django_scylla` to `INSTALLED_APPS` in your `settings.py` file:\n\n        INSTALLED_APPS = ('django_scylla',) + INSTALLED_APPS\n\n2. Change `DATABASES` setting:\n\n        DATABASES = {\n            'default': {\n                'ENGINE': 'django_scylla',\n                'NAME': 'db',\n                'TEST_NAME': 'test_db',\n                'HOST': 'db1.example.com,db2.example.com,db3.example.com',\n                'OPTIONS': {\n                    'replication': {\n                        'strategy_class': ...,\n                        'replication_factor': ...\n                    },\n                    'execution_profile': {\n                        'load_balancing_policy': ...,\n                        'retry_policy': ...,\n                        'consistency_level': ...,\n                        'serial_consistency_level': ...,\n                        'request_timeout': ...,\n                        'speculative_execution_policy': ...\n                    }\n                    'connection': {\n                        # Full list of connection options can be found here: https://docs.datastax.com/en/developer/python-driver/3.26/api/cassandra/cluster/\n                        'cql_version': ...,\n                        'protocol_version': ...\n                        'compression': ...,\n                        'consistency': ...,\n                        'lazy_connect': ...,\n                        'retry_connect': ...,\n                    }\n                }\n            }\n        }\n\n3. Define some model:\n\n        # myapp/models.py\n\n        from django.db import models\n\n\n        class Person(models.Model):\n            first_name = models.CharField(max_length=30)\n            last_name = models.CharField(max_length=30)\n\n\n4. Connect to ScyllaDB and create a keyspace.\n5. Run `./manage.py makemigrations \u0026\u0026 ./manage.py migrate`\n6. Done!\n\n## License ##\nCopyright (c) 2021-2022, [Rafał Furmański](https://linkedin.com/in/furmanski).\n\nAll rights reserved. Licensed under MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr4fek%2Fdjango-scylla","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr4fek%2Fdjango-scylla","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr4fek%2Fdjango-scylla/lists"}