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.1.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.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylucas-3.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ef15157a5f1bf425836f8cb60ca4c7fc85025be500cc80d7a46cdd3bea2de769
MD5 b9ffb7f4f53707d160d39cdc3bb2c46c
BLAKE2b-256 d3fafe960c61de316ba993eb496c3ad3e99f71202816f3c8f1b258f80dd1c490

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylucas-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60be510e5aae2002780ca4ab863255bb3e6bc2035c2267ab9c6edf4421ef1723
MD5 3255487af5aaf421dc96f78ab2c83e78
BLAKE2b-256 51354445a5a0edc548e0678eb8104a5d946165e43f0cd731a4ef7898aa00fc84

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