Skip to main content

A package for a quick and dirty portfolio analysis.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stockeasy-0.0.20220227193016.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

stockeasy-0.0.20220227193016-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file stockeasy-0.0.20220227193016.tar.gz.

File metadata

  • Download URL: stockeasy-0.0.20220227193016.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for stockeasy-0.0.20220227193016.tar.gz
Algorithm Hash digest
SHA256 e8276f617eacf7341afb3d7313c81f83e78993ae7be55ff234f1c7fc5e2393d1
MD5 275e4e26cc0f8e0f8c64dc52cd19c5dd
BLAKE2b-256 2ae3cb2857101ae6ed165b7ef411f71feb4090dac04ad894402c2f1bc81daf72

See more details on using hashes here.

File details

Details for the file stockeasy-0.0.20220227193016-py3-none-any.whl.

File metadata

  • Download URL: stockeasy-0.0.20220227193016-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for stockeasy-0.0.20220227193016-py3-none-any.whl
Algorithm Hash digest
SHA256 0c81c05e7d634e50a397b06805fdbdfa0500af528defe0c19bed364e333ad065
MD5 1b756daf104ba4cc0589899e26426157
BLAKE2b-256 2f97520dbd6c75d91fe1d009050fbf8d2dfed26ff9a8dcf49d642502818d848d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page