Overview
k2hash_python is an official python driver for k2hash.
Install
Firstly you must install the k2hash shared library:
curl -o- https://raw.github.com/yahoojapan/k2hash_python/master/utils/libk2hash.sh | bash
Then, let’s install k2hash using pip:
pip install k2hash
Usage
Try to set a key and get it:
import k2hash
k = k2hash.K2hash('test.k2h')
k.set('hello', 'world')
v = k.get('hello')
print(v) // world
Development
Clone this repository and go into the directory, then run the following command:
$ python3 -m pip install --upgrade build $ python3 -m build
Documents
Here are documents including other components.
Packages
Here are packages including other components.
License
MIT License. See the LICENSE file.
AntPickax
k2hash_python is a project by AntPickax, which is an open source team in Yahoo Japan Corporation.
Metadata
Release files for k2hash 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| k2hash-1.0.1.tar.gz | 280.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k2hash-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 298.4 kB
Release files / k2hash-1.0.1.tar.gz
| Download URL | k2hash-1.0.1.tar.gz |
|---|---|
| Size | 280.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdbe16f046c12c775e65a2107c290d13a51106771a9b71982cd7346e588be07b
|
|
BLAKE2b-256 checksum How to use checksums |
6171c8156660e8c3101b680e6b53d19b2c8289678265ca769b6f31fae96aa5d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / k2hash-1.0.1-py3-none-any.whl
| Download URL | k2hash-1.0.1-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8dbf1f511dd13afb9909a12eb7be4be563557a3cb600fe82b2b8f0b2ef8d31c6
|
|
BLAKE2b-256 checksum How to use checksums |
3c6fcdd662a475283cb7f98f8bfaba2d8a49db60c77047d810bf4f19282403f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|