Skip to main content

AKLite is lite version fo AKShare

Project description

Introduction

AKLite is a lite version of AKShare, which will be used in the future to support the AKShare project.

AKLite Features:

  1. Small, fast and powerful
  2. high performance
  3. easy to ues

Installation

pip install aklite

Usage

import aklite as ai

stock_zh_a_hist_obj = ai.stock_zh_a_hist(symbols=["000001", "000002"], period="daily", start_date="20220101", 
                                         end_date="20230601", adjust="hfq", timeout=5, proxies={})
print(stock_zh_a_hist_obj.data)
print(stock_zh_a_hist_obj.columns)
print(stock_zh_a_hist_obj.url)
print(stock_zh_a_hist_obj.desc)
print(stock_zh_a_hist_obj.symbols)
print(stock_zh_a_hist_obj.start_date)
print(stock_zh_a_hist_obj.end_date)
print(stock_zh_a_hist_obj.adjust)
           date  symbol  ...  price_change  turnover_rate
0    2022-01-04  000001  ...         29.26           0.60
1    2022-01-05  000001  ...         79.63           1.01
2    2022-01-06  000001  ...         -4.87           0.57
3    2022-01-07  000001  ...         13.00           0.58
4    2022-01-10  000001  ...         -1.62           0.47
..          ...     ...  ...           ...            ...
677  2023-05-26  000002  ...          2.62           0.42
678  2023-05-29  000002  ...        -23.56           0.46
679  2023-05-30  000002  ...         43.20           0.91
680  2023-05-31  000002  ...        -15.71           0.46
681  2023-06-01  000002  ...        -31.42           0.48
[682 rows x 12 columns]

Contributing

Translate

cd docs
sphinx-build -b gettext ./source build/gettext
sphinx-intl update -p ./build/gettext -l zh_CN

Publish

hatch build
hatch publish

Download files

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

Source Distribution

aklite-0.0.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

aklite-0.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file aklite-0.0.2.tar.gz.

File metadata

  • Download URL: aklite-0.0.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for aklite-0.0.2.tar.gz
Algorithm Hash digest
SHA256 050e2a7f66a631db9cc543fe62b612e323f3abf6dec849672f5af6807abf6c69
MD5 3d16c3da37704dc40dd2107dba2c7bfd
BLAKE2b-256 0dd8f1a275ae780881bc69b93e5bd2dc5af173fce142fde8964a9ed24d0177c1

See more details on using hashes here.

File details

Details for the file aklite-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: aklite-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for aklite-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9bfd5587dc0cdaeaaa58cc4196163494863b00e516c5d7e48a6126d1e8606e1e
MD5 826725a7acc4b8293f5d866e08386d14
BLAKE2b-256 ce321453a5d404e18983f035cf345398194a17f72f3138b7c6f730e8fcd68131

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