Skip to main content

a common helper

Project description

OmHelper

python.org

Dependence

nothing

Build

python -m build --no-isolation

Upload

twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

OM.helper

  • md5() -> hash
  • rstr() -> random string
  • rone() -> random one from list
  • ip_to_int() -> convert ip string to int
  • int_to_ip() -> convert int ip to ip string
  • SingletonBase -> base singleton class
  • async_loop() -> return a asyncio loop
  • to_async() -> warp a sync func to async func
  • SuperDict -> warp dict, more funcions

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

om_helper-0.0.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

om_helper-0.0.3-py3-none-any.whl (3.0 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