Skip to main content

My toolbox

Project description

hwhpykit

  • 依据个人习惯封装的常用第三方库
  • 依赖的第三方库:

Main function

  • Cache

Redis-client

  • Buffer

Kafka-client

  • DataBase

MySQL-client PostgreSQL-client

Cache

Redis-client

RedisManager.config(host="127.0.0.1", db=0) RedisManager.string.set("reids", "value") RedisManager.string.set_keys({"a":1, "b": 2}) RedisManager.string.set_range("redis", 6, "666") RedisManager.string.set_not_exist_key('11', "1222")

RedisManager.string.append('redis', '---')

key = 'redis' r = RedisManager.string.get(key) print(r)

r = RedisManager.string.get_len(key) print(r)

r = RedisManager.string.get_range(key, 0, -1) print(r)

r = RedisManager.string.get_values(['11', "1222"]) print(r)

RedisManager.string.set('2', '0') RedisManager.string.increase('2') RedisManager.string.increase('2', -100000) r = RedisManager.string.get('2') print(r)

Database

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

hwhpykit-1.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

hwhpykit-1.0.1-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

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