Skip to main content

A Django application for developing BK-PaaS add-on services.

Project description

Paas Service

蓝鲸 PaaS 平台增强服务框架

版本历史

详见 CHANGES.md

使用指南

  1. 更新 settings:
INSTALLED_APPS = [
    ...
    'paas_service',
    ...
]

MIDDLEWARE = [
    ...
    'paas_service.auth.middleware.VerifiedClientMiddleware',
    ...
]

# 数据库敏感字段加密 Key
BKKRILL_ENCRYPT_SECRET_KEY = base64.b64encode(b'\x01' * 32)

# 与 PaaS 平台通信的 JWT 信息
PAAS_SERVICE_JWT_CLIENTS = [
    {
        "iss": "paas-v3",
        "key": "123..........",
        "algorithm": "HS256",
    },
]

# 增强服务供应商类
PAAS_SERVICE_PROVIDER_CLS = "svc_xxx.vendor.provider.Provider"
# 增强服务实例信息渲染函数
PAAS_SERVICE_SVC_INSTANCE_RENDER_FUNC = "svc_xxx.vendor.render.render_instance_data"

# 设置语言,注意:目前国际化只支持: 简体中文 和 English
LANGUAGE_CODE = 'zh-cn'

LANGUAGES = [("zh-cn", "简体中文"), ("en", "English")]
  1. 单元测试

首先,安装 pytest、pytest-django。

然后执行 make test 运行所有单元测试。

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

paas_service-1.1.7.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

paas_service-1.1.7-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file paas_service-1.1.7.tar.gz.

File metadata

  • Download URL: paas_service-1.1.7.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.20 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.6

File hashes

Hashes for paas_service-1.1.7.tar.gz
Algorithm Hash digest
SHA256 e5ae09812329571d3ba092e14bc2beaf19ff4f337264875673091bc9e3841657
MD5 500c1e9abf66e365b3ce2301dc8b64b8
BLAKE2b-256 b8e72fd37aa3076593c3e306fb750d9ce15e466e5746e9941b53bc672a100cbf

See more details on using hashes here.

File details

Details for the file paas_service-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: paas_service-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.20 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.6

File hashes

Hashes for paas_service-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3b45fbe106bfcdafb007a702c565b4186f82324d969dcff1bdb51f15428c07c3
MD5 e68bca4b7e48eaa9cc21611dacafe4a6
BLAKE2b-256 2bc94aec96598d1f7f1f3df1c076b4e4981e04a4ca6a586436c00ad92a26d15f

See more details on using hashes here.

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