A library to split data into tokens
Project description
python-tally-token
What is this?
tally-token is a Python library for split data into tokens with same length.
Tally is a historical object for prove something by splitting wood into tokens and matching tokens.
Usage
Install
$ pip install tally-token
Example
split
>>> from tally_token import split_text
>>> split_text("Hello, World!")
(b'qQ\xa5\x97\x84\x88\xd7U%\xfb(k\xa1', b'94\xc9\xfb\xeb\xa4\xf7\x02J\x89D\x0f\x80')
merge
>>> from tally_token import merge_text
>>> merge_text(b'qQ\xa5\x97\x84\x88\xd7U%\xfb(k\xa1', b'94\xc9\xfb\xeb\xa4\xf7\x02J\x89D\x0f\x80')
'Hello, World!'
LICENSE
BSD 3-Clause License
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
tally-token-0.1.0.tar.gz
(19.8 kB
view details)
Built Distribution
File details
Details for the file tally-token-0.1.0.tar.gz
.
File metadata
- Download URL: tally-token-0.1.0.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 924df5fc47b855f18c28e7fe5f5936d9844e58987439222a2cc03f91c49fb9fd |
|
MD5 | 124023c7dfbd9891756351696656be06 |
|
BLAKE2b-256 | 597c162b9f88f6b7322b1cb2c8a04027d5a566665836bae7accb709baa848dc6 |
File details
Details for the file tally_token-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: tally_token-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9dcac89e4b784a8edb8f65a44a29191c1daab69a05c9cf02f2a643a3d7b0ef |
|
MD5 | 5b420a2bf4f38eba160b6c77a9be364f |
|
BLAKE2b-256 | ba801b970962ebe4157b3697ec6378e6eaf101da5bc8082e89994912841f40fa |