Skip to main content

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 运行所有单元测试。

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: paas_service-3.1.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for paas_service-3.1.0.tar.gz
Algorithm Hash digest
SHA256 64d62894ae81b0e38661c58e5a90274e46708f662db707336c7ebafa7b939263
MD5 416db038383b60eae090cd4f0a9974dc
BLAKE2b-256 8d00da8e159d3da1404f488ed2610e76372d656a1e7fc865aada2007eedd5acb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paas_service-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for paas_service-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 978d7ed1a2f9a74f627a0da03a83036667b8656f756797ca06369fa179087baf
MD5 179aeee9c22cc31b76abb2f8b392a96c
BLAKE2b-256 794f5ce5de46bf1d1b9a578ce6d914fce0e34f2e502a8aa57dec589f578a4015

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 files

3.0.0

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.1.7

2 files

1.1.6

2 files

1.1.5

2 files

1.1.4

2 files

Supported by

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