semvec/pypi-packages huggingface dataset:
cloudteam-logger 1.0.3
Logger module for cloudteam
Requires Python: >=3.8

# CloudTeam_Logger

## Table of Contents

- [About](#about)
- [Usage](#usage)
- [Functions](../function.md)

## About <a name = "about"></a>

This module is a logger module for cloudteam to simplify the logging process

## Usage <a name = "usage"></a>

in you code write the following line:    
```
from cloudteam_logger import cloudteam_logger
log = cloudteam_logger.ct_logger(<"the folder which you want the logs to be greated">,<optional: mode='debug'>)
log.<WANTED FUNCTION>("your log")
```

## Functions <a name = "function"></a>
- info - log level info
- error - log level error
- warning - log level warning
- critical - log level critical
- debug - only shown when mode = debug, log level debug
pasargadbot 0.1.0
یک کتابخانه ضد ربات برای وبسایت‌ها
Requires Python: >=3.6

# PasargadBot
یک کتابخانه پایتون برای پیاده‌سازی سیستم ضد ربات در وبسایت‌ها.

## نصب
```bash
pip install pasargadbot
pdfword2md 0.2.0
A tool to convert between PDF, DOCX and Markdown formats
Requires Python: >=3.6

# 格式转换工具

这是一个支持Word/PDF/MD等格式互转的工具，特别优化了MD格式转换，确保输出符合标准且能被大模型高效识别。

## 功能

- PDF转Markdown
- DOCX转Markdown
- Markdown转PDF
- Markdown转DOCX
- 批量转换功能

## 安装

1. 确保已安装Python 3.6+
2. 安装方法（任选其一）：
   - 从源码安装依赖：
     ```
     pip install -r requirements.txt
     ```
   - 直接安装依赖：
     ```
     pip install PyPDF2 python-docx markdown weasyprint
     ```
   - 从whl包安装（推荐）：
     ```
     pip install dist/pdfword2md-0.1.0-py3-none-any.whl
     ```

## 使用
安装完成后，可以直接在命令行中使用：
```
pdfword2md input.pdf output.md
```

## 使用

导入`converter.py`中的`FormatConverter`类，或直接运行脚本进行转换。

## 版本发布

### v1.0
- 初始稳定版本
- 支持PDF/DOCX/MD格式互转
- 包含批量转换功能
- 完善的错误处理和日志记录

### 方法详细说明

1. **pdf_to_md(pdf_path, output_path)**
   - 参数:
     - pdf_path: PDF文件路径
     - output_path: 输出的Markdown文件路径
   - 返回值: 成功返回True，失败返回False
   - 功能: 将PDF文件转换为Markdown格式，自动识别标题和列表格式

2. **docx_to_md(docx_path, output_path)**
   - 参数:
     - docx_path: Word文档路径
     - output_path: 输出的Markdown文件路径
   - 返回值: 成功返回True，失败返回False
   - 功能: 将Word文档转换为Markdown格式，保留标题样式和列表

3. **md_to_pdf(md_path, output_path)**
   - 参数:
     - md_path: Markdown文件路径
     - output_path: 输出的PDF文件路径
   - 返回值: 成功返回True，失败返回False
   - 功能: 将Markdown转换为PDF格式

4. **md_to_docx(md_path, output_path)**
   - 参数:
     - md_path: Markdown文件路径
     - output_path: 输出的Word文档路径
   - 返回值: 成功返回True，失败返回False
   - 功能: 将Markdown转换为Word文档格式

5. **batch_convert(file_list, output_dir, convert_type)**
   - 参数:
     - file_list: 要转换的文件路径列表
     - output_dir: 输出目录
     - convert_type: 转换类型 ('pdf_to_md', 'docx_to_md', 'md_to_pdf', 'md_to_docx')
   - 返回值: 成功转换的文件数量
   - 功能: 批量转换多个文件

### 基本使用示例
```python
from converter import FormatConverter

converter = FormatConverter()

# PDF转Markdown
converter.pdf_to_md("input.pdf", "output.md")

# DOCX转Markdown
converter.docx_to_md("input.docx", "output.md")

# Markdown转PDF
converter.md_to_pdf("input.md", "output.pdf")

# Markdown转DOCX
converter.md_to_docx("input.md", "output.docx")
```

### 批量转换示例
```python
from converter import FormatConverter

converter = FormatConverter()

# 准备文件列表
files = ["file1.pdf", "file2.docx", "file3.md"]

# 批量转换为Markdown
converter.batch_convert(files, "output_dir", "pdf_to_md")
converter.batch_convert(files, "output_dir", "docx_to_md")

# 批量转换为PDF/DOCX
converter.batch_convert(files, "output_dir", "md_to_pdf")
converter.batch_convert(files, "output_dir", "md_to_docx")
```

## 注意事项

- 确保输入文件路径正确
- 输出文件需要有写入权限
- MD转换特别优化了结构清晰度和元数据完整性
- 批量转换时，输出目录会自动创建
- 转换过程中会生成日志文件`converter.log`，可用于排查问题
- 对于大文件转换，建议分批处理以避免内存问题

## 常见问题

1. **转换后的Markdown格式不正确**
   - 检查输入文件是否包含特殊格式
   - 确保使用最新版本的转换工具

2. **批量转换部分文件失败**
   - 检查日志文件`converter.log`获取详细错误信息
   - 确保所有输入文件路径正确且有读取权限

3. **内存不足错误**
   - 对于大文件，建议分批处理
   - 增加系统可用内存

4. **输出文件权限问题**
   - 确保输出目录有写入权限
   - 检查文件是否被其他程序占用
dokan 1.0.0
Automating the NNLOJET workflow
Requires Python: >=3.10

# dokan (土管)

[![PyPI - Version](https://img.shields.io/pypi/v/dokan.svg)](https://pypi.org/project/dokan)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dokan.svg)](https://pypi.org/project/dokan)

> <img src="./doc/img/dokan.png" height="23px">&emsp;A pipeline for automating the NNLOJET workflow

-----


## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [License](#license)

This is the implementation of an automated workflow for [NNLOJET](https://nnlojet.hepforge.org/) computations based on the [luigi](https://github.com/spotify/luigi) framework. 


## Installation

### Release version

todo: publish on pypi

### Development version

To install the development version, first clone this repository
```shell
git clone https://github.com/aykhuss/dokan.git
cd dokan
```
You can either install the tool using `pip` or `uv`.

#### Install using `pip`
Within the repository directory, run (add `--force-reinstall` if necessary)
```shell
pip install -e .
```
This should install the `nnlojet-run` command for you.

#### Install using `uv`
[`uv`](https://docs.astral.sh/uv/) is a modern and more powerful alternative to `pip`.
`dokan` can be installed by running within the repository directory (add `--force` if necessary):
```shell
uv tool install -e .
```
With this, the `nnlojet-run` executable should be installed and available.


## Usage

Some example usage:
```shell

# general help
nnlojet-run --help

### subcommand `init` 
#   to initialise a new run
#   
# help
nnlojet-run init --help

# take any runcard and use it to initialise a new run
nnlojet-run init example.run
# this will create a new folder under the current path named after the `RUN` name in the runcard
# or you can add `-o <RUN_PATH>` to specify a location where the run should be initialised

### subcommand `config` 
#   to re-configure default settings for a calculation
#   
nnlojet-run config example_run_Z_8TeV

### subcommand `submit` 
#   to submit a run
#   
# help
nnlojet-run submit --help

# submit jobs with default configuration as set during `init`/`config`
nnlojet-run submit example_run_Z_8TeV 

# you can override defaults by passing the desired settings as options, e.g.
nnlojet-run submit example_run_Z_8TeV --job-max-runtime 1h30m --jobs-max-total 10 --target-rel-acc 1e-2

```


## Shell completion
Auto-completion for the `nnlojet-run` command is available for bash. It can be enabled, by running
```shell
source path/to/dokan/share/completion.sh
```
To enable completion on startup, put this line in `~/.bashrc`.


## License

`dokan` is distributed under the terms of the [GPL-3.0](https://spdx.org/licenses/GPL-3.0-or-later.html) license.