Skip to main content

Tsugu User Data Server CLI Tool

Project description

Tsugu User Data Server

Tsugu 用户数据库服务 CLI 实现

安装

pip install tsugu-uds

参数启动

tsugu-uds serve

相关参数可以在 help 中查看

tsugu-uds --help
tsugu-uds serve --help

启动服务器

使用Uvicorn ASGI服务器启动:

# 基本启动
tsugu-uds serve

# 指定日志级别
tsugu-uds serve --log-level debug

# 指定工作进程数
tsugu-uds serve --workers 4

# 调试模式启动
tsugu-uds serve --debug

配置文件启动

# 生成默认配置文件
tsugu-uds config new

# 使用配置文件启动(完全按配置文件设置)
tsugu-uds run

配置文件包含所有设置选项,可以手动编辑。关键配置项:

  • log_level: 日志级别(debug, info, warning, error
  • workers: Uvicorn的工作进程数

数据库管理

tsugu-uds db --help

direct-unbind 模式

使用 direct-unbind 参数启动服务器可实现解除绑定不验证, 但请保证你的服务器处于安全的非公网环境下才建议开启此功能, 否则任何人都有可能解除绑定任何账号, 此功能设计用于快速解除绑定.

此参数启用后 bind_player_request api 会在返回结果中添加一个 extra 字段, 值为 "safe_mode", 用于区分当前服务器的运行模式. 同时 bind_player_verification api 会直接解除绑定后, 返回解除成功状态.

目前支持 direct-unbind 的实现可以参考 Tsugu-b3.

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

tsugu_uds-1.0.9.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsugu_uds-1.0.9-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file tsugu_uds-1.0.9.tar.gz.

File metadata

  • Download URL: tsugu_uds-1.0.9.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tsugu_uds-1.0.9.tar.gz
Algorithm Hash digest
SHA256 581353bd11023223b2337672f2f5eff0c6d27967c7078586463c737cf5c42796
MD5 8bff663bdd349f6d4b24f661d4ac28b0
BLAKE2b-256 89ccd8374c81afb22c1a718adf6b48013e84157ea534485673cdf0efa918f5c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsugu_uds-1.0.9.tar.gz:

Publisher: publish.yml on kumoSleeping/tsugu-user-data-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsugu_uds-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: tsugu_uds-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tsugu_uds-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ea5f3844a322d3106e331cb2cfa656c140a3838877eb350f2c4ebf27fc310198
MD5 391af2b0383ec3d7f5d5e7b951717d80
BLAKE2b-256 1c82a95f20a4e70a9cac535ef5992ea9bf4cc82cfb201dcca31824a631d41543

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsugu_uds-1.0.9-py3-none-any.whl:

Publisher: publish.yml on kumoSleeping/tsugu-user-data-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page