semvec/pypi-packages huggingface dataset:
at-common-schemas 1.1.13
Common schemas used by Apex Trader
Requires Python: >=3.11

# at-common-schemas

Common schema definitions used by Apex Trader services, built with Pydantic.

## Installation
```bash
pip install at-common-schemas
```

## Features

- Standardized data models for financial market data
- Built with Pydantic for robust data validation
- Comprehensive type hints and documentation
- Automatic serialization of datetime and enum values

## Available Schemas

### Stock Data
- Profile information
- Real-time quotes
- Daily candlestick data
- Technical indicators
- Financial statements
  - Balance Sheet
  - Income Statement
  - Cash Flow
- Financial analysis
  - Key metrics
  - Financial ratios
  - TTM (Trailing Twelve Months) metrics
- Earnings call transcripts

### Market Data
- Stock symbols by exchange
- Market news
- Company-specific news
- Calendar events
  - Earnings announcements
  - Dividend declarations
  - Stock splits

## Usage Examples

### Fetching Stock Quote Data
```python
from at_common_schemas.service.data.stock.quote import StockQuoteRequest, StockQuoteResponse

# Single stock quote request
request = StockQuoteRequest(symbol="AAPL")

# Batch quote request
batch_request = StockQuoteBatchRequest(symbols=["AAPL", "MSFT", "GOOGL"])
```

### Working with Financial Statements
```python
from at_common_schemas.service.data.stock.financial import StockFinancialStatementBatchRequest
from at_common_schemas.common.stock import StockFinancialPeriod

request = StockFinancialStatementBatchRequest(
    symbol="AAPL",
    period=StockFinancialPeriod.QUARTERLY,
    limit=4
)
```

## Development

Requirements:
- Python 3.11+
- pydantic 2.10.6+
- annotated-types 0.7.0+
- typing_extensions 4.12.2+

## License
This project is licensed for private use and internal purposes only. Redistribution or modification is not permitted without prior consent.

## Contributing
Contributions are welcome for internal use only. Please ensure that any changes adhere to the project's coding standards and are reviewed before submission.
protocol-formatter 0.1.3
A utility to format raw text protocols into styled PDFs
Requires Python: >=3.7

[![Use this template](https://img.shields.io/badge/-Use%20this%20template-brightgreen?style=for-the-badge)](https://github.com/adhikaripb/protocol_formatter/generate)
<p align="center">
  <img src="assets/banner.png" width="80%" alt="Repo Banner"/>
</p>
# 🧾 Protocol Formatter

**Format raw text protocols into clean, publish-ready Word and pdf documents**  
Say goodbye to messy indentation, unclear bulleting, and formatting inconsistency in step-by-step protocols.

---


[![PyPI version](https://img.shields.io/pypi/v/protocol_formatter?color=blue)](https://pypi.org/project/protocol_formatter/)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
![Python version](https://img.shields.io/badge/python-3.7%2B-blue)
![Status](https://img.shields.io/badge/status-active-brightgreen)

---

## ✨ Features

- Automatically detects stepwise sections in `.txt` protocols
- Adds clean spacing between blocks
- Handles blank lines, indents, and bullet lists
- Formats output to a well-structured `.docx` document
- Output file uses the same name as input (with `.docx` extension)
- Fully local and fast

---

## 📦 Installation

```bash
pip install protocol_formatter
```
> **Note for macOS/Linux users**:  
> This package relies on system-level libraries like Cairo, Pango, and GDK-Pixbuf for converting `.docx` to `.pdf`.  
> Make sure to install them using:
> ```bash
> brew install cairo pango gdk-pixbuf libffi  # macOS
> sudo apt install libcairo2 libpango-1.0-0 libgdk-pixbuf2.0-0 libffi-dev  # Debian/Ubuntu
> ```

---

## 🧪 How to Use

```bash
protocol_formatter path/to/input_protocol.txt
```

- You’ll be prompted to provide a path if not passed as argument.
- Output will be saved as a `.docx` file in the same folder.

---

## 📂 Input Format

Supports `.txt` files containing stepwise procedures like:

```
- Prepare solutions
* Mix reagents...
* Adjust pH...
** nested content

- Sample Treatment
* Add buffer
* Incubate at 37°C
```

---

## 🖨 Sample Output

A fully formatted DOCX output example:  
![Sample Output Preview](samples/sample_output.png)

---

## 🛠 Developer Notes

- Entry point defined in `__init__.py`
- Uses `python-docx` for Word file creation
- Compatible with Python 3.7+

---

## 📜 License

Licensed under the MIT License. See [`LICENSE`](LICENSE) for details.