Metadata-Version: 2.4
Name: mysharelib
Version: 1.2.0
Summary: My share library
Author: Roger Ye
Author-email: shugaoye@yahoo.com
Requires-Python: >=3.13,<=3.14.3
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: akshare (>=1.18.56,<2.0.0)
Requires-Dist: chinese-calendar (>=1.11.0,<2.0.0)
Requires-Dist: openbb-core (>=1.6.8,<2.0.0)
Description-Content-Type: text/markdown


# mysharelib

A Python library for financial data analysis and utilities, focused on Hong Kong stock market data.

## Features

- Fetch Hong Kong stock information and financial reports from EastMoney
- Analyze major shareholders and financial statements
- Scrape Hong Kong stock news from Sina Finance
- Utility functions for logging, caching, and data handling

## Directory Structure

- `src/mysharelib/em/`: EastMoney data fetchers (stock info, balance sheet, cash flow, income, shareholder analysis)
- `src/mysharelib/sina/`: News scraping for HK stocks
- `src/mysharelib/tools.py`: Logging and utility functions
- `log/`: Cached financial data in JSON format
- `tests/`: Pytest-based unit tests

## Installation

Requires Python 3.11–3.12.

```sh
pip install .
```

Or with Poetry:

```sh
poetry install
```

## Dependencies

- openbb-core
- chinese-calendar
- akshare

## Usage Example

```python
from mysharelib.em.get_hk_info_em import get_hk_info_em
df_basic, df_compare = get_hk_info_em("01088.HK")
```

## Development

- Use the `dev` branch for development and `main` for production.
- Run tests with `pytest`.


