Metadata-Version: 2.1
Name: portfolio-allocation
Version: 0.2.1
Summary: Calculates currency, country and industry allocations for portfolio of ETFs and mutual funds
Home-page: https://github.com/fertkir/portfolio-allocation
Author: Kirill Fertikov
Author-email: kirill.fertikov@gmail.com
Project-URL: Bug Reports, https://github.com/fertkir/portfolio-allocation/issues
Project-URL: Source, https://github.com/fertkir/portfolio-allocation
Keywords: etf allocation moex tinkoff finex gnucash
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: appdirs (==1.4.4)
Requires-Dist: banal (==1.0.6)
Requires-Dist: cache-to-disk (==2.0.0)
Requires-Dist: cffi (==1.15.1)
Requires-Dist: countrynames (==1.14.3)
Requires-Dist: multitasking (==0.0.11)
Requires-Dist: normality (==2.4.0)
Requires-Dist: pycountry (==22.3.5)
Requires-Dist: pycparser (==2.21)
Requires-Dist: pytz (==2023.3)
Requires-Dist: requests (==2.28.2)
Requires-Dist: text-unidecode (==1.3)
Requires-Dist: webencodings (==0.5.1)
Requires-Dist: yfinance (==0.2.14)
Requires-Dist: beautifulsoup4 (==4.12.0) ; python_full_version >= "3.6.0"
Requires-Dist: charset-normalizer (==3.1.0) ; python_full_version >= "3.7.0"
Requires-Dist: tzdata (==2023.3) ; python_version >= "2"
Requires-Dist: python-dateutil (==2.8.2) ; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3"
Requires-Dist: six (==1.16.0) ; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3"
Requires-Dist: html5lib (==1.1) ; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3, 3.4"
Requires-Dist: lxml (==4.9.2) ; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3, 3.4"
Requires-Dist: urllib3 (==1.26.15) ; python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3, 3.4, 3.5"
Requires-Dist: idna (==3.4) ; python_version >= "3.5"
Requires-Dist: certifi (==2022.12.7) ; python_version >= "3.6"
Requires-Dist: cryptography (==40.0.1) ; python_version >= "3.6"
Requires-Dist: frozendict (==2.3.6) ; python_version >= "3.6"
Requires-Dist: levenshtein (==0.20.9) ; python_version >= "3.6"
Requires-Dist: python-levenshtein (==0.20.9) ; python_version >= "3.6"
Requires-Dist: pyyaml (==6.0) ; python_version >= "3.6"
Requires-Dist: chardet (==5.1.0) ; python_version >= "3.7"
Requires-Dist: rapidfuzz (==2.15.0) ; python_version >= "3.7"
Requires-Dist: setuptools (==67.6.1) ; python_version >= "3.7"
Requires-Dist: soupsieve (==2.4) ; python_version >= "3.7"
Requires-Dist: numpy (==1.24.2) ; python_version >= "3.8"
Requires-Dist: pandas (==2.0.0) ; python_version >= "3.8"
Provides-Extra: dev

# Portfolio Allocation for GnuCash
Currency, country, asset class and industry allocations for portfolio of ETFs and mutual funds

What the program does:
1. Takes instrument allocation from [GnuCash's "Security" pie chart report](https://raw.githack.com/fertkir/portfolio-allocation/master/examples/gnucash.html)
2. Fetches data for each instrument from the Internet:
   1. Finex website
   2. Tinkoff website
   3. Yahoo Finance
3. Generates and opens [portfolio allocation report](https://raw.githack.com/fertkir/portfolio-allocation/master/examples/allocation.html) in your browser.

## Installation
```commandline
pip install portfolio-allocation
```

## Usage
To generate report based on default "Securities" GnuCash report for recently open GnuCash file:
```commandline
portfolio-allocation gnucash
```
But you'd better customize it, since the "Securities" pie chart is limited to 7 instruments:
```commandline
portfolio-allocation gnucash -r MyCustomReport1 MuCustomReport2
```
To select another GnuCash file:
```commandline
portfolio-allocation gnucash -r MyCustomReport -f /home/user/other.gnucash
```

To view all the possible options, check:
```commandline
portfolio-allocation -h
```

