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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsugu_uds-1.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 5a3d78e44206ba072c68a84fe8401e1e09c6cb08255a4ed4b3fcb707f438e7c6
MD5 f8719063fb9cdf17a073812f2b2d513a
BLAKE2b-256 fddd01ad4bf5fc6f92ca3c29521ee5f3ba96079b174710a1110c64a272060e15

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tsugu_uds-1.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b266e4e7479f4f02c3f6ef4e202e0c3b7e2148789af86a4033319d0aaf73b69c
MD5 c596b687a1682394aab5559963d12acc
BLAKE2b-256 d67e0a1977298af84355c446c451349df84d98e5f7d65b37eab68deefd0cf9f6

See more details on using hashes here.

Provenance

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