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.2.0.tar.gz (25.5 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.2.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mysharelib-1.2.0.tar.gz
  • Upload date:
  • Size: 25.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 a7fb0d1e29a5586c67fbc48363f9aec0589565763ce8b0bea578b4e02d84b492
MD5 ad4a5d4a258d03d9cdfa627b2f93dd6e
BLAKE2b-256 7e62f09d2141d9c86b3e908263e798436ed0873a83356ae4f312a08fe3cd786a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mysharelib-1.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b8e916e52b6313ad5ebadf00b72e920ff71e4579ba0a55b4c8b7ee7d8b8fd4e
MD5 fbc250a43fd60535a6f080a11f283722
BLAKE2b-256 6e059081cbb775bb41f19dfa476ec15794a407fc79c900b6a5aac88385e2193a

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