Skip to main content

Generate short url by bot for bypassing censorship

Project description

nonebot

nonebot-plugin-shorturl

✨ 为 NoneBot 插件提供短链接服务支持 ✨

license pypi python

使用方式

.env 文件中添加必填的配置项

配置项

通用配置项

  • SHORTURL_HOST(必填):用于为外部插件构造完整的包含域名的短链接。示例值:http://localhost:8080
  • SHORTURL_ENDPOINT:指定短链接服务的入口点模板。默认值:/shorturl/{encoded},可以自定义为 /s/{encoded}
  • SHORTURL_CACHE_TYPE:指定短链接服务的后端缓存类型,可选值:memory | diskcache | redis

差分配置项

Redis

  • SHORTURL_REDIS_HOST:Redis 后端的地址
  • SHORTURL_REDIS_PORT:Redis 后端的端口
  • SHORTURL_REDIS_DB:Redis DB 配置项
  • SHORTURL_REDIS_USERNAME:Redis 用户名
  • SHORTURL_REDIS_PASSWORD:Redis 密码

Diskcache

  • SHORTURL_DISKCACHE_FOLDER:Diskcache 文件持久化目录

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

nonebot_plugin_shorturl-0.2.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_shorturl-0.2.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_shorturl-0.2.3.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_shorturl-0.2.3.tar.gz
Algorithm Hash digest
SHA256 c9066db19d32e16e954719e6860873b22d081e0d8a68c24e7f19a8d74e86f599
MD5 560a2ae7460467912f209778ef882459
BLAKE2b-256 0bcec4b2b3722958ba96dd2da3d51ef03543b4c5b433df0523e747ab52ed8fc9

See more details on using hashes here.

Provenance

File details

Details for the file nonebot_plugin_shorturl-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_shorturl-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bef97266f6ce3ffa0a0de1968d173f8b8518df822d041111b302dcc28502b31e
MD5 628ca0bcc19d108f77d28b4175aa6001
BLAKE2b-256 b8e413b2423687a5a412552adb601585f692fdc64a187d98767f4df6ba349dbd

See more details on using hashes here.

Provenance

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