Skip to main content

Zhtools

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

Modules

  • cache: A simple cache decorator.
  • data_structs: Some data structs implements and tools.
  • security: some simple security methods.
  • api_service: Simple way to define an api client.
  • async_tools: about python async/await.
  • calculation: Math calculation methods.
  • cli: Command-line tools.
  • concurrents: Some tools for concurrent base on multi process/thread/coroutine.
  • config: Global config by this tool.
  • context_manager: Common context manager.
  • decorators: Common decorators.
  • exceptions: Common exceptions by this tool.
  • random: Random methods.
  • signals: simple signal dispatcher.
  • timetools: Some date/time/timezone tools.
  • typing: Common type hints.

Update logs

  • 1.2.3 2024-07-25
    • fix: aes decrypt
  • 1.2.0 2024-07-22:
    • fix: move typing to typed
    • feat: zt command tools: support version tools.
  • 1.1.1 2024-07-16:
    • fix: Enum define error
  • 1.1.0 2024-07-04:
    • feat: multi_by_date decorator
    • feat: Upgrade to python 3.12
    • fix: Support more type hint
  • 1.0.2 2024-01-12:
    • Fix AES encrypt/decrypt type hint.
  • 1.0.0 2023-06-17:
    • Refactored code to used more type hint. Now only support python 3.11+.
    • Because of the ChatGPT, remove the code_generator module.
    • Remove data_structs.lazy module, recommend to use lazy-object-proxy instead.
    • Remove exporters module.
    • Remove io_tools module.
    • Remove redis_helper module.
    • Remove log module.
    • Move enum to data_structs.enum.
    • Move third_parties.pydantic to data_structs.pydantic.
    • Move type_hint to typing.
    • Change requests and aiohttp requirement to httpx.
  • 0.3.0 2022-07-21:
    • Refactored cache.
    • Add signal dispatcher.
  • 0.2.3 2022-04-08:
    • Fix & add cli command.
    • Add log module.
  • 0.2.2 2022-01-08:
    • Add AES encrypt/decrypt method.
  • 0.2.1 2021-12-30:
    • Move convertors to data_structs.convertors
    • add some data_structs and methods.
  • 0.1.1 2021-12-8:
    • Optimize timetools. Now can set global timezone.
  • 0.0.11 2021-10-21:
    • Add js-like Promise.
  • 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).

Metadata

Release files for zhtools 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zhtools 1.2.3
File Size Uploaded Provenance Actions
zhtools-1.2.3.tar.gz 16.2 kB Without provenance Details for zhtools-1.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zhtools 1.2.3
File Interpreter ABI Platform Actions
zhtools-1.2.3-py3-none-any.whl Python 3 none any Details for zhtools-1.2.3-py3-none-any.whl

Total release size: 35.2 kB

Release files / zhtools-1.2.3.tar.gz

Download URL zhtools-1.2.3.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
569d495fa5df99d51960adb34c4821802b453604535f5ae22e315844dc8a8b98
BLAKE2b-256 checksum
How to use checksums
360bbf6274c622b3a83785269f8686a725d99bf1a8a61dcbbcf88121447230b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / zhtools-1.2.3-py3-none-any.whl

Download URL zhtools-1.2.3-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9835cb74d3cca3f3967d3a2bece51d5ace5ecd0c251258640ea449663fb00fe
BLAKE2b-256 checksum
How to use checksums
386677078ccb092c623dcd157e96e8e797bda5a45ccb58954ed1e94e43b196cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Security for zhtools 1.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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