Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martn2023/geektrust-mymoney-asset-reallocation
investment portfolio rebalancing and reporting
https://github.com/martn2023/geektrust-mymoney-asset-reallocation
Last synced: 7 days ago
JSON representation
investment portfolio rebalancing and reporting
- Host: GitHub
- URL: https://github.com/martn2023/geektrust-mymoney-asset-reallocation
- Owner: martn2023
- License: mit
- Created: 2024-03-15T22:20:12.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-08-21T17:01:44.000Z (3 months ago)
- Last Synced: 2024-08-21T19:10:27.558Z (3 months ago)
- Language: Python
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- Changelog: change_manager.py
- License: LICENSE
Awesome Lists containing this project
README
# AUTHOR'S CONTEXT
[GeekTrust](https://www.geektrust.com/) is an AI-powered code-evaluation platform for job-seekers. After 5 failed challenges, this was my first deliverable that earned 6/6 badges and put me in the GOLD tier (scores over 80/100).![1715876838954](https://github.com/martn2023/geektrust-mymoney/assets/42924628/253a76fc-e7b1-4cde-98e9-180da3c9a5b9)
For details on the challenge's instructions, input/output requirements - see this link: https://www.geektrust.com/challenge/my-money
# Pre-requisites
* Python 3.8/3.9
* Pip# Pre-requisites
* Python 3.8/3.9
* Pip# How to run the code
We have provided scripts to execute the code.
Use `run.sh` if you are Linux/Unix/macOS Operating systems and `run.bat` if you are on Windows. Both the files run the commands silently and prints only output from the input file `sample_input/input1.txt`. You are supposed to add the input commands in the file from the appropriate problem statement.
Internally both the scripts run the following commands
* `pip install -r requirements.txt` - This will install the dependencies mentioned in the requirement.file
* `python -m geektrust sample_input/input1.txt` - This will run the solution passing in the sample input file as the command line argumentIf you are providing a solution without using the build file, we want you to name your Main file as geektrust.py. This is the file that will contain your main method.
We expect your program to take the location to the text file as parameter. Input needs to be read from a text file, and output should be printed to the console. The text file will contain only commands in the format prescribed by the respective problem.
# Running the code for multiple test cases
Please fill `input1.txt` and `input2.txt` with the input commands and use those files in `run.bat` or `run.sh`. Replace `python -m geektrust sample_input/input1.txt` with `python -m geektrust sample_input/input2.txt` to run the test case from the second file.
# How to execute the unit tests
`python -m unittest discover` will execute the unit test cases.
The unit test coverage is found by the command :
`coverage run -m unittest discover`# Help
You can refer our help documents [here](https://help.geektrust.com)
You can read build instructions [here](https://github.com/geektrust/coding-problem-artefacts/tree/master/Python)