File: 0003-interaction

package info (click to toggle)
python-redis 4.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,172 kB
  • sloc: python: 38,266; sh: 337; makefile: 128
file content (11 lines) | stat: -rwxr-xr-x 152 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3
#
# Interact with server

import redis

client = redis.Redis()

client.set('key', 'value')

assert client.get('key') == b'value'