Skip to main content

those common functions of package for inner corporation

Project description

天智信达的库

用法

  1. 此库作为git项目管理,凡是修改完后应及时通知到开发团队
  2. 需要使用库中的方法,需要将项目下载的本地,然后进入到项目中执行 python setup.py install,这时候就可以在项目中引用库中的方法
  3. 引用的方法举例:

第一种方法:

import wisdom.example as we
we.hello()
from wisdom.example import * 
这种方式,不推荐,还是用什么,引入什么。 

第二种方法:如果模块是以class组织代码的

from wisdom.example_class import my_class
ec=my_class()
ec.hello()
ec.world()
MyClass.hello()#这个hello是静态方法

如何设计包

顶级包: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.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

wisdoms-0.0.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file wisdoms-0.0.2.tar.gz.

File metadata

  • Download URL: wisdoms-0.0.2.tar.gz
  • Upload date:
  • Size: 3.6 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

Hashes for wisdoms-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5c53e1af1176bd4c6614a014ed5bd98871723fb7dd56ba55da0d129b04b1db5b
MD5 9756c9a02485b7912ee786c97634117c
BLAKE2b-256 173ac917640533dfac4354419374cde6bd405bc5dfc252bb602b2e6649576f03

See more details on using hashes here.

File details

Details for the file wisdoms-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: wisdoms-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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

Hashes for wisdoms-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2aaa97388e63d9fe0f3df800126b47b853ad590ec6bcc13c4dceaffb35430fe9
MD5 532a49260f15bc42401639832c815936
BLAKE2b-256 685ba81888dc9a639bdad8ab18d73d490b4e4944db0c7cccb2d384cdb885a334

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