Skip to main content

a valkey backend for django

Project description

Pypi Python versions docs downloads/month Published on Django Packages

Introduction

django-valkey is a BSD licensed, full featured Valkey cache and session backend for Django.

this project is a fork of the wonderful django-redis project. they wrote all the good codes.

Why use django-valkey?

  • Valkey is a free licenced and well maintained key/value database

  • Uses native valkey-py url notation connection strings

  • Pluggable clients

  • Pluggable parsers

  • Pluggable serializers

  • Primary/secondary support in the default client

  • Comprehensive test suite

  • Used in production in several projects as cache and session storage

  • Supports infinite timeouts

  • Facilities for raw access to Valkey client/connection pool

  • Highly configurable (can emulate memcached exception behavior, for example)

  • Unix sockets supported by default

Requirements

  • Python 3.10+ (if you use with libvalkey, they don’t support 3.13 yet)

  • Django 4.2.20+

  • valkey-py 6.0.2+ (probably works on older versions too)

  • Valkey server 7.2.6+ (probably works with older versions too)

User guide

Documentation

check out our Docs for a complete explanation

Installation

Install with pip:

python -m pip install django-valkey

Install with c bindings:

python -m pip install django-valkey[libvalkey]

Install 3rd party compression

python -m pip install django-valkey[lz4]
python -m pip install django-valkey[pyzstd]
python -m pip install django-valkey[brotli]

Contribution

contribution rules are like other projects,being respectful and keeping the ethics. also make an issue before going through troubles of coding, someone might already be doing what you want to do.

Todo

  1. Fix the CI in cluster branch.

  2. Add cluster to documentations.

  3. Refactor cluster branch.

License

Copyright (v) 2024 Amirreza Sohrabi far
Copyright (c) 2011-2016 Andrey Antukh <niwi@niwi.nz>
Copyright (c) 2011 Sean Bleier

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
   derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS`` AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_valkey-0.2.1.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_valkey-0.2.1-py3-none-any.whl (46.8 kB view details)

Uploaded Python 3

File details

Details for the file django_valkey-0.2.1.tar.gz.

File metadata

  • Download URL: django_valkey-0.2.1.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.12.19-1-MANJARO

File hashes

Hashes for django_valkey-0.2.1.tar.gz
Algorithm Hash digest
SHA256 747e35609f7d0af906d3d1af8a0f8edfd9a872998e4750c299d1d5a17d0496a9
MD5 9fc86c4c0f61ebeaff1d708884a6cfb8
BLAKE2b-256 c55967e7dd4e7abc4bfed1dcb711ba61fe605a33f38945d36e21e482c1d64fb2

See more details on using hashes here.

File details

Details for the file django_valkey-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: django_valkey-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 46.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.12.19-1-MANJARO

File hashes

Hashes for django_valkey-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24c3296eba78eae0543f21517dab297995e4b2f65dafd75cd2ded42b25f7d6e7
MD5 914dd79613add4ecf99e4f8524df5767
BLAKE2b-256 58d1571c142b0775fb458cb4dd0bd1926179d5a6b10359238a19b4971b5363d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page