-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96ba022
commit 93780d2
Showing
23 changed files
with
671 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,7 @@ instance/ | |
|
||
# Sphinx documentation | ||
docs/_build/ | ||
docs/apidocs/ | ||
|
||
# PyBuilder | ||
.pybuilder/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Build the documentation and serve it locally on https://127.0.0.1:8000 using: | ||
|
||
```bash | ||
pip install sphinx-autobuild myst-parser sphinx-rtd-theme sphinx-autodoc2 | ||
sphinx-autobuild docs docs/_build/html | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 🔧 Installation | ||
|
||
## Quick start | ||
|
||
If you don't plan on touching the code, simply run (with python >=3.10 and pip installed): | ||
```sh | ||
pip install finalynx # run again with --upgrade to update | ||
``` | ||
|
||
And you're done! Now create your own copy of the [`demo.py`](https://github.com/MadeInPierre/finalynx/blob/main/examples/demo.py) example anywhere and run it to make sure everything works. You can now customize it for your own needs 🚀 | ||
|
||
```{tip} | ||
**Pro Tip 💡:** Why not setup a script to autorun your config in a new terminal on startup? Could be a nice view 🤭 | ||
``` | ||
|
||
```{note} | ||
**Want to help this project grow?** Checkout the [**contribution guidelines**](https://finalynx.readthedocs.io/en/latest/project/contributing.html) to learn how to install this project in | ||
development mode 🧑💻 | ||
``` | ||
|
||
## Detailed instructions | ||
|
||
If you need a bit more details, here is a summary of all commands to need to run to make Finalynx work with a basic configuration. First, make sure you have a recent Python version (must be 3.10 or above) by running: | ||
|
||
```bash | ||
python3 --version # Must be >=3.10 | ||
``` | ||
|
||
```{note} | ||
**Note:** If you have any questions or difficulty, please [**open an issue**](https://github.com/MadeInPierre/finalynx/issues/new), we'll be happy to help, teach and learn together! No matter the level, there are no dumb questions right? 🤝 | ||
``` | ||
|
||
There are two options to install Finalynx: | ||
|
||
1. Install using `pip`, and paste the contents of the `demo.py` example file in any folder (e.g. Documents): | ||
```bash | ||
pip3 install finalynx # Automatically install finalynx globally, lets you use `from finalynx import *` | ||
cd somewhere/like/Documents # Make sure you use any folder outside system files, like your home directory | ||
touch assistant_config.py # Create your configuration file and past the contents of the `demo.py` example | ||
python3 assistant_config.py # Run your configuration file to make sure everything works, then customize it! | ||
``` | ||
|
||
1. Install using `git clone`, lets you modify the code yourself, contribute to this project, and get the latest code to avoid waiting for new releases: | ||
```bash | ||
cd somewhere/like/Documents/ # Choose any folder to download Finalynx's code, must be outside of system folders | ||
git clone https://github.com/MadeInPierre/finalynx.git # Download the code as a git repository (easy to update) | ||
cd finalynx # Go inside the newly downloaded project | ||
pip3 install poetry && poetry check && poetry install # Install all project dependencies | ||
pip3 install -e . # Install the code globally, -e means you can change the code without the need to reinstall | ||
python3 examples/demo.py # Try out the demo example to make sure everything works | ||
|
||
cp examples/demo.py assistant_config.py # Create your own copy of the demo, this will be your personal config | ||
# Customize your config now to create your own portfolio! | ||
python3 assistant_config.py --help # Run your own config (use --help to see customizable options) | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 📖 Tutorials | ||
|
||
Looking for a step-by-step guide to understand each concept available in Finalynx? Have a look a the [`examples/tutorials` folder in the Github repository](https://github.com/MadeInPierre/finalynx/blob/main/examples/tutorials)! It contains incremental instructions on how to build your own portfolio configuration and use Finalynx with is customizable options. | ||
|
||
```{note} | ||
**Note:** Want to also have some additional explanation on this documentation website? Please [open an issue](https://github.com/MadeInPierre/finalynx/issues/new) to show your interest and motivate the author to write them 🙃 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# TODO Coming soon! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
Finalynx - Tutorial 1 - Minimal configuration | ||
============================================= | ||
This tutorial shows how to create the smallest valid portfolio | ||
configuration with a single line. | ||
Try it out by running: | ||
> python3 examples/tutorials/1_minimal.py | ||
See explanations and details in the online documentation at: | ||
> https://finalynx.readthedocs.io | ||
""" | ||
# noreorder | ||
from finalynx import Assistant, Portfolio | ||
|
||
|
||
# Create a portfolio definition (empty for now), this will be your custom | ||
# structure later on. See the next tutorials for more details. | ||
portfolio = Portfolio() | ||
|
||
|
||
# Run the assistant to fetch your investments from Finary and add them to your portfolio | ||
# Optionally, set the `ignore_orphans` option to True to ignore investments that are not | ||
# in your portfolio definition. Otherwise, they will be added to the portfolio root: | ||
Assistant(portfolio, ignore_orphans=True).run() # Default is False |
Oops, something went wrong.