Skip to main content

Nameko Wrapper

nameko-wrapper包主要包含了一些编写nameko微服务所需要的常用工具,主要包括nameko方法优化elasticsearch优化统一异常处理以及一些其他工具。

Nameko方法优化

  • rpc异常处理优化

    nameko_wrapper.rpc.rpcnameko 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nameko_wrapper-0.0.30.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

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

nameko_wrapper-0.0.30-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file nameko_wrapper-0.0.30.tar.gz.

File metadata

  • Download URL: nameko_wrapper-0.0.30.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for nameko_wrapper-0.0.30.tar.gz
Algorithm Hash digest
SHA256 f50737d10895d46c773fcc8bdd41b9c2b52f7eacf673f5d11fc2ae34a2eb00ed
MD5 6009e686f1db6c2267492d2c3f92674d
BLAKE2b-256 ede05fda0df4b0546cb6fe57931c08c1a8955e07331d53a43eb515e2d052eaa3

See more details on using hashes here.

File details

Details for the file nameko_wrapper-0.0.30-py3-none-any.whl.

File metadata

  • Download URL: nameko_wrapper-0.0.30-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for nameko_wrapper-0.0.30-py3-none-any.whl
Algorithm Hash digest
SHA256 fd376f8a45fc5599f256f9304e5434606db2f7d80757ebae922c7ca2600312f2
MD5 b89775746c3eecb3a79d20a9d5889907
BLAKE2b-256 ee42421582980b9f07add158a02c6e0e86299db8ec5c93f6a88500b246e43593

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.30 This release

2 files

0.0.29

1 file

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

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