Adfire is a tool to assist personal finance enthusiasts in implementing the FIRE strategy in their lifestyle. This tool provides a platform for users to record income, expenses and savings, and quickly build custom analyses tailored to their needs, or use and share other users' projections.
-
Clone the repository
git clone https://github.com/redrossa/adfire.git
-
Navigate to the project directory
cd adfire
-
Set up Python virtual environment
python -m venv venv
-
Activate virtual environment
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install dependencies
pip install -r requirements.txt
-
Install Adfire as a package
pip install -e .
-
Verify installation
adfire --version
-
Run tests
pytest
-
In an empty directory, initialize with a sample portfolio
adfire init
-
Record entries in CSV files, any directory item (and its children) preceded with '.' is ignored
-
Verify records to see errors
adfire lint
-
Clean up and format records
adfire format
-
View reports using PIP installed module packages
adfire view <MODULE_NAME>
-
Create a Python package
-
Add
__main__.py
- Define
global portfolio
, which is thePortfolio
instance passed from Adfire CLI - Define entrypoint for
__name__ == '__main__'
- Analyze portfolio and output custom reports
- Define
-
Install the package with PIP
pip install -e /path/to/package
-
Try it out in a formatted portfolio
adfire view <PACKAGE_NAME>