{"repo":"upstash/redis-py","free":true,"listed":false,"github":"https://github.com/upstash/redis-py","clone":"git clone https://github.com/upstash/redis-py.git","description":"HTTP based Python Redis Client for Serverless and Edge Functions","language":"Python","stars":69,"topics":["redis","upstash","upstash-sdk"],"license":"MIT","category":"databases-storage","readme_excerpt":"Upstash Redis Python SDK [!NOTE] This project is in GA Stage. The Upstash Professional Support fully covers this project. It receives regular updates, and bug fixes. The Upstash team is committed to maintaining and improving its functionality. upstash-redis is a connectionless, HTTP-based Redis client for Python, designed to be used in serverless and serverful environments such as: - AWS Lambda - Vercel Serverless - Google Cloud Functions - and other environments where HTTP is preferred over TCP. Inspired by other Redis clients like @upstash/redis and redis-py, the goal of this SDK is to provide a simple way to use Redis over the Upstash REST API. The SDK is currently compatible with Python 3.8 and above. - Upstash Redis Python SDK - Quick Start - Install - PyPI - Usage - BITFIELD and BITFIELD\\ RO - Custom commands - Encoding - Retry mechanism - Contributing - Preparing the environment - Running tests Quick Start Install PyPI Usage To be able to use upstash-redis, you need to create a database on Upstash and grab UPSTASH REDIS REST URL and UPSTASH REDIS REST TOKEN from the console. Or, if you want to automatically load the credentials from the environment: If you are in a serverless environment that allows it, it's recommended to initialise the client outside the request handler to be reused while your function is still hot. Running commands might look like this: BITFIELD and BITFIELD RO One particular case is represented by these two chained commands, which are available as ","default_branch":null,"files":null,"tree":[],"storefront":"/r/upstash","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/upstash/redis-py/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}