semvec/pypi-packages huggingface dataset:
ddq-tkinter 0.2.4
A collection of custom tkinter widgets

# DDQ_Tkinter

DDQ_Tkinter 是一个基于 Python 的 Tkinter 扩展库，旨在提供更多现代化和易用的界面组件，以便于开发者构建更复杂和美观的桌面应用。这个库封装了一系列常用的组件，如表单、按钮组、卡片视图、布局分割等，使得界面布局和事件处理更为简便。

## 主要组件

1. **Form** - 提供表单管理，支持多种输入控件和数据绑定。
2. **Card** - 卡片容器，用于展示内容区块。
3. **SplitLayout** - 分割布局，目前仅支持左右分割布局。
4. **Table** - 表格显示和数据操作。
5. **ButtonGroup** - 按钮组，用于组织多个按钮并提供统一的事件处理。
6. **Text** - 文本显示，支持基本的文本操作。
7. **TextArea** - 多行文本输入框。

## 特点

- **易用性**：提供高级抽象，简化 Tkinter 的使用难度。
- **扩展性**：组件设计允许灵活的扩展和自定义。
- **样式统一**：组件风格统一，便于构建协调一致的用户界面。

## 使用场景

DDQ_Tkinter 适用于需要快速开发桌面应用的场景，特别是在需要良好用户交互和界面布局的应用程序中。通过使用这个库，开发者可以减少大量的界面代码编写工作，更专注于业务逻辑的实现。

## 示例代码

在提供的 `form_demo.py` 文件中，展示了如何使用这些组件构建一个具有表单输入、按钮操作和数据展示的简单应用。代码中包含了表单的创建、数据绑定、事件处理等关键步骤，是理解和学习 DDQ_Tkinter 的好例子。

如果需要进一步了解或修改这些组件的实现，可以查看 `ddq_widgets` 目录下的各个 Python 文件，这些文件中定义了各个组件的具体实现细节。
parsestudio 1.0.3
Parse PDF files using different parsers.
Requires Python: <3.13,>=3.12

# ParserStudio

Parsestudio is a powerful Python library for extracting and parsing content from PDF documents. It provides an intuitive interface for handling diverse tasks such as extracting text, tables, and images using different parsing backends.

---

## Key Features

- **Modular Design**: Choose between multiple parser backends (Docling, PymuPDF, Llama Parse) to suit your needs.
- **Multimodal Parsing**: Extract text, tables, and images seamlessly.
- **Extensible**: Easily adjust parsing behavior with additional parameters.

---

## Installation

Get started with Parsestudio by installing it via pip:

```bash
pip install parsestudio
```

Install the library from source by cloning the repository and running:

```bash
git clone https://github.com/chatclimate-ai/ParseStudio.git
cd ParseStudio
pip install .
```

## Quick Start


### 1. Import and Initialize the Parser

```python
from parsestudio.parse import PDFParser

# Initialize with the desired parser backend
parser = PDFParser(parser="docling")  # Options: "docling", "pymupdf", "llama"
```

### 2. Parse a PDF File

```python
outputs = parser.run("path/to/file.pdf", modalities=["text", "tables", "images"])

# Access text content
print(outputs[0].text)
# Output: text="This is the extracted text content from the PDF file."

# Access tables
for table in outputs[0].tables[0]:
    print(table.markdown)
# Output: | Header 1 | Header 2 |
#         |----------|----------|
#         | Value 1  | Value 2  |

# Access images
for image in outputs[0].images[0]:
    image.image.show()
    metadata = image.metadata
    print(metadata)

# Output: Metadata(page_number=1, bbox=[0, 0, 100, 100])
```

### 3. Supported Parsers

Choose from the following parsers based on your requirements:
- **[Docling](https://github.com/DS4SD/docling)**: Advanced parser with multimodal capabilities.
- **[PyMuPDF](https://github.com/pymupdf/PyMuPDF)**: Lightweight and efficient.
- **[LlamaParse](https://github.com/run-llama/llama_parse)**: AI-enhanced parser with advanced capabilities.

Each parser has its own strengths. Choose the one that best fits your use case.

##### Llama Setup

If you choose to use the LlamaPDFParser, you need to set up an API key. Follow these steps:

1. Create a `.env` File: In the root directory of your project, create a file named `.env`.
2. Add Your API Key: Add the following line to the .env file, replacing your-api-key with your Llmap API key:
    ```bash
   LLAMA_API_KEY=your-api-key
   ```

## Contributing

We welcome contributions from the community! To contribute to Parsestudio, please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes and commit them.
4. Push your changes to your fork.
5. Open a pull request.
6. Our team will review your changes and merge them if they meet our guidelines.

Congratulations! You've contributed to Parsestudio.
dedust-tonsdk 1.0.5
DeDust - DeDust SDK for Python.

# DeDust SDK for Python

Analogue of DeDust SDK for Python.

## Description

You can swap tokens, deposit liquidity and many more.

## Getting Started

### Dependencies

* httpx
* tonsdk

### Installing

```
pip install dedust
```

### Using

Example of buying $SCALE using SDK.

```python
from dedust import Asset, Factory, PoolType, SwapParams, VaultNative
from dedust.api import Provider
import asyncio
import time
from tonsdk.utils import Address, bytes_to_b64str
from tonsdk.contract.wallet import Wallets, WalletVersionEnum

mnemonics = ["your", "mnemonics", "here"]

mnemonics, pub_k, priv_k, wallet = Wallets.from_mnemonics(mnemonics=mnemonics, version=WalletVersionEnum.v4r2,
                                                          workchain=0)
async def main():
    provider = Provider()

    SCALE_ADDRESS = Address("EQBlqsm144Dq6SjbPI4jjZvA1hqTIP3CvHovbIfW_t-SCALE")

    TON = Asset.native()
    SCALE = Asset.jetton(SCALE_ADDRESS)


    pool = await Factory.get_pool(pool_type=PoolType.VOLATILE,
                                  assets=[TON, SCALE],
                                  provider=provider)
                                  
    swap_params = SwapParams(deadline=int(time.time() + 60 * 5),
                             recipient_address=wallet.address)
    swap_amount = float(input("Enter swap TON amount: ")) * 1e9


    swap = VaultNative.create_swap_payload(amount=swap_amount,
                                           pool_address=pool.address,
                                           swap_params=swap_params)

    swap_amount = int(swap_amount + (0.25 * 1e9)) # 0.25 = gas_value

    seqno = await provider.runGetMethod(address=wallet.address, method="seqno")
    query = wallet.create_transfer_message(to_addr=Address("EQDa4VOnTYlLvDJ0gZjNYm5PXfSmmtL6Vs6A_CZEtXCNICq_"),
                                           amount=swap_amount,
                                           seqno=seqno[0]["value"],
                                           payload=swap)

    boc = bytes_to_b64str(query["message"].to_boc(False))
    await provider.sendBoc(boc)

    # or:
    # print(f"https://app.tonkeeper.com/transfer/EQDa4VOnTYlLvDJ0gZjNYm5PXfSmmtL6Vs6A_CZEtXCNICq_?amount={swap_amount}&bin={bytes_to_b64str(swap.to_boc(False))}")

asyncio.run(main())
```

## Authors

[@shibdev](https://t.me/dogpy)
[@VladPavly](https://t.me/dalvpv)

## Version History

* 1.0.5
    * Changes
* 1.0.4
    * Bug fix
* 1.0.3
    * Fixes
* 1.0.2
    * Fixes and changes
* 1.0.1
    * Small fix
* 1.0.0
    * Remake to DeDust SDK analogue
* 0.0.5
    * License change
* 0.0.4
    * Dependecies fix
* 0.0.3
    * Examples fix
* 0.0.2
    * LP token address getting
* 0.0.1
    * Initial Beta

## License

This project is licensed under the MIT License - see the LICENSE.md file for details

## Donate

If you like the library, I will be glad to accept donations.

* TON: EQCgphx8rTI0PukwmgpVqiPgqguTujhQscg2h7jgc4U0t347

## Acknowledgments

* [dedust-sdk](https://github.com/dedust-io/sdk)
* [dedust-docs](https://api.dedust.io)