Skip to main content
RedisFile
===============

This is a simple hack to allow the writing to redis as if it was
just file object in python.

Usage
-----

# Import and open up a ne "file"
from redisfile import RedisFile
f = RedisFile("myrediskey")
# Write some lines to the "file"
f.write('hello')
f.writelines('world')
f.writelines('Your
Awesome')
# Read the whole file
print f.read()
# Reading a file from the end shows no data
print f.read()
# seek to the start of the file
f.seek(0)
# Read a single line
print f.readline()
# Read the rest
print f.read()
# "close" will delete all the data
f.close()

Installation
------------

Installation is simple too::

$ pip install redis-file

Release files for redis-file 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redis-file 0.0.1
File Size Uploaded
redis-file-0.0.1.tar.gz 2.0 kB Details

Release files / redis-file-0.0.1.tar.gz

Download URL redis-file-0.0.1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2d456b84cc8aba867fa82a02c5c8b46541a010e74847d80d28e8911afa977073
BLAKE2b-256 checksum
How to use checksums
29eed9933dd2225f6faef4488d5737ba9a2e6fcfc023fbe410c0fe527a42089c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page