Skip to main content

soraha_utils

Project description

soraha_utils

这是什么?

羽衣从杂物箱里翻出来的乱七八糟的工具们,但现在已经把这项轻松工作丢给精灵们了,真的很懒呢!

内容

  • 装饰器@with_hook()
    • 注册一个函数,然后就可以做到注册预处理函数和终止后函数啦!
    • 示例: 注释很清楚了,直接去看就行
  • 彩色logger
    • 对loguru的再次封装,变成了自己常用的样子了(笑)
  • uio[sync_uio|async_uio]
    • 提供了文件的input(对,io指的是input object)
    • 以下情况可以使用:
      • 保存json|任意文本|二进制图片
      • 传递url,保存响应json|image
    • 并且提供了同步异步两种
  • uitry
    • 无限重试!只要@retry()就可以重试到成功为止!
      • 如果这样了都不能成功那祝你好运!
  • 同步转异步
    • @sync_to_async
    • 应该都懂什么意思吧(

为什么要写这个

  • 重复的代码太多了呜呜呜,大家都有轮子,我也得造一个

未来期望

  • 会逐渐把所有重复率高的代码加进去
  • 因为常用nonebot,可能加入相关内容,也可能单独开个wheel

LICENSE约定!

请给我钱 License
版权所有(c) 2021 shiying

  1. 任何人都可以使用、复制、修改、合并、发布、分发本软件的副本
  2. 用于商业化或修改后需要闭源请征得作者同意
  3. 禁止单独将该软件的副本出售
  4. 本软件不包含任何形式的明示或暗示
  5. 作者不对本软件的任何第三方修改版负责
  6. 作者对软件的可用性及稳定性不做任何保证(但应该会持续更新且debug!)
  7. 作者不清楚这个软件在干嘛,但是作者很可爱
  8. 由上:请给作者PR或issue!谢谢
  9. 祝你好运
  10. 大家一起开心的掉头发吧!

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

soraha_utils-0.0.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

soraha_utils-0.0.3-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file soraha_utils-0.0.3.tar.gz.

File metadata

  • Download URL: soraha_utils-0.0.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for soraha_utils-0.0.3.tar.gz
Algorithm Hash digest
SHA256 71560536dabab93fb1b6a20ce904c704a17521585e1082b380c213134145cdec
MD5 c620c1d605ceb0fd02fd6c5d774c42d8
BLAKE2b-256 e633bee4848b07c246660b0584f6e204eb61036b550581a62b1744f80297a271

See more details on using hashes here.

File details

Details for the file soraha_utils-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: soraha_utils-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for soraha_utils-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 37f92bcfc2bd756e2f9ad0a4b3447d61cc2ecf081210dafa4b5e81fe83665d1e
MD5 7bfd4db8fbbe7f77886e53a5f97e1ae4
BLAKE2b-256 45cc4295aadee87eb886746ab3f1e6d5ed94c48ac294baff1117b7822a78c920

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