dfdata
dfdata 用于下载金融数据。将数据源的数据保存到本地,默认sqlite数据库。
安装
pip install dfdata
使用
下载tushare pro 数据源为例。使用pip install tushare安装好tushare,再设置一次tushare的token,它会保存在用户目录下tk.csv。
import tushare as ts
ts.set_token('your_tushare_token')
接下载可以使用dfdata下载和读取数据。
import dfdata as dd
# 下载期货日线行情
dd.save_futures_daily(source='tushare')
# 读取期货日线行情
dd.read_futures_daily(source='tushare')
更多使用方法见文档:http://dfdata.org/
Metadata
Release files for dfdata 0.0.6
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 |
|---|---|---|---|---|
| dfdata-0.0.6.tar.gz | 26.3 kB | Without provenance | Details for dfdata-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dfdata-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for dfdata-0.0.6-py3-none-any.whl |
Total release size: 61.7 kB
Release files / dfdata-0.0.6.tar.gz
| Download URL | dfdata-0.0.6.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f29a63a6db096fdfa80e9149bb3e39f13c0121c03fe5900d344b9ff16f85d1f8
|
|
BLAKE2b-256 checksum How to use checksums |
a768e51c5a220dadc089619f0d503f42ba611fe7080a39416be73a9c017b94e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.10
|
Release files / dfdata-0.0.6-py3-none-any.whl
| Download URL | dfdata-0.0.6-py3-none-any.whl |
|---|---|
| Size | 35.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfd4870ea762faed88b98f43950087aabae7af04f40e1596a1a1196316058d65
|
|
BLAKE2b-256 checksum How to use checksums |
028916a0518bc1b2a84599640fe0ea9cc862b153ddd0f93a53dbbceb2ffc41f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.10
|
Security for dfdata 0.0.6
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.