Skip to main content

entari-plugin-user

python pypi

Entari 用户系统插件,用于统一管理用户信息、跨平台账号绑定和权限等级控制。

安装

pip install entari-plugin-user
# or use pdm
pdm add entari-plugin-user
# or use uv
uv add entari-plugin-user

配置

配置项 必填 默认值
user_token_prefix 否 entari/

使用

查看用户信息

/user

改名

/user -n <username>
/callme <username>

绑定

/bind [-r|--revoke]

授权

/auth <level> -u <@用户>
/auth --superuser [token]

插件适配

获取用户信息

from arclet.entari import command
from entari_plugin_user import User, UserSession  # entari:plugin

@command.on("me")
async def _(session: UserSession):
    await session.send(f"You're {session.user_name}({session.platform_id})")

权限过滤

from arclet.entari import command, propagate
from entari_plugin_user import authorization, superusers  # entari:plugin

@command.on("ban")
@authorization(3)
async def _ban():
    ...

@command.on("sudo")
@superusers
async def _sudo():
    ...

鸣谢

Metadata

Release files for entari-plugin-user 0.2.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 entari-plugin-user 0.2.0
File Size Uploaded Provenance Actions
entari_plugin_user-0.2.0.tar.gz 9.7 kB Without provenance Details for entari_plugin_user-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for entari-plugin-user 0.2.0
File Interpreter ABI Platform Actions
entari_plugin_user-0.2.0-py3-none-any.whl Python 3 none any Details for entari_plugin_user-0.2.0-py3-none-any.whl

Total release size: 27.3 kB

Release files / entari_plugin_user-0.2.0.tar.gz

Download URL entari_plugin_user-0.2.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3ad727139beb99ad5d1dec4f6b68529fb9bf93445f6dd0657fe4920a5b52fcf1
BLAKE2b-256 checksum
How to use checksums
9982231f6ab9be3791b928a7083954e33150315fc286962086e54b333b031aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / entari_plugin_user-0.2.0-py3-none-any.whl

Download URL entari_plugin_user-0.2.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
272467eb04ac21d980b0bce3863915bdc39dc9a05980bf99437985a5e5a41973
BLAKE2b-256 checksum
How to use checksums
1b484c8e57eaeeff25451a30830dd54a7b03ba4b73757a7ce2789f0b2d661aa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for entari-plugin-user 0.2.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