Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

FinDataBroker

FinDataBroker is a databroker that is aimed at working in combination with FinanceJSON, to ease the saving and loading to different formats. In short it is nothing else than a wrapper to save and load dicts of lists of dicts in a convenient way. The motivation for this packages is to logically separate data storage and loading from packages analysing the data, reducing the complexity of the analysis packages.

The databroker package provides classes to save data stored in the the FinanceJSON format to the following storage systems:

  • MongoDb
  • Sqlite

In future versions the following formats will be added:

  • JSON
  • HDF5
  • PostGreSQL
  • ElasticSearch

When data is loaded back it is always returned as a dict, where the value is a list of dicts. This way, when different of these loaded dicts are combined, in a single dictionary, the overall dictionary is consistent with the FinanceJSON schema and can be validated to check if all the loaded data is consistent, at the same time making the tools of FinanceJSON available for this dataset.

Requirements

  • pymongo
  • dataset

Installation

pip install FinDataBroker

Example

A FinanceJSON file for a stock:

{
            "yh_symbol": [{"symbol": "XYZ"}],
            "ms_symbol": [{"symbol": "US_XYZ"}],
            "yh_assetProfile": [
                {
                    "index_symbol": "XYZ",
                    "date": "2019-01-01",
                    "address1": "foo",
                    "auditRisk": 1,
                    "boardRisk": 2,
                    "city": "bar",
                    "country": "a"
                }],
        }

FinDataBroker CLI

Python Version PyPI CI

This repository also contains a Python based commandline tool which is able validate and extract data from financeJSON files and written to the selected database format.

Write a financeJSON file to a mongodb:

FinDataBroker write2mongo /path/to/financejsonfile user:pwd@url:port databasename

Write a financeJSON file to an sqlite database:

FinDataBroker write2sqlite /path/to/financejsonfile sqlite:///database.db

License

GNU General Public License v3.0

Metadata

Release files for FinDataBroker 1.0.0a4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FinDataBroker 1.0.0a4
File Size Uploaded Provenance Actions
FinDataBroker-1.0.0a4.tar.gz 7.5 kB Without provenance Details for FinDataBroker-1.0.0a4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for FinDataBroker 1.0.0a4
File Interpreter ABI Platform Actions
FinDataBroker-1.0.0a4-py3-none-any.whl Python 3 none any Details for FinDataBroker-1.0.0a4-py3-none-any.whl

Total release size: 30.1 kB

Release files / FinDataBroker-1.0.0a4.tar.gz

Download URL FinDataBroker-1.0.0a4.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2378ef12a7000e40630ad05d7a7bdcd2fc2ff264b5f0508ae6c579c370522daf
BLAKE2b-256 checksum
How to use checksums
7f4d04a48f525acc61b45ae8879e3bf0e8bdc1d1866574b03f2d87f93268dd6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

Release files / FinDataBroker-1.0.0a4-py3-none-any.whl

Download URL FinDataBroker-1.0.0a4-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6f05a3d219310c8ab07d186f229b8c6516d8144d246fe172ce5bb28c62c147f
BLAKE2b-256 checksum
How to use checksums
4aaa9c8f2676ae6c9eb81d189b2e58aa87ee777b199131f8644a649dd5bad18e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

Security for FinDataBroker 1.0.0a4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page