Skip to main content

stockeasy

Quick and Easy Stock Portfolio Analysis - FOR ENTERTAINMENT PURPOSES ONLY!!

Introduction

All exposed functions in this package have been designed with the intent that they can be strung together in a DAG; as such, they all follow a consistent contract.

function contract

def function_name (data: Dict, config: dict, logging: logging.Logger)
return results: dict

data contract

data = {'name': pandas dataframe}

config contract

config = {'setting': setting values}

Example Code

import stockeasy
import pandas as pd

df_stocklist = pd.DataFrame([['VTSAX', 120], ['MSFT', 100]], columns=['symbol', 'sharesOwned'])

config = {
    'symbolField': 'symbol',
    'sharesField': 'sharesOwned',
    'dataFields': ['exchange', 'symbol', 'shortName', 'sector', 'country', 'marketCap']
}

results = stockeasy.get_info({'input': df_stocklist}, config=config)

print(results.get('output').head())

logging

Standard python logging object

Notes

  • I use Docker for enviroment management; as such, my build process will deviate from more classical approaches.
  • I attempt to follow functional programming style

Getting Started Contributing

for windows create a env.bat file after pulling with the mount path to the current directory. In windows, you can't use relative paths with Docker Volume mounts, so...

set LOCAL_MOUNT=C:\Users\ablac\OneDrive\Documents\stockeasy\

then run

make DOCKER
cd stockeasy
doit

Available doit tasks

lint -- runs linting setup_tool -- installs local tool unit_tests -- runs unit tests

Metadata

Release files for stockeasy 0.0.20220227174346

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

Source distribution (sdist)

Source distribution for stockeasy 0.0.20220227174346
File Size Uploaded Provenance Actions
stockeasy-0.0.20220227174346.tar.gz 3.3 kB Without provenance Details for stockeasy-0.0.20220227174346.tar.gz

Built distribution (wheel)

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

Total release size: 7.8 kB

Release files / stockeasy-0.0.20220227174346.tar.gz

Download URL stockeasy-0.0.20220227174346.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d039fc1bb3ca1d4b96fa8850dff9b37b20e49c83c09eea68b0bc92a673c83c4b
BLAKE2b-256 checksum
How to use checksums
5a2b0f590ad2d11a3b3b57188b147dbc92b46c2c4f774f7118944e3ced259b53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

Release files / stockeasy-0.0.20220227174346-py3-none-any.whl

Download URL stockeasy-0.0.20220227174346-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1918fbe01534caea99efbffb9d2ccd33348313291226250661307fa62a71cf1a
BLAKE2b-256 checksum
How to use checksums
e8bf5fbbcbd19c8fa9b6710bdc7651d8fead0493e353b066b2f5a699efb2f16c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

Security for stockeasy 0.0.20220227174346

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