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(0)
assert int(byte_object) == a
byte_object = cr.get(1)
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(0)
assert int(byte_object) == a
byte_object = cr.get(1)
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.3.tar.gz
(2.3 kB
view details)
File details
Details for the file cute_format-0.1.3.tar.gz.
File metadata
- Download URL: cute_format-0.1.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8c718d0a51ee31f0b0a84c89c45c9ce74b82d0db210ec317f3524bd3418a306
|
|
| MD5 |
76400aa6ac895cecd573f201e1c7284f
|
|
| BLAKE2b-256 |
f9d36a4e239498c1cb2be09476ea2d4d1819989a534ee8b15e8e699fdfd2786c
|