those common functions of package for inner corporation
Project description
天智信达的库
用法
- 此库作为git项目管理,凡是修改完后应及时通知到开发团队
- 需要使用库中的方法,需要将项目下载的本地,然后进入到项目中执行 python setup.py install,这时候就可以在项目中引用库中的方法
- 引用的方法举例:
usage:
auth.py:
from wisdoms.auth import permit
host ={'AMQP_URI': "amqp://guest:guest@localhost"}
auth = permit(host)
class A:
@auth
def func():
pass
config.py
from wisdoms.config import c
c.get('name')
如何设计包
- 顶级包:wisdom,代表天智,智慧
- 现阶段的约定:采用一级包的方式
- 不同的功能放在不同的文件(模块)即可做好方法的分类
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wisdoms-0.0.4.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file wisdoms-0.0.4.tar.gz
.
File metadata
- Download URL: wisdoms-0.0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9824515f2c3a33b91e02c3b58227a7e2fcb87dea014f247ba4951597518e40ce |
|
MD5 | e48c1cd330e0fd83af0a6e112d84e4a6 |
|
BLAKE2b-256 | 4bd1453d4624c275d3824eafa87d285c488fb12e5671764379df6ce69a2827f0 |
File details
Details for the file wisdoms-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: wisdoms-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30ee96cea00a0c102a64d7bc5e00d9d31acffcac837ac745653fe5f58e7913ee |
|
MD5 | 4e15b80ff8492873eb59d4f7a5d35b47 |
|
BLAKE2b-256 | ab89b9c37c439c2099ffb923ac8f0131b724ddb71d16860cfef3b0bc1e1e9424 |