semvec/pypi-packages huggingface dataset:
Print-Tricks-And-More-Alpha 2025.7.28.23
Simple to use, Powerful Programming! Debugging, Printing, Analysis, and helpful tools!
License: MIT
Requires Python: >=3.6

# Print Tricks And More

Simple to use, powerful programming tools for debugging, printing, analysis, and more!

## Installation

```bash
pip install print-tricks-and-more
```

## Features

- Enhanced print statements with variable name, type, and line number information
- Color-coded output for better readability
- Timer functions for performance measurement
- Easy debugging tools
- Thread management helpers
- And much more!

## Basic Usage

```python
from print_tricks import pt

# Basic variable printing
name = "Python"
pt(name)  # Will print the variable name, value, type, and line number

# Color printing
pt.c("This text will be colored", colors=pt.C.t1)

# Timer functionality
pt.t("timer_name")  # Start timer
# ... some code to measure
elapsed = pt.t("timer_name")  # End timer and get elapsed time

# Pause execution until a key is pressed
pt.p()  # Pause until any key is pressed
pt.p("y")  # Pause until 'y' key is pressed

# Error handling
try:
    # Some code that might raise an exception
    result = 1 / 0
except:
    pt.e()  # Print exception information
```

## Advanced Features

- `pt.counter()` - Count function calls
- `pt.profile_resources()` - Monitor CPU, memory, and GPU usage
- `pt.timeall()` - Comprehensive timing for functions
- `pt.props()` - Inspect object properties
- `pt.easy_imports()` - Simplify import paths

## Documentation

For more detailed documentation, please visit the [GitHub repository](https://github.com/developer-1v/print_tricks).

## License

This project is licensed under the MIT License.
fastapi-cli-generator 0.4.3
A command-line tool for generating FastAPI projects with different architectural patterns
License: MIT
Requires Python: >=3.10
Keywords: fastapi, cli, generator, scaffold, template

# FastAPI CLI Generator

🚀 快速创建不同架构模式的FastAPI项目的命令行工具

[中文文档](README_CN.md) | [English Documentation](README.md)

## 功能特性

- 🏗️ **两种架构模式**: 功能分层架构 vs 模块化架构
- 🎯 **交互式CLI**: 友好的中文交互界面
- 📁 **完整项目结构**: 基于最佳实践的项目模板
- ⚡ **即开即用**: 生成的项目可以直接运行

## 安装

```bash
pip install fastapi-cli-generator -i https://pypi.org/simple
```

## 快速开始

### 交互式模式（推荐）

```bash
fastapi-create
```

### 命令行模式

```bash
# 指定模板创建
fastapi-create create my-project --template module
fastapi-create create my-project --template function

# 查看可用模板
fastapi-create list-templates
```

## 架构模式

### 1. 模块化架构 (module) - 推荐

按业务领域组织代码，每个模块包含完整的MVC结构：

```
my-project/
├── src/
│   ├── core/                 # 核心配置
│   ├── modules/              # 业务模块
│   │   ├── auth/             # 认证模块
│   │   ├── users/            # 用户管理
│   │   └── items/            # 项目管理
│   └── shared/               # 共享工具
├── tests/                    # 测试文件
└── requirements.txt
```

**适用场景:**

- 中大型项目
- 团队协作开发
- 需要清晰业务边界的项目

### 2. 功能分层架构 (function)

按技术层次组织代码：

```
my-project/
├── src/
│   ├── api/v1/endpoints/     # API端点
│   ├── core/                 # 核心配置
│   ├── db/repositories/      # 数据库操作
│   ├── models/               # 数据模型
│   ├── services/             # 业务逻辑
│   └── utils/                # 工具函数
├── tests/                    # 测试文件
└── requirements.txt
```

**适用场景:**

- 小型项目
- 学习和原型开发
- 简单的API服务

## 使用示例

### 创建项目

```bash
# 交互式创建（推荐）
fastapi-create

# 快速创建模块化项目
fastapi-create create my-api --template module

# 快速创建功能分层项目
fastapi-create create my-api --template function
```

### 运行项目

```bash
cd my-api
pip install -r requirements.txt
uvicorn src.main:app --reload
```

访问 http://localhost:8000/docs 查看API文档

## 开发

```bash
# 克隆项目
git clone https://github.com/xukache/fastapi-cli-generator.git
cd fastapi-cli-generator

# 安装开发依赖
pip install -e .

# 测试工具
fastapi-create --help
```

## 许可证

MIT License

## 贡献

欢迎提交Issue和Pull Request！
wattmaven-solarnetwork-tools 0.4.0
The WattMaven SolarNetwork tools.
License: MIT
Requires Python: >=3.10
Keywords: solarnetwork, wattmaven

# `wattmaven-solarnetwork-tools`

[![codecov](https://codecov.io/gh/wattmaven/wattmaven-solarnetwork-tools/graph/badge.svg?token=NWTI6GOZ0P)](https://codecov.io/gh/wattmaven/wattmaven-solarnetwork-tools)

The WattMaven Python package for SolarNetwork tools.

Note that _this package is still under active development and the API is not yet stable_. Breaking changes will be
introduced in the **minor** version until the API is stable.

## Installation

```bash
pip install wattmaven-solarnetwork-tools
```

## Usage

See [examples](./examples) for usage examples.

```python
from wattmaven_solarnetwork_tools.core.solarnetwork_client import (
    SolarNetworkClient,
    SolarNetworkCredentials,
)

# Create a client
with SolarNetworkClient(
    host="data.solarnetwork.net",
    credentials=SolarNetworkCredentials(
        token="your_token",
        secret="your_secret",
    )
) as client:
    # Make requests
    response = client.request("GET", "/solarquery/api/v1/sec/nodes")
    json = response.json()
    print(json)
    # ...
```

## Testing

```bash
# This will run tests and generate a coverage report
make test
```

![Coverage](https://codecov.io/gh/wattmaven/wattmaven-solarnetwork-tools/graphs/tree.svg?token=NWTI6GOZ0P)

## Creating a Release

This project uses [Hatch](https://hatch.pypa.io/) for building and releasing.

```bash
# Bump the version
cz bump --major-version-zero

# Build the package
uv build

# Release the package
uv publish

# Push the changes
git push
git push -u origin v<new-version>
```

## Acknowledgements

This project takes inspiration from the [solarnetwork-api-core](https://github.com/SolarNetwork/sn-api-core-js)
JavaScript package. This package is not a direct port.

## License

This project is licensed under the **MIT License**. See the [LICENSE](./LICENSE) file for details.
model-logger-dp 1.0.3.post2
Model Logger for Pytorch
License: MIT
Requires Python: >=3.8
Keywords: python, logger, model

# Model Logger

[![Python >= 3.8](https://img.shields.io/badge/python->=3.8-blue.svg)](https://www.python.org/downloads/release/)

A package that contains method to log the model training log.

The package is an uncompleted package in the version 1.x. Its functions will be gradually improved in subsequent versions.

## How to use
To use the model logger, you need to install the package first. You can install it using pip:

```bash
pip install model_logger_dp
```

To start the model logger.

```python
import os
import model_logger_dp

os.environ['LOG_PATH'] = './output/log'  # Set the directory for logs

# If you want to save the log with a specific file name, you should set the filename parameter.
# If you do not set the filename parameter, the log will be saved with a datatime name.
logger  = model_logger_dp.ModelLogger(filename='train.log')

# Use the print method to log the message.
print('Hellow World!')
```

To look the help and update log of the package, you can use the `log_help` and `log_update` method.

```python
import model_logger_dp

model_logger_dp.log_help()
model_logger_dp.log_update()
```
## Update
    `1.0.3` - Add model summery method and update the setup method.
    `1.0.2` - Add showing the caller method.
    `1.0.1` - Add the logger decorator, improve the logger instance and implement help and update log method.
    `1.0.0` - Initial release with basic logging functionality.

## License

model_logger is MIT licensed. See the [LICENSE](LICENSE) for details.