DBMaster
Personal Quant Research Database Manager
Setup
Choose one of the below approaches to set up.
A. Install from Pypi
For most of users, simply pip install in a python3.12 environment: (py3.10, py3.11 might work for now but don't guarantee in the future)
pip install dbmaster[binance]
Note: you can remove vendor-specific extra requirements if you don't need.
B. Run source code
for developers, contributors, or users who want to have finer control over the code.
- Clone this repo:
git clone https://github.com/xyshell/dbmaster
- Create a
py3.12virtual environment. if using conda:
conda create -n <name-your-py-env> python=3.12
conda activate <name-your-py-env>
- install dependencies
pip install -r requirements.txt
- development install
pip install -e .[dev]
C. Install from github release
Find and download the last released package in https://github.com/xyshell/dbmaster/releases.
pip install dbmaster-x.y.z-py3-none-any.whl[binance]
Hello World
Find location of site-packages by pip show dbmaster
Under site-packages/dbmaster/, rename config_example.toml to config.toml and modify the setting for your case. (or override environment variable DBMASTER_CONFIG_PATH to point to your modified config.toml)
See available commands by:
python -m dbmaster -h
Download data by:
python -m dbmaster update kline --vendor=binance --freq=1d --datefrom=2024-04-01 --symbol="['BTCUSDT', 'ETHUSDT']"
Check /exmaple for more usages.
Metadata
Release files for dbmaster 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbmaster-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for dbmaster-0.2.0-py3-none-any.whl |
Release files / dbmaster-0.2.0-py3-none-any.whl
| Download URL | dbmaster-0.2.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff0c2b3b7affbbfd273a89b31ed61e2543df43804158706756d4d203c99322fe
|
|
BLAKE2b-256 checksum How to use checksums |
f7cfca811432a08e7951e5dc4197ad61229694b367e897ce918e4db64ab78e25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for dbmaster 0.2.0
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.