CrateDB django connector.
Connector to use CrateDB as a database in Django ORM.
Documentation
How to install
uv
uv add cratedb-django
pipx
pipx install cratedb-django
Install
Once the library is installed, use it in your settings.py, e.g.
DATABASES = {
"default": {
"ENGINE": "cratedb_django",
"SERVERS": ["localhost:4200"],
}
}
After that, for a model to be used in CrateDB, you need to use CrateDBModel as a
base class.
from django.db import models
from cratedb_django.models import CrateDBModel
from cratedb_django.models import functions
class Metrics(CrateDBModel):
id = models.TextField(primary_key=True, db_default=functions.UUID())
value = models.IntegerField()
Django migrations can be run in CrateDB, default django migrations are tested. In spite of that, we recommend that you run anything transactional in a transactional database, like PostgresSQL and use CrateDB as your analytical database.
License
This project is open-source under a MIT license.
Metadata
Release files for cratedb-django 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 |
|---|---|---|---|---|
| cratedb_django-0.1.0.tar.gz | 17.9 kB | Without provenance | Details for cratedb_django-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cratedb_django-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cratedb_django-0.1.0-py3-none-any.whl |
Total release size: 34.4 kB
Release files / cratedb_django-0.1.0.tar.gz
| Download URL | cratedb_django-0.1.0.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a52bbabfd9d3e9ec4d0de5e88bd2cc6bf49bb24acf764a38516a32ba44c4a5dc
|
|
BLAKE2b-256 checksum How to use checksums |
86d7fda7ecdae28f936876de1610598b84645fc5e566d52486391e4a3f264906
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / cratedb_django-0.1.0-py3-none-any.whl
| Download URL | cratedb_django-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8a7d6661ea6716867ce355e7d921424215d3b5a2ec2cdc5ac41ce7adff7af89
|
|
BLAKE2b-256 checksum How to use checksums |
ae60cca03dc899bb76eb50e23107ff635dc9a174b928eb34b0dbdeb3480d472a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for cratedb-django 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.