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 stockssrc/mysharelib/tools.py: Logging and utility functionslog/: Cached financial data in JSON formattests/: Pytest-based unit tests
Installation
Requires Python 3.11–3.12.
pip install .
Or with Poetry:
poetry install
Dependencies
- openbb-core
- chinese-calendar
- akshare
Usage Example
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
devbranch for development andmainfor production. - Run tests with
pytest.
Metadata
Release files for mysharelib 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mysharelib-1.2.0.tar.gz | 25.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mysharelib-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 64.0 kB
Security for mysharelib 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.