Nameko Wrapper
nameko-wrapper包主要包含了一些编写nameko微服务所需要的常用工具,主要包括nameko方法优化,elasticsearch优化,统一异常处理以及一些其他工具。
Nameko方法优化
-
rpc异常处理优化
nameko_wrapper.rpc.rpc对nameko rpc进行异常处理和响应优化,处理合理微服务产生的异常和统一响应内容格式。 -
rpc响应优化
nameko_wrapper.response为微服务响应提供统一的响应 -
nameko异常统一
nameko_wrapper.exception为编写微服务应用提供统一的异常类,可以方便用户自己定义处理异常; -
常见依赖注入添加
nameko_wrapper.dependency_provider提供常见的nameko 依赖注入,比如Elasticsearch依赖注入
ElasticSearch优化
-
文档搜索优化
-
提供文档初始化函数
nameko_wrapper.elasticsearch.documents.init_document_index -
提供更简洁的搜索方式
-
扩展官方的文档类,提供
唯一约束和诸多便捷查询方法nameko_wrapper.elasticsearch.documents.ExtendDocument
其它工具
-
nameko配置读取方法nameko_wrapper.config -
dict访问转属性访问的方法
nameko_wrapper.utils.converts.dict2obj
Metadata
Release files for nameko-wrapper 0.0.30
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nameko_wrapper-0.0.30.tar.gz | 24.4 kB | Without provenance | Details for nameko_wrapper-0.0.30.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nameko_wrapper-0.0.30-py3-none-any.whl | Python 3 | none | any | Details for nameko_wrapper-0.0.30-py3-none-any.whl |
Total release size: 57.3 kB
Release files / nameko_wrapper-0.0.30.tar.gz
| Download URL | nameko_wrapper-0.0.30.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f50737d10895d46c773fcc8bdd41b9c2b52f7eacf673f5d11fc2ae34a2eb00ed
|
|
BLAKE2b-256 checksum How to use checksums |
ede05fda0df4b0546cb6fe57931c08c1a8955e07331d53a43eb515e2d052eaa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
|
Release files / nameko_wrapper-0.0.30-py3-none-any.whl
| Download URL | nameko_wrapper-0.0.30-py3-none-any.whl |
|---|---|
| Size | 32.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd376f8a45fc5599f256f9304e5434606db2f7d80757ebae922c7ca2600312f2
|
|
BLAKE2b-256 checksum How to use checksums |
ee42421582980b9f07add158a02c6e0e86299db8ec5c93f6a88500b246e43593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
|
Security for nameko-wrapper 0.0.30
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.