Skip to main content

Some simple tool methods like cache, exporter and so on.

Project description

Zhtools

Some simple tool methods like cache, exporter and so on.

Modules

  • cache: A simple cache decorator.
  • code_generator:
    • json2model: Generate pydantic model from json string.
    • orms: Generate model code from create table sql.
  • exporters: Export data to a file like .xlsx and etc.
  • io_tools: Some io tool methods.
    • readers: Simple method to read data from a file like .xlsx and etc.
  • convertors: Some unit convertors or string handlers.
  • random: Uuid, random string and so on.
  • redis_helper: Some tools base on redis.
  • timetools: Some date/time/timezone tools.
  • type_hint: Common type hints.
  • api_service: Simple way to define an api client.
  • enum: More practical enum.
  • concurrents: Some tools for concurrent base on multi process/thread/coroutine.
  • ctx: Some context tools.
  • __init__: Unclassified tools.

Update logs

  • 0.0.10 2021-06-25:
    • add go-like defer.
  • 0.0.9 2021-06-04:
    • fix setup bug.
  • 0.0.8 2021-06-04:
    • Add concurrents tools.
    • Add orm code generators command-line client.
  • 0.0.7 2021-05-21:
    • Add singleton decorator.
    • Add orm code generators.
  • 0.0.6 2021-04-25:
    • Add enum module.
  • 0.0.5 2021-04-19:
    • Added api service.
    • Optimized the performance of XlsxReader.
    • Added progress bar to XlsxExporter (supported by tqdm).

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

zhtools-0.0.10.tar.gz (16.7 kB view hashes)

Uploaded Source

Built Distribution

zhtools-0.0.10-py3-none-any.whl (23.3 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