Skip to main content

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.

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 dev branch for development and main for 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)

Source distribution for mysharelib 1.2.0
File Size Uploaded Provenance
mysharelib-1.2.0.tar.gz 25.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mysharelib 1.2.0
File Interpreter ABI Platform
mysharelib-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 64.0 kB

Release files / mysharelib-1.2.0.tar.gz

Download URL mysharelib-1.2.0.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a7fb0d1e29a5586c67fbc48363f9aec0589565763ce8b0bea578b4e02d84b492
BLAKE2b-256 checksum
How to use checksums
7e62f09d2141d9c86b3e908263e798436ed0873a83356ae4f312a08fe3cd786a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.13.13 Windows/11

Release files / mysharelib-1.2.0-py3-none-any.whl

Download URL mysharelib-1.2.0-py3-none-any.whl
Size 38.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b8e916e52b6313ad5ebadf00b72e920ff71e4579ba0a55b4c8b7ee7d8b8fd4e
BLAKE2b-256 checksum
How to use checksums
6e059081cbb775bb41f19dfa476ec15794a407fc79c900b6a5aac88385e2193a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.13.13 Windows/11

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page