Python toolstack for helper functions and efficient connectivity
Project description
WhyKay
The concept is to have a personal toolbar that contains all the handy functions that support efficient python software engineering workflows, connectivity to cloud, navigating file systems, parsing date/time formats and pushing notifications to different platforms.
v0.1.0 is now available with the feature to calculate the stock exposure through your ETFs and stock portfolio
Installation
To run the code successfully, all the dependencies can either be installed using pip:
pip install whykay
Cloning repository for contributions
To run the code successfully, all the dependencies can either be installed using pip:
pip install -r requirements.txt
or use the pre-define Makefile targets
make setup
Features (Usage/Examples)
Investments (Stock exposure calculator)
Available for use from v0.1.0
>>> from whykay.investments.portfolio_analyzer import calculate_exposure
╔══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ WhyKay import successful ║
╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
Launching Portfolio Analyzer
1 This only works on ETFs or Stocks (Individual shares) based portfolio
2 Will ignore any other investment holdings that you pass
3 It takes in input in form of a {ISIN: AMOUNT INVESTED, ...} where ISIN uniquely idenfies a holding
>>> calculate_exposure({"IE00B3XXRP09": 500, "US0378331005": 200})
+----+----------+-----------------------+--------------------+
| | symbol | Amount Invested ($) | Overall Exposure |
|----+----------+-----------------------+--------------------|
| 0 | AAPL | 229.5500 | 32.7929 |
| 1 | MSFT | 28.1000 | 4.0143 |
| 2 | AMZN | 20.3000 | 2.9000 |
| 3 | FB | 11.4500 | 1.6357 |
| 4 | GOOGL | 10.1000 | 1.4429 |
| 5 | GOOG | 9.8500 | 1.4071 |
| 6 | BRK.B | 7.2500 | 1.0357 |
| 7 | TSLA | 7.2000 | 1.0286 |
| 8 | NVDA | 6.8500 | 0.9786 |
| 9 | JPM | 6.5000 | 0.9286 |
+----+----------+-----------------------+--------------------+
Authors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file whykay-0.2.0.tar.gz
.
File metadata
- Download URL: whykay-0.2.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f390df01d1d0f3065d12e4a78b7b8693bae5545397a320d5628fbad7f989066 |
|
MD5 | fefa05c597af3d3284ea725d60591187 |
|
BLAKE2b-256 | a2cdf2b9421fde42730d88a5662e821a8df9dc6a992fc41fe2217a5c6a7bce0c |