Skip to main content

xhj nameko dependency

Project description

薪行家代付nameko dependency

install

pip install xhj-nameko-dependency

config

通过yaml文件方式配置nameko环境变量

# 公私钥需要先base64.encode
xhj:
  MCHNT_NUM: ${XHJ_MCHNT_NUM}
  API_BASE_URL: ${XHJ_API_BASE_URL}
  DES_KEY: ${XHJ_DES_KEY}
  PUBLIC_KEY: ${XHJ_PUBLIC_KEY}
  PRIVATE_KEY: ${XHJ_PRIVATE_KEY}

How to use?

from xhj import XHJ

class TestService(Base):
    xhj = XHJ()

    @rpc
    def create_package(self, data):
        return self.xhj.call("remit/createpackage", data)

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

xhj-nameko-dependency-0.0.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file xhj-nameko-dependency-0.0.2.tar.gz.

File metadata

  • Download URL: xhj-nameko-dependency-0.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for xhj-nameko-dependency-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2433d6294d05fc8b3e5d032a841433f0f5d30b0dacf8e77be80d7a5f352c5f32
MD5 1f81c9aed8ce2e4c5ffbdf7b39d75733
BLAKE2b-256 0c191e7ca5b82d47a76a1db675c474cb551d8fb9bbee0f3cfbe0c47e04301ed5

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