Skip to main content
https://img.shields.io/badge/license-MIT-blue.svg https://img.shields.io/pypi/pyversions/k2hash.svg https://img.shields.io/github/forks/yahoojapan/k2hash_python.svg https://img.shields.io/github/stars/yahoojapan/k2hash_python.svg https://img.shields.io/github/issues/yahoojapan/k2hash_python.svg https://github.com/yahoojapan/k2hash_python/workflows/Python%20package/badge.svg https://readthedocs.org/projects/k2hash-python/badge/?version=latest https://img.shields.io/pypi/v/k2hash

Overview

k2hash_python is an official python driver for k2hash.

https://raw.githubusercontent.com/yahoojapan/k2hash_python/main/docs/images/top_k2hash_python.png

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.

Document top page

About K2HASH

About AntPickax

Packages

Here are packages including other components.

k2hash(python packages)

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)

Source distribution for k2hash 1.0.1
File Size Uploaded
k2hash-1.0.1.tar.gz 280.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for k2hash 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page