Skip to content

twmht/cute_format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cute_format =========

pack random data and fast retrieval in python

Quick Install

Quick install for debian/ubuntu like linux distributions.

$ pip install cute_format

Quick Usage Guide

from cute.cute_reader import CuteReader
from cute.cute_writer import CuteWriter
cw = CuteWriter('tmp')
a = 1000
b = 2000
cute_writer.write(bytes(a))
cute_writer.write(bytes(b))
cute_writer.close()
cr = CuteReader('tmp')
# get the object by index
assert cr.num_data == 2
byte_object = cr.get(0)
assert int(byte_object) == a
byte_object = cr.get(1)
assert int(byte_object) == b

About

pack random data and fast retrieval in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages