Skip to main content

Pytola: Python Tools and Applications Collection - A comprehensive suite of Python utilities and applications

Project description

Pytola: Python Tools and Applications Collection

项目概述

Pytola 是一个多功能 Python工具集合,包含开发工具、办公应用、系统工具等多个模块。

主要功能模块

  • 开发工具 (dev):包管理、版本控制、代码检查等开发辅助工具

  • 办公应用 (office): PDF处理、图像转换、文档扫描等办公工具

  • 系统工具 (system): 文件管理、系统信息、进程控制等系统工具

  • 安全工具 (security): 输入验证、文件路径安全检查等安全工具

  • 多媒体工具 (multimedia):音播放、媒体处理等多媒体工具

  • 仿真工具 (simulation):科计算、模拟仿真等专业工具

安装方式

从 PyPI安装:

pip install pytola

或者使用 uv工具安装:

uv install pytola

或者从源码安装:

git clone https://gitee.com/gooker_young/pytola.git
cd pytola
pip install .

开发安装:

git clone https://gitee.com/gooker_young/pytola.git
cd pytola
pip install -e .

使用示例

基础导入:

import pytola
from pytola.core.logger import get_logger, ThemeManager

logger = get_logger(__name__)

# 获取版本信息
print(f"Pytola version: {pytola.__version__}")

# 使用日志功能
logger.info("Pytola initialized successfully")

# 使用主题管理器
theme_manager = ThemeManager()
print(f"Available themes: {theme_manager.list_themes()}")

模块使用示例:

# 开发工具示例
from pytola.dev.pypack import main as pypack_main
from pytola.dev.checksum import main as checksum_main

#办工具示例
from pytola.office.img2ico import main as img2ico_main
from pytola.office.pdfcrypt import main as pdfcrypt_main

#系统工具示例
from pytola.system.filedate import main as filedate_main

#安工具工具示例
from pytola.security import InputValidator
validator = InputValidator()
print(f"Valid email: {validator.validate_email('test@example.com')}")

命令行工具

Pytola 提供多个命令行工具:

  • pypack - Python包管理工具

  • checksum - 文件校验工具

  • img2ico - 图像转ICO工具

  • pdfcrypt - PDF加密工具

  • filedate - 文件时间管理工具

  • llmcli - LLM客户端工具

完整工具列表请查看 pyproject.toml 中的 [project.scripts]。

项目结构

项目采用模块化设计,主要目录结构:

  • pytola/ -核心模块

  • pytola/dev/ - 开发工具

  • pytola/office/ -办工具

  • pytola/system/ -系统工具

  • pytola/security.py -安全工具

  • docs/ - 文档

  • scripts/ -辅脚助脚本

构建要求

要求: - Python >= 3.8 - pip - uv

开发流程

使用 uv工具:

# 开发模式安装
uv sync

#运行测试
pytest

#检查代码风格
uvx prek

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

pytola-0.1.15.tar.gz (550.8 kB view details)

Uploaded Source

Built Distribution

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

pytola-0.1.15-py3-none-any.whl (487.6 kB view details)

Uploaded Python 3

File details

Details for the file pytola-0.1.15.tar.gz.

File metadata

  • Download URL: pytola-0.1.15.tar.gz
  • Upload date:
  • Size: 550.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pytola-0.1.15.tar.gz
Algorithm Hash digest
SHA256 3730132c58f2f096bddbca8ef7480ae9938e90214431cba009e5ef5d3636db28
MD5 372cbe72076addac220f0501557b9824
BLAKE2b-256 be62eca9eac0f5ef71ad440d2b0cdc3907df551535655a2d7ff0d18d9c5ae261

See more details on using hashes here.

File details

Details for the file pytola-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: pytola-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 487.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pytola-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 236ecabfe2cb8b857ee0c86d9a55e73f1828a1fad147741d2a3345eecadf373f
MD5 d305f8c9b60b5c26ca3e381f62485103
BLAKE2b-256 67e5ef686c1267ea418f54430b941ea9d1d3c4c4d29ac7d4c8031b1444353203

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