pack data and retrieval in easy way
Project description
cute_format
=========
pack random data and fast retrieval in python
Quick Install
-------------
Quick install for debian/ubuntu like linux distributions.
.. code-block:: bash
$ pip install cute_format
Quick Usage Guide
-----------------
.. code-block:: python
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(1)
assert int(byte_object) == a
byte_object = cr.get(2)
assert int(byte_object) == b
=========
pack random data and fast retrieval in python
Quick Install
-------------
Quick install for debian/ubuntu like linux distributions.
.. code-block:: bash
$ pip install cute_format
Quick Usage Guide
-----------------
.. code-block:: python
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(1)
assert int(byte_object) == a
byte_object = cr.get(2)
assert int(byte_object) == b
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
cute_format-0.1.1.tar.gz
(2.3 kB
view details)
File details
Details for the file cute_format-0.1.1.tar.gz.
File metadata
- Download URL: cute_format-0.1.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5491cb04c5f9ea0c525960ae04db07e9fbfd22a1c0ffb8915d7509a134613707
|
|
| MD5 |
10ff06ebdb40a3fc2a377c3c8455bb57
|
|
| BLAKE2b-256 |
8e60d68fd44961623d589b9554abc0732264b5c388a0d35d34cb1c65e9f16483
|