Skip to main content

nonebot

NoneBot Plugin LocalStore

✨ NoneBot 本地数据存储插件 ✨

license pypi python

使用方式

加载插件后使用 require 声明插件依赖,直接使用 localstore 插件提供的函数即可。

from pathlib import Path
from nonebot import require

require("nonebot_plugin_localstore")

import nonebot_plugin_localstore as store

plugin_cache_dir: Path = store.get_cache_dir("plugin_name")
plugin_cache_file: Path = store.get_cache_file("plugin_name", "filename")
plugin_config_dir: Path = store.get_config_dir("plugin_name")
plugin_config_file: Path = store.get_config_file("plugin_name", "filename")
plugin_data_dir: Path = store.get_data_dir("plugin_name")
plugin_data_file: Path = store.get_data_file("plugin_name", "filename")

存储路径

在项目安装插件后,可以使用 nb-cli 查看具体的存储路径:

nb localstore

参考路径如下:

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.6.0

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

Source distribution (sdist)

Source distribution for nonebot-plugin-localstore 0.6.0
File Size Uploaded Provenance Actions
nonebot_plugin_localstore-0.6.0.tar.gz 6.3 kB Without provenance Details for nonebot_plugin_localstore-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-localstore 0.6.0
File Interpreter ABI Platform Actions
nonebot_plugin_localstore-0.6.0-py3-none-any.whl Python 3 none any Details for nonebot_plugin_localstore-0.6.0-py3-none-any.whl

Total release size: 14.3 kB

Release files / nonebot_plugin_localstore-0.6.0.tar.gz

Download URL nonebot_plugin_localstore-0.6.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7eb4039cb2e76c54b860b2b98f2b90cd25284919603e81dedec367f215662fcd
BLAKE2b-256 checksum
How to use checksums
33dd53f85ad48f9211f77a2472a80a92ae7207a5dc384576ce1d8d59cd223e86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

Release files / nonebot_plugin_localstore-0.6.0-py3-none-any.whl

Download URL nonebot_plugin_localstore-0.6.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59f0126d85680601166a9a62cca886a33e1b0a8fef7cd67fff52747bd47f42d3
BLAKE2b-256 checksum
How to use checksums
aab6ee3a91b8bcc2ea59fac833604ba7195211e6e7db5ff9fe2b87d16d799470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

Security for nonebot-plugin-localstore 0.6.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.

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