Skip to main content

nameko wrapper

Project description

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

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

nameko_wrapper-0.0.12.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

nameko_wrapper-0.0.12-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nameko_wrapper-0.0.12.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for nameko_wrapper-0.0.12.tar.gz
Algorithm Hash digest
SHA256 01260b7e835ace3e9a926e6682819f42cd60e15ee05d769d2e6969f3097d7665
MD5 6419bbe0aebb9984be56dddae78b0642
BLAKE2b-256 91121d6b45d27b6aee55a9fbca3dbb080ffb6b2f1f2aaa65831d757d0e7266c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nameko_wrapper-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for nameko_wrapper-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 e53a65e2927b2b01ed154c088e0b546253c514c185a3e4d3908a6c2d8d39ee8a
MD5 d8ab9a418f4c9f8b2e9038d78bd783b5
BLAKE2b-256 8d404ac1d260dda77c1a87805400c6911474f826d784d170f86b14f3203d87ce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page