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
Release files for cute_format 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cute_format-0.1.3.tar.gz | 2.3 kB | Details |
Release files / cute_format-0.1.3.tar.gz
| Download URL | cute_format-0.1.3.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8c718d0a51ee31f0b0a84c89c45c9ce74b82d0db210ec317f3524bd3418a306
|
|
BLAKE2b-256 checksum How to use checksums |
f9d36a4e239498c1cb2be09476ea2d4d1819989a534ee8b15e8e699fdfd2786c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |