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.4.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.0.4-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mysharelib-1.0.4.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Windows/11

File hashes

Hashes for mysharelib-1.0.4.tar.gz
Algorithm Hash digest
SHA256 9497c899c1999f69945a9440b316987c29e34f6fab5bd35eba3287982387102f
MD5 0c175b2f0e01693f336f33b9b98d2777
BLAKE2b-256 20b4e6faaf56a79ec7ab6053d6b0cd66ea2a77b9cc373ed7dd50724ee488771a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mysharelib-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc90249db0c5fb24f22d56ca3e163d2fa0b57585a2068bd201e232e989059c81
MD5 2fbb0bf081e900de0b7733f0dd2229c7
BLAKE2b-256 26088d60456c1d61cd44d93b9b843a7fc0e3595551eb3d3f9550a065addcf888

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