Skip to content

Commit 93e2d87

Browse files
committed
修改目录结构
1 parent 4c1804b commit 93e2d87

11 files changed

+12
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ parts/
1212
eggs/
1313
build/
1414
python_weixin.egg-info/
15+
dist/
1516

1617
# test
1718
test_example.py

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ python-weixin
22
-----
33
A Python client for the Weixin REST APIs
44

5+
0.0.4 新功能
6+
-----
7+
* 修改目录结构
8+
59
0.0.3 新功能
610
-----
711
* 添加超时处理
@@ -39,7 +43,7 @@ Weixin API 使用 OAuth2 认证方式
3943
微信开放平台使用示例:
4044

4145
``` python
42-
from pyWeixin.client import WeixinAPI
46+
from weixin.client import WeixinAPI
4347

4448
scope = ("snsapi_login", )
4549
api = WeixinAPI(appid=APP_ID,
@@ -57,7 +61,7 @@ user = api.user(openid="openid")
5761
微信公众平台使用示例:
5862

5963
``` python
60-
from pyWeixin.client import WeixinMpAPI
64+
from weixin.client import WeixinMpAPI
6165

6266
scope = ("snsapi_base", )
6367
api = WeixinMpAPI(appid=APP_ID,

sample_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from flask import request
55
from flask import jsonify
66

7-
from pyWeixin.client import WeixinAPI
8-
from pyWeixin.oauth2 import OAuth2AuthExchangeError
7+
from weixin.client import WeixinAPI
8+
from weixin.oauth2 import OAuth2AuthExchangeError
99

1010
app = Flask(__name__)
1111

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup, find_packages
33

44
setup(name="python-weixin",
5-
version="0.0.3",
5+
version="0.0.4",
66
description="Weixin API client",
77
license="BSD",
88
install_requires=["simplejson","requests","six", "chardet"],

test_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22

33

4-
from pyWeixin.client import WeixinAPI
5-
from pyWeixin.oauth2 import OAuth2AuthExchangeError
4+
from weixin.client import WeixinAPI
5+
from weixin.oauth2 import OAuth2AuthExchangeError
66

77
APP_ID = 'your app id'
88
APP_SECRET = 'your secret'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)