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.7.tar.gz (14.1 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.7-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsugu_uds-1.0.7.tar.gz
  • Upload date:
  • Size: 14.1 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.7.tar.gz
Algorithm Hash digest
SHA256 64f74b783d145ab059738d3110c5cb519d4811e726190c7c5bb80021274b1b41
MD5 0f4781a46fbe97ad2e74ac3a96324a21
BLAKE2b-256 f58c21af0ba82eab10cf9968d7f086caf943fcbe16b5d28bf138cf6ba9e4bf62

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsugu_uds-1.0.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: tsugu_uds-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 14.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 11211cb9f65b2736f55f3e0488a22db87f04a5aa4afe15c9bbdfbebac27aa67b
MD5 af18924fa932366733eb2a24f821817e
BLAKE2b-256 17dc0a35a30b2368cb7b343953ebd675314a116f4e484caa1a9328ac609a572e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsugu_uds-1.0.7-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