semvec/pypi-packages huggingface dataset:
my-py-postgres 0.1.0
PostgreSQL database management system with a user-friendly interface
Requires Python: >=3.6

# Pypostgres

![Python](https://img.shields.io/badge/Python-3.12-blue.svg)
![PostgreSQL](https://img.shields.io/badge/PostgreSQL-Compatible-brightgreen.svg)
![License](https://img.shields.io/badge/License-MIT-yellow.svg)

A powerful Python interface for PostgreSQL databases that simplifies database interactions and query management.

## Features

- Simplified PostgreSQL connection management
- Easy query execution and result handling
- Support for parameterized queries to prevent SQL injection
- Transaction management utilities
- Connection pooling for improved performance
- Comprehensive error handling and logging

## Installation

```bash
# Clone the repository
git clone https://github.com/Ayman-aa/pypostgres.git
cd pypostegres

# Create and activate a virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt
```

## Usage

```python
# Import the main class
from pypostegres import DatabaseManager

# Create a database manager instance
db_manager = DatabaseManager()

# Connect to your database
db_manager.selected_db = "your_database"
db_manager.setup()

# Execute a raw query with parameters
success, results = db_manager.execute_raw_query(
    "SELECT * FROM users WHERE active = %s", 
    [True]
)

# Process results
if success:
    for row in results:
        print(f"User: {row['username']}, Email: {row['email']}")

# Close the connection when done
db_manager.close()
```

Or alternatively use the CLI:

```bash
python3 pypostegres.main
```

## Dependencies

- Python 3.12+
- psycopg2-binary 2.9.10+

## Documentation

For more detailed documentation, see the [docs/](docs/) directory or visit our [documentation site](https://yourdocsite.com).

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Acknowledgments

- [psycopg2](https://www.psycopg.org/) - PostgreSQL adapter for Python
- All contributors who have helped this project grow
degel-python-utils 1.0.2
Shared Python utilities from Degel Software Ltd.
Requires Python: >=3.10

# degel-python-utils

Shared Python utilities from Degel Software Ltd.

## Using degel-python-utils

### Initial setup on a new machine

To get started with `degel-python-utils` on a new machine, follow these steps:

1. **Clone the repository:**

   ```bash
   git clone https://github.com/yourusername/degel-python-utils.git
   cd degel-python-utils
   ```

2. **Install dependencies:**

   Make sure you have `pipenv` installed. If not, install it using `pip`:

   ```bash
   pip install pipenv
   ```

   Then, install the project dependencies and pre-commit hooks:

   ```bash
   make install
   ```


### Using degel-python-utils in other projects

To use `degel-python-utils` in other projects, you need to install it via PyPI:

1. **Install the library:**

   Add `degel-python-utils` to your `Pipfile` or install it directly using `pipenv`:

   ```bash
   pipenv install degel-python-utils
   ```

2. **Import and use:**

   You can now import and use the utility functions provided by `degel-python-utils` in
   your project:

   ```python
   from degel_python_utils import some_function

   some_function()
   ```

### Developing degel-python-utils

If you want to contribute to the development of `degel-python-utils` or make local
modifications, follow these steps:

1. **Clone the repository:**

   ```bash
   git clone https://github.com/yourusername/degel-python-utils.git
   cd degel-python-utils
   ```

2. **Install dependencies and pre-commit hooks:**

   ```bash
   make install
   ```

4. **Run tests:**

   Ensure all tests pass before making changes:

   ```bash
   make test
   ```

5. **Make your changes:**

   Edit the code as needed. Ensure that your code follows the project's coding standards.

6. **Lint and test:**

   Before committing your changes, run linting and tests:

   ```bash
   make lint
   make test
   ```

7. **Commit and push:**

   Commit your changes and push to your fork or branch:

   ```bash
   git add .
   git commit -m "Describe your changes"
   git push origin your-branch
   ```

### Distributing degel-python-utils

To distribute a new version of `degel-python-utils`, follow these steps:

1. **Update version:**

   Update the version number in `setup.cfg`.

2. **Build the package:**

   Use `build` to create the distribution package:

   ```bash
   make build
   ```

3. **Upload to PyPI:**

   Upload the package to PyPI using `twine`:

   ```bash
   make publish
   ```

4. **Tag the release:**

   Tag the new release in your git repository:

   ```bash
   git tag vX.Y.Z
   git push origin vX.Y.Z
   ```

By following these instructions, you can effectively use, develop, and distribute the
`degel-python-utils` library. If you encounter any issues or have questions, feel free
to open an issue on the GitHub repository.


### License and copyright

This project is licensed under the [MIT License](LICENSE).

Copyright &copy; 2024, Degel Software Ltd.
ptest-test-test-cdtest 1.0.0
A simple Python package
Requires Python: >=3.6

# ptest

the ptest is a test for developing first python package silverspring

MIT License

Copyright (c) 2025 chris dean

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
image-processing-leoapter 0.0.1
Image Processing Package using skimage
Requires Python: >=3.5

#### Este projeto faz parte da atividade do **Bootcamp - Suzano - Python Developer** que estou realizando na plataforma da [DIO (Digital Innovation One)](https://www.dio.me/), em parceria com a empresa [SUZANO](https://www.suzano.com.br).
Para criar e ativar o ambiente virtual do Python no sistema Operacional Windowns atravÃ©s do terminal do VS Code, execute os seguintes comandos:
````  
python -m venv .env
.\.env\Scripts\activate
````

# image_processing

Description. The package package_name is used to:

    Processing: 
      - Histograma matching  
      - Structural similarity  
      - Resize image
      
    Utils:  
      - Read image  
      - Save image  
      - Plot image
      - Plot result  
      - Plot histogram

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install package_name

```bash
pip install image_processing
```

## Usage

```python
from package_name.module1_name import file1_name
file1_name.my_function()
```

## Author
Leo Apter

## License
[MIT](https://choosealicense.com/licenses/mit/)
grasshopper-mcp 0.1.0
Grasshopper MCP Bridge Server
Requires Python: >=3.8
Keywords: grasshopper, mcp, bridge, server

# Grasshopper MCP Bridge

Grasshopper MCP Bridge 是一個連接 Grasshopper 和 Claude Desktop 的橋接服務器，使用 Model Context Protocol (MCP) 標準協議。

## 功能特點

- 通過 MCP 協議連接 Grasshopper 和 Claude Desktop
- 提供直觀的工具函數，用於創建和連接 Grasshopper 組件
- 支持高層次意圖識別，可以從簡單描述自動創建複雜的組件模式
- 包含組件知識庫，了解常用組件的參數和連接規則
- 提供組件指南資源，幫助 Claude Desktop 正確連接組件

## 系統架構

該系統由以下部分組成：

1. **Grasshopper MCP 組件 (GH_MCP.gha)**：安裝在 Grasshopper 中的插件，提供 TCP 服務器接收命令
2. **Python MCP 橋接服務器**：連接 Claude Desktop 和 Grasshopper MCP 組件的橋接服務器
3. **組件知識庫**：包含組件信息、模式和意圖的 JSON 文件

## 安裝說明

### 前提條件

- Rhino 7 或更高版本
- Grasshopper
- Python 3.8 或更高版本
- Claude Desktop

### 安裝步驟

1. **安裝 Grasshopper MCP 組件**

   將 `GH_MCP.gha` 文件複製到 Grasshopper 組件文件夾：
   ```
   %APPDATA%\Grasshopper\Libraries\
   ```

2. **安裝 Python MCP 橋接服務器**

   使用 pip 安裝：
   ```
   pip install grasshopper-mcp
   ```

   或從源代碼安裝：
   ```
   git clone https://github.com/alfredatnycu/grasshopper-mcp.git
   cd grasshopper-mcp
   pip install -e .
   ```

## 使用方法

1. **啟動 Rhino 和 Grasshopper**

2. **啟動 MCP 橋接服務器**

   在命令行中運行：
   ```
   grasshopper-mcp
   ```

3. **在 Claude Desktop 中添加 MCP 服務器**

   在 Claude Desktop 的設置中添加以下 MCP 服務器配置：
   ```json
   {
     "mcpServers": {
       "grasshopper": {
         "command": "grasshopper-mcp",
         "args": []
       }
     }
   }
   ```

4. **使用 Claude Desktop 與 Grasshopper 交互**

   現在您可以使用 Claude Desktop 向 Grasshopper 發送命令，例如：
   - "在 Grasshopper 中創建一個 3D Voronoi"
   - "添加一個圓形組件"
   - "連接點和圓形組件"

## 可用工具

- `add_component`：添加組件到 Grasshopper 畫布
- `connect_components`：連接兩個組件
- `create_pattern`：根據高層次描述創建組件模式
- `get_available_patterns`：獲取可用的模式列表
- `clear_document`：清空 Grasshopper 文檔
- `save_document`：保存 Grasshopper 文檔
- `load_document`：加載 Grasshopper 文檔
- `get_document_info`：獲取文檔信息

## 開發者指南

### 項目結構

```
grasshopper-mcp/
├── grasshopper_mcp/          # Python 包
│   ├── __init__.py
│   └── bridge.py             # MCP 橋接服務器
├── GH_MCP/                   # Grasshopper 組件源代碼
│   ├── GH_MCP/
│   │   ├── Commands/         # 命令處理器
│   │   ├── Models/           # 數據模型
│   │   ├── Resources/        # 資源文件
│   │   └── Utils/            # 工具類
│   └── GH_MCP.sln            # Visual Studio 解決方案
├── setup.py                  # Python 包配置
└── README.md                 # 說明文檔
```

### 添加新功能

1. **添加新的 Grasshopper 命令**

   在 `GH_MCP/Commands/` 目錄中創建新的命令處理器，並在 `GrasshopperCommandRegistry.cs` 中註冊。

2. **添加新的 MCP 工具**

   在 `grasshopper_mcp/bridge.py` 中使用 `@server.tool` 裝飾器添加新的工具函數。

3. **擴展組件知識庫**

   在 `ComponentKnowledgeBase.json` 中添加新的組件、模式或意圖。

## 貢獻指南

歡迎提交 Pull Request 或 Issue 來改進這個項目。在提交代碼前，請確保：

1. 代碼符合項目的編碼風格
2. 添加了適當的測試
3. 更新了文檔

## 許可證

MIT 許可證