Skip to main content

My share library

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mysharelib-1.0.5.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mysharelib-1.0.5-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file mysharelib-1.0.5.tar.gz.

File metadata

  • Download URL: mysharelib-1.0.5.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.13.13 Windows/11

File hashes

Hashes for mysharelib-1.0.5.tar.gz
Algorithm Hash digest
SHA256 5b078cfc8208364e603d3da121c3d7eb3ca8d2f7a2dd3b7f2087fd1f6afaab9d
MD5 e1d7dcccb7ca2552dad1a3fa89f32617
BLAKE2b-256 68f0f6b17db79bae4d4ad47d81e0efffe488724209b0fedd2567a4123c76651b

See more details on using hashes here.

File details

Details for the file mysharelib-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: mysharelib-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 38.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.13.13 Windows/11

File hashes

Hashes for mysharelib-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3f43bd24f77781a0ad10cc8e1dbf4e55e98ca5859221334e3ce7e1c749502325
MD5 81ef2971967df67e24418a17231412c1
BLAKE2b-256 05e9ef6dc928dba20548d7d61b4135c8cd53154e17527fe70801cc3fd5063090

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page