Skip to main content

聚合数据接口 juhe

Project description

juhe

Install

sudo pip3 install juhe
from juhe import API

Usage

  • 汇率

    API().query_exchange("输入你的Key")
    >>>
    {
    '加拿大元': {   '中行折算价': '521.49',
                '交易单位': '100',
                '现汇买入价': '517.59',
                '现钞买入价': '502.79',
                '现钞卖出价': '521.49',
                '货币名称': '加拿大元'},
    '新西兰元': {   '中行折算价': '462.26',
                '交易单位': '100',
                '现汇买入价': '458.81',
                '现钞买入价': '445.69',
                '现钞卖出价': '465.02',
                '货币名称': '新西兰元'},
    '日元': {   '中行折算价': '5.9834',
              '交易单位': '100',
              '现汇买入价': '5.9381',
              '现钞买入价': '5.7683',
              '现钞卖出价': '5.9834',
              '货币名称': '日元'},
    '欧元': {   '中行折算价': '780.75',
              '交易单位': '100',
              '现汇买入价': '775.54',
              '现钞买入价': '753.13',
              '现钞卖出价': '780.75',
              '货币名称': '欧元'},
    '港币': {   '中行折算价': '84.23',
              '交易单位': '100',
              '现汇买入价': '83.89',
              '现钞买入价': '83.3',
              '现钞卖出价': '84.23',
              '货币名称': '港币'},
    '澳大利亚元': {   '中行折算价': '501.03',
                 '交易单位': '100',
                 '现汇买入价': '497.28',
                 '现钞买入价': '483.06',
                 '现钞卖出价': '501.03',
                 '货币名称': '澳大利亚元'},
    '瑞典克朗': {   '中行折算价': '76.34',
                '交易单位': '100',
                '现汇买入价': '75.77',
                '现钞买入价': '73.61',
                '现钞卖出价': '76.34',
                '货币名称': '瑞典克朗'},
    '瑞士法郎': {   '中行折算价': '706.86',
                '交易单位': '100',
                '现汇买入价': '701.58',
                '现钞买入价': '681.51',
                '现钞卖出价': '706.86',
                '货币名称': '瑞士法郎'},
    '美元': {   '中行折算价': '655.7',
              '交易单位': '100',
              '现汇买入价': '653.02',
              '现钞买入价': '648.44',
              '现钞卖出价': '655.7',
              '货币名称': '美元'},
    '英镑': {   '中行折算价': '907.31',
              '交易单位': '100',
              '现汇买入价': '900.54',
              '现钞买入价': '874.78',
              '现钞卖出价': '907.31',
              '货币名称': '英镑'},
    '韩元': {   '中行折算价': '0.604',
              '交易单位': '100',
              '现汇买入价': '0.583',
              '现钞买入价': '0.5666',
              '现钞卖出价': '0.604',
              '货币名称': '韩元'}}
    
  • 笑话

    api.get_jokes(key)

      [
          "高中一班主任陈老师,因其身高比较矮,同学给起了个外号叫“武大郎”,后来被老师得知,要求同学带家长,同学跟家里说了原委,家长带着同学到老师办公室致歉,该同学家长进门就说:“武老师,小孩子不懂事,还忘您能海涵”,后来同学告诉我们班主任当时那表情都抽搐了,足足让我们笑了一学期。",
          "…给闺女买了一双小皮鞋,花了两张毛爷爷,小鞋很结实,闺女穿了好多天后要我给她买鞋,说不喜欢了,我就各种教育,比如要穿破之后买,要知道省钱……等等。今天再回去的时候,姑娘左手拎着残破的鞋子,右手拿着剪刀,跑过来说:爸爸,现在可以买新的鞋子了吧!来,过来,爸爸保证不打你,我的亲闺女。",
      ]
    

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

juhe-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

juhe-0.1.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file juhe-0.1.1.tar.gz.

File metadata

  • Download URL: juhe-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for juhe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2c37473ec1c6836962850daf8b8aa1e1151f165a539c4d39a2ad7c1599c73955
MD5 3bcd43c7ba87196b33cfcbfef1883057
BLAKE2b-256 777f572ef988009a0e63dde023f00f329d2c5465814cff82171725b41db59b36

See more details on using hashes here.

File details

Details for the file juhe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: juhe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for juhe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3186684192ce08af09de375822ff35f74ae5432358fed6e40383e0d9b91a1c66
MD5 30615ae91d1a2e6234f8d93eba37b161
BLAKE2b-256 6cd22610d28b502fe77769961e8779ff2f97ec1ba67e68323c8203fb69670b60

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