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 --upgrade -i https://pypi.org/simple

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.3.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

aklite-0.0.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aklite-0.0.3.tar.gz
Algorithm Hash digest
SHA256 24e236464613e88fd90ceef10fa5d2738187f2914030870f70bbfb8291eaf975
MD5 b55b397c0b7148a9493fcad9aa86bc23
BLAKE2b-256 a8220a8855af08b16edbfb9dfd44e4e7bf9875d5ce34367af74d4c9f6aa6b421

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for aklite-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c76c6749e84a47ab9acc3eb06436ffa58fa673b493cdadff1569a80dbae54a0
MD5 b613347ce1dc21e1c6c910145cd2695a
BLAKE2b-256 f388b94c09730054abab506da4b043d1f2225f99496617e003c119dfadaf5ef4

See more details on using hashes here.

Provenance

Supported by

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