Skip to main content

Lucas' Functional Distribution, Which Integrates Some Commonly Used.

Project description

Welcome to PyLucas


安装

pip install pylucas
pip install pylucas[all]
pip install pylucas[fileops, log, rwxl]
poetry add pylucas
poetry add pylucas[all]
poetry add pylucas[fileops, log, rwxl]

支持的功能列表:

  • fileops
    • ConfigEditor
      • 用于 创建/读写 配置文件
      • 支持格式: Toml, Json
    • ListFiles
      • 返回指定路径下的所有满足条件的文件.
    • FilesCopyer
      • 拷贝文件或目录下的所有文件到指定目录下.
    • FilesClear
      • 清除指定文件或指定目录下的所有文件.
  • log
    • LogManager
      • 用于进行日志管理.
    • ASCII_Art
      • 用于输出 ASCII 艺术字.
  • rwxl
    • ReadExcel
      • 用于读取 Excel 文件并按一定规则进行基础的数据清洗.
  • struct
    • result
      • 用于作为通用的函数返回值的类型.
  • function
    • GetTimeStamp
      • 用于获取当前时间戳.
    • GetCurrentFrameInfo
      • 获取当前帧信息, 可以定位到当前执行到的调用栈.
    • lindex
      • 用于从左侧查找值索引, 类似 str.find, 如未找到则返回 -1.
    • rindex
      • 用于从右侧查找值索引, 类似 str.rfind, 如未找到则返回 -1.

计划列表:

1.2.0:

  • 出现了大量的因向前兼容而产生的被标记为'即将弃用'的函数与方法, 并且经历大范围的重构, ThreadPool 类因性能原因没有被添加, 此版本被跳过, 直接并入包含破坏性更新的 2.0.0 版本.

  • 添加 ThreadPool 类, 用于线程池创建和子线程管理.

  • 更改 Function 文件夹结构, 使更易于管理.

2.0.0:

  • 该版本是实际意义上的第一个正式版, 尽可能的将所有接口固定下来, 以防止因为后续的修复和优化等操作导致的无法向前兼容.

  • 修复各种 BUG.

  • 理顺项目结构.

  • 部分重构和优化.W

  • 移除部分功能(被弃用的或是被重构为新方法/函数的).

3.0.0:

  • 该版本大幅度的修改了整个项目结构, 引入了子包和可选依赖.

  • fileops.ConfigEditor:

    • 移除基类 ConfigEditorSL, 在 ConfigEditor 中直接调用 ConfigEditorSL_Json, ConfigEditorSL_Toml 的方法.
    • 为 ConfigEditor 添加魔术方法 __getitem__, __setitem__ 允许使用 [] 运算符进行键索引.
    • 未修改已存在的对外接口.
  • fileops.Function:

    • 将原有 Function 中的部分涉及文件操作的函数移至此处, 包含 ListFiles, FilesCopyer, FilesClear.
  • function.Function:

    • 包含 GetTimeStamp, GetCurrentFrameInfo, lindex, rindex.
  • log.LogManager:

    • 为 LogManager 添加魔术方法 __call__, 允许使用 () 关键字直接调用 Log 方法.
  • log.Function:

    • 把原本在 Function 内的 ASCII_Art 函数移动到此处.
  • rwxl.Function:

    • 添加函数 ReadExcel.
  • struct.Struct:

    • 移动类 result 至此.

未来:

  • 增加类 zDownloader, 实现多线程下载器.(实现中)
  • 增加类 zThreadPool, 实现线程池.(计划中)
  • 增加类 zEventHandler, 实现事件处理系统.(计划中)
  • 增加类 KbdCapturer, 实现键盘捕获.(计划中)
  • 增加类 rpa, 实现自动化.(实现中)

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

pylucas-3.0.2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylucas-3.0.2-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file pylucas-3.0.2.tar.gz.

File metadata

  • Download URL: pylucas-3.0.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.9 Windows/10

File hashes

Hashes for pylucas-3.0.2.tar.gz
Algorithm Hash digest
SHA256 6e0bd4f3f8fbfa9f47cf0560cb7e03d303ab5fec37368dc50493c9f5930170c6
MD5 1380993d07b1033ac5020f29c8abe9d9
BLAKE2b-256 4633b2afe04c6df4a4b3d6bd1c0d593e2971263cb5b2c29275d61b86c7d604e5

See more details on using hashes here.

File details

Details for the file pylucas-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: pylucas-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.9 Windows/10

File hashes

Hashes for pylucas-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 84ca7ec70458d4dea5ee30b96a34cd2132f8eecd096b13b18af42d6ec95c9759
MD5 483e42f2efd33007d0c2a39c02ccc38b
BLAKE2b-256 482b7823a1bd3e8dc5dd00e408b3d121f55319129f4df1f818413470054f8ff7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page