Kabupy: A Python Library for Japanese Stock Market Analysis
Kabupy is a Python library that aims to provide easy and fast access to various data sources and tools for Japanese stock market analysis. Currently it supports fetching technical and fundamental data from the following site.
- kabuyoho.jp
The following website will be supported in the future version.
- minkabu.jp
- www.nikkei.com
- kabutan.jp
- www.sbisec.co.jp
- www.bloomberg.co.jp
- moneyworld.jp
- shikiho.toyokeizai.net
Installation
Kabupy is available on PyPI.
pip install kabupy
Usage
To use Kabupy, you need to import it in your Python script or notebook:
import kabupy
Then you can use the various modules and functions provided by Kabupy.
For example, you can fetch Stock object of Sony Corporation (6758) from kabuyoho.jp using the kabupy.kabuyoho.stock:
stock = kabupy.kabuyoho.stock(6758)
The Stock object has various properties that you can use to fetch the data you need.
Note that stock.report_target corresponds to https://kabuyoho.jp/sp/reportTarget?bcode=6758.
price = stock.report_target.price
ceiling = stock.report_target.per_based_ceiling
floor = stock.report_target.per_based_floor
For more examples and details on how to use Kabupy, please refer to the documentation.
License
Kabupy is licensed under the MIT License. See the LICENSE file for more information.
Disclaimer
Kabupy is provided for educational and research purposes only. It is not intended to be used for any financial or investment decisions. The author of Kabupy is not responsible for any losses or damages caused by using Kabupy. Please use Kabupy at your own risk and discretion.
Kabupy uses web scraping techniques to fetch data from various websites. Web scraping is a method of extracting information from web pages by using programs. Web scraping may involve legal, ethical, and technical issues depending on the target website and the purpose of use. Please be aware of the following points when using Kabupy:
Respect the terms of use of the target website. Some websites may prohibit or restrict web scraping in their terms of use. Violating the terms of use may result in legal actions or penalties from the website owner.
Check if the target website provides an official API. An API is a way of accessing information from a website in a standardized and authorized manner. Using an API is preferable to web scraping as it reduces the risk of violating the law or the terms of use, and it also reduces the load on the target website. Do not overload the target website with excessive requests. Web scraping may cause a heavy load on the target website, which may affect its performance or availability. This may be considered as a denial-of-service attack, which is illegal in some countries. To avoid this, limit the frequency and volume of your requests, and use a reasonable delay between requests.
Do not use the scraped data for illegal or unethical purposes. Web scraping may involve accessing personal or sensitive information from the target website. You must respect the privacy and intellectual property rights of the data owner, and obtain their consent before using or disclosing their data. You must also comply with the relevant laws and regulations regarding data protection and security in your country or region.
By using Kabupy, you agree to follow these precautions and assume full responsibility for your actions. Kabupy does not guarantee the accuracy, completeness, or timeliness of the scraped data, nor does it endorse or support any opinions or recommendations derived from the data. Kabupy is not affiliated with or endorsed by any of the target websites.
Metadata
Release files for kabupy 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kabupy-0.0.7.tar.gz | 14.9 kB | Without provenance | Details for kabupy-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kabupy-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for kabupy-0.0.7-py3-none-any.whl |
Total release size: 32.2 kB
Release files / kabupy-0.0.7.tar.gz
| Download URL | kabupy-0.0.7.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f766fe17bafc75ce39f3899b56a089bce607cc7a39d7dc4a6473c7831c3e04c
|
|
BLAKE2b-256 checksum How to use checksums |
b7932efd0e88ee305d90e60f504cee8613437062fd843e2481f7ebdb3e1aaea3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / kabupy-0.0.7-py3-none-any.whl
| Download URL | kabupy-0.0.7-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f7d1e4b0a28b0587e0edbf1d7ed9d2491cd17fd98d7c76bff9e46d00474db52
|
|
BLAKE2b-256 checksum How to use checksums |
885c1628400bf03ac0dd695724852fac9d83b0e7aab9f0355e9546664c78efa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for kabupy 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.