使用方式
加载插件后使用 require 获取导出方法
from nonebot import require
store = require("nonebot_plugin_localstore")
plugin_cache_dir = store.get_cache_dir("plugin_name")
plugin_cache_file = store.get_cache_file("plugin_name", "filename")
plugin_config_dir = store.get_config_dir("plugin_name", "filename")
plugin_config_file = store.get_config_file("plugin_name", "filename")
plugin_data_dir = store.get_data_dir("plugin_name")
plugin_data_file = store.get_data_file("plugin_name", "filename")
存储路径
cache path
- macOS:
~/Library/Caches/<AppName> - Unix:
~/.cache/<AppName>(XDG default) - Windows:
C:\Users\<username>\AppData\Local\<AppName>\Cache
data path
- macOS:
~/Library/Application Support/<AppName> - Unix:
~/.local/share/<AppName>or in $XDG_DATA_HOME, if defined - Win XP (not roaming):
C:\Documents and Settings\<username>\Application Data\<AppName> - Win 7 (not roaming):
C:\Users\<username>\AppData\Local\<AppName>
config path
- macOS: same as user_data_dir
- Unix:
~/.config/<AppName> - Win XP (roaming):
C:\Documents and Settings\<username>\Local Settings\Application Data\<AppName> - Win 7 (roaming):
C:\Users\<username>\AppData\Roaming\<AppName>
Metadata
Release files for nonebot-plugin-localstore 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot-plugin-localstore-0.1.0.tar.gz | 5.7 kB | Without provenance | Details for nonebot-plugin-localstore-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_localstore-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_localstore-0.1.0-py3-none-any.whl |
Total release size: 11.8 kB
Release files / nonebot-plugin-localstore-0.1.0.tar.gz
| Download URL | nonebot-plugin-localstore-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d264cf8adcc4a470b496a78384eafd6ffd13bb8b7e14125e38e641748d2ee79
|
|
BLAKE2b-256 checksum How to use checksums |
8667c262734d8a8f838bccb628b7ee9892139c00d1832f93606a7c9792690492
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.0 Linux/5.4.0-67-generic
|
Release files / nonebot_plugin_localstore-0.1.0-py3-none-any.whl
| Download URL | nonebot_plugin_localstore-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5be70a32f24d92561120881b883e4583c7aecec9703399cc6eef4618e5ee933
|
|
BLAKE2b-256 checksum How to use checksums |
e7efcf1deeb53674b5bd52103ecdebdaca4773989b5c83f115396ad19b7d5e54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.0 Linux/5.4.0-67-generic
|
Security for nonebot-plugin-localstore 0.1.0
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.