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.1.0.tar.gz
.
File metadata
- Download URL: whykay-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96503c938738055db9f9cce686b1eed4ab98cd0d81a66fd78922b94be5e4babf |
|
MD5 | 77fc63688957da6db80ae3950889d498 |
|
BLAKE2b-256 | 8bcadba1c0dd0584d104246b568af7d67c3c658237aa541ed4bc4e0611079242 |