Skip to content

Commit

Permalink
更新使用用例
Browse files Browse the repository at this point in the history
  • Loading branch information
ll committed Aug 10, 2021
1 parent 0d3decd commit abfc625
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 24 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,32 @@ pip install -i https://test.pypi.org/simple/ pyefun
```python
from pyefun import *
```

[易函数使用示例代码](https://github.com/duolabmeng6/pyefun/tree/master/example)

[pyefun中所有模块可以导入使用的模块](https://github.com/duolabmeng6/pyefun/blob/master/pyefun/__init__.py)

例如我需要使用编码转换模块

编码转换需要安装 chardet

`pip install chardet`

```python
from pyefun.codeConv import * # 编码转换
```

例如我需要正则表达式 加载ini配置项 加载环境变量文件 selenium浏览器自动化测试

```python
from pyefun.regexpUtil import * # 正则表达式
from pyefun.configUtil import * # 配置项
from pyefun.configEnvUtil import * # 环境变量
from pyefun.seleniumUtil import * # 浏览器自动化测试
```



> 提示: 如果你的程序是需要编译为exe的必须使用`import pyefun as efun` 而不能是`import *`
> [Nuitka python工具使用教程](https://zhuanlan.zhihu.com/p/133303836)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from pyefun.processPoolUtil import *
from pyefun import *


Expand Down
59 changes: 36 additions & 23 deletions pyefun/__init__.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,47 @@
from pyefun.arithmeticOperationBase import * # 算数运算
from pyefun.arrayActionBase import * # 数组操作
# from pyefun.codeConv import * # 编码转换
from pyefun.dirkBase import * # 磁盘操作
from pyefun.public import * # 公用模块
from pyefun.stringBase import * # 文本操作
from pyefun.systemProcessingBase import * # 系统处理
from pyefun.timeBase import * # 日期时间操作
from pyefun.typeConv import * # 类型转换
from pyefun.practical import * # 一些实用的函数
# ========== 核心支持库命令 ==========
from pyefun.arithmeticOperationBase import * # 算数运算
from pyefun.arrayActionBase import * # 数组操作
from pyefun.codeConv import * # 编码转换
from pyefun.dirkBase import * # 磁盘操作
from pyefun.public import * # 公用模块
from pyefun.stringBase import * # 文本操作
from pyefun.systemProcessingBase import * # 系统处理
from pyefun.timeBase import * # 日期时间操作
from pyefun.typeConv import * # 类型转换
# ========== 核心支持库命令 ==========

from pyefun.practical import * # 一些实用的函数
# from pyefun.cacheUtil import * # 缓存工具
# from pyefun.commonlyUtil import * # 实用函数
# from pyefun.commonlyUtil import * # ubelt 封装的实用函数
# from pyefun.progiterUtil import * # 进度显示
from pyefun.stringUtil import * # 文本操作实用函数
from pyefun.timeUtil import * # 时间工具类
from pyefun.stringUtil import * # 文本操作实用函数
from pyefun.timeUtil import * # 时间工具类

# from pyefun.regexpUtil import * # 正则表达式

from pyefun.threadingUtil import * # 线程操作有线程池
from pyefun.processPoolUtil import * # 进程池使用方法
from pyefun.threadingUtil import * # 线程操作有线程池
from pyefun.processPoolUtil import * # 进程池使用方法
# from pyefun.asyncPool.asyncPool import * # 原生协程池
# from pyefun.asyncPoolGevent.asyncPoolGevent import * * # Gevent协程池
from pyefun.networkUtil import *
# from pyefun.configUtil import * # 配置项
# from pyefun.configEnvUtil import * # 环境变量
from pyefun.clockUtil import * # 时钟
from pyefun.clockUtil import * # 时钟

# from pyefun.encoding.compress.egzip import *
# from pyefun.encoding.compress.ezlib import *
# from pyefun.encoding.compress.zip import *
# from pyefun.encoding.ebinary.binary import *
# from pyefun.encoding.ebase64.ebase64 import *
# from pyefun.encoding.url.url import *
# from pyefun.encoding.compress.egzip import * # gzip 解压缩
# from pyefun.encoding.compress.ezlib import * # zlib 解压缩
# from pyefun.encoding.compress.zip import * # zip 解压缩
# from pyefun.encoding.ebinary.binary import * # 二进制 编码解码
# from pyefun.encoding.ebase64.ebase64 import * # base64 编码解码
# from pyefun.encoding.url.url import * # URL 编码解码

__version__ = '1.0.28'
# from pyefun.javscript import * # 执行js脚本
# from pyefun.qrcode import * # 二维码解析

# from pyefun.excel.excel_xlwr import * # excel操作模块 选其中一个使用即可
# from pyefun.excel.excel_openpyxl import * # excel操作模块 选其中一个使用即可

# from pyefun.seleniumUtil import * # 浏览器自动化测试


__version__ = '1.0.29'
4 changes: 4 additions & 0 deletions pyefun/codeConv.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
.. Hint::
编码转换
需要安装 chardet
pip install chardet
.. literalinclude:: ../../../pyefun/codeConv_test.py
:language: python
Expand Down

0 comments on commit abfc625

Please sign in to comment.