Skip to main content

A module for k2hash from antpickax

Project description

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.

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

k2hash-1.0.1.tar.gz (280.9 kB view details)

Uploaded Source

Built Distribution

k2hash-1.0.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file k2hash-1.0.1.tar.gz.

File metadata

  • Download URL: k2hash-1.0.1.tar.gz
  • Upload date:
  • Size: 280.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for k2hash-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bdbe16f046c12c775e65a2107c290d13a51106771a9b71982cd7346e588be07b
MD5 307217cb51d1a33423cca12bfc830b49
BLAKE2b-256 6171c8156660e8c3101b680e6b53d19b2c8289678265ca769b6f31fae96aa5d0

See more details on using hashes here.

File details

Details for the file k2hash-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: k2hash-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for k2hash-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8dbf1f511dd13afb9909a12eb7be4be563557a3cb600fe82b2b8f0b2ef8d31c6
MD5 a531fb0dc726fcb02aec91b9d556bce7
BLAKE2b-256 3c6fcdd662a475283cb7f98f8bfaba2d8a49db60c77047d810bf4f19282403f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page