diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9a120df..7b62c40 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ # Default codeowners/reviewers for all code changes -* @CambioML @Sdddell +* @CambioML @Sdddell @goldmermaid @lingjiekong diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 175dfc2..189971e 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -46,6 +46,6 @@ jobs: isort . --profile=black --check-only --verbose - name: Test with unittest env: - API_KEY: ${{ secrets.API_KEY }} + CAMBIO_API_KEY: ${{ secrets.CAMBIO_API_KEY }} run: | - poetry run python -m unittest discover tests + poetry run python -m unittest discover -v tests diff --git a/examples/async_pdf_to_markdown.ipynb b/examples/async_pdf_to_markdown.ipynb index 28210af..cc8e34f 100644 --- a/examples/async_pdf_to_markdown.ipynb +++ b/examples/async_pdf_to_markdown.ipynb @@ -75,10 +75,18 @@ "outputs": [], "source": [ "import os\n", + "import logging\n", + "import warnings\n", "from dotenv import load_dotenv\n", "from pdf2image import convert_from_path\n", "from IPython.display import display, Markdown\n", - "from any_parser import AnyParser" + "from any_parser import AnyParser\n", + "\n", + "# Suppress all warnings\n", + "warnings.filterwarnings('ignore')\n", + "\n", + "# Set logging level to ERROR to suppress most log messages\n", + "logging.getLogger().setLevel(logging.ERROR)" ] }, { @@ -164,11 +172,10 @@ "name": "stdout", "output_type": "stream", "text": [ - "Got file id: abbcdd03-1641-4ce5-89a2-51f24e46420e0c8ee49ab6bbf023f2118cd971e56fac2a553aad811ebafe91656404c4bee17e\n", - "Waiting for response...\n", + "Got file id: 35a449ee-cde0-4c71-ae5a-72dce6bad1585803717bc2c3a5864e10088004f6aa51b262e7cc7bca3c043b8ac3c09e5a3ccf\n", "Waiting for response...\n", "Waiting for response...\n", - "{'markdown': ['STOXX INDEX METHODOLOGY GUIDE CONTENTS\\n\\n3/529\\n\\n## 7. STOXX BENCHMARK INDICES (BMI)\\n\\n| 7.1. STOXX GLOBAL INDICES | 52 |\\n|---------------------------|-----|\\n| 7.1.1. OVERVIEW | 52 |\\n| 7.1.2. INDEX REVIEW | 53 |\\n| 7.1.3. ONGOING MAINTENANCE | 55 |\\n\\n| 7.2 STOXX GLOBAL 1800 AND DERIVED INDICES | 56 |\\n|-------------------------------------------|-----|\\n| 7.2.1. OVERVIEW | 56 |\\n| 7.2.2. INDEX REVIEW | 56 |\\n| 7.2.3. ONGOING MAINTENANCE | 58 |\\n\\n| 7.3 SIZE INDICES BASED ON THE STOXX GLOBAL INDICES | 60 |\\n|---------------------------------------------------|-----|\\n| 7.3.1. OVERVIEW | 60 |\\n| 7.3.2. INDEX REVIEW | 60 |\\n| 7.3.3. ONGOING MAINTENANCE | 62 |\\n\\n| 7.4 SECTOR INDICES BASED ON THE STOXX GLOBAL INDICES | 63 |\\n|-----------------------------------------------------|-----|\\n| 7.4.1. OVERVIEW | 63 |\\n| 7.4.2. INDEX REVIEW | 63 |\\n| 7.4.3. ONGOING MAINTENANCE | 64 |\\n\\n| 7.5 STOXX EUROPE 600 AND EURO STOXX SUPERSECTOR INDICES: 30% / 15% CAPS | 65 |\\n|------------------------------------------------------------------------|-----|\\n| 7.5.1. OVERVIEW | 65 |\\n| 7.5.2. INDEX REVIEW | 65 |\\n| 7.5.3. ONGOING MAINTENANCE | 66 |\\n\\n| 7.6 STOXX REGIONAL REAL ESTATE INDICES: 20% CAPS67 | 67 |\\n|-----------------------------------------------------|-----|\\n| 7.6.1. OVERVIEW | 67 |\\n| 7.6.2. INDEX REVIEW | 67 |\\n| 7.6.3. ONGOING MAINTENANCE | 67 |\\n\\n| 7.7 STOXX EMERGING MARKETS 800 LO | 68 |\\n|-------------------------------------|-----|\\n| 7.7.1. OVERVIEW | 68 |\\n| 7.7.2. INDEX REVIEW | 68 |\\n| 7.7.3. ONGOING MAINTENANCE | 68 |\\n\\n| 7.8 STOXX INDUSTRY AND SUPERSECTOR LEGACY INDICES | 70 |\\n|---------------------------------------------------|-----|\\n| 7.8.1. OVERVIEW | 70 |\\n| 7.8.2. INDEX REVIEW | 71 |\\n| 7.8.3. ONGOING MAINTENANCE | 71 |\\n\\n| 7.9 EURO STOXX SUPERSECTOR 5/10/40 INDICES | 72 |\\n|---------------------------------------------|-----|\\n| 7.9.1. OVERVIEW | 72 |\\n| 7.9.2. INDEX REVIEW | 72 |\\n| 7.9.3. ONGOING MAINTENANCE | 73 |\\n\\n| 7.10 STOXX EUROPE 600 INDUSTRY 30-15 INDICES | 74 |\\n|----------------------------------------------|-----|\\n| 7.10.1. OVERVIEW | 74 |\\n| 7.10.2. INDEX REVIEW | 74 |\\n| 7.10.3. ONGOING MAINTENANCE | 75 |\\n\\n| 7.11. STOXX SEMICONDUCTOR 30 INDEX | 76 |\\n|-------------------------------------|-----|\\n| 7.11.1. OVERVIEW | 76 |\\n| 7.11.2. INDEX REVIEW | 76 |\\n| 7.11.3. ONGOING MAINTENANCE | 77 |\\n\\n## 8. STOXX EQUAL WEIGHT INDICES\\n\\n| 8.1. STOXX EQUAL WEIGHT INDICES | 78 |\\n|--------------------------------|-----|\\n| 8.1.1. OVERVIEW | 78 |\\n| 8.1.2. INDEX REVIEW | 78 |\\n| 8.1.3. ONGOING MAINTENANCE | 78 |\\n\\n## 9. STOXX BLUE-CHIP INDICES\\n\\n| 9.1 STOXX GLOBAL AND COUNTRY BLUE-CHIP INDICES | 80 |\\n|------------------------------------------------|-----|\\n| 9.1.1. OVERVIEW | 80 |\\n| 9.1.2. INDEX REVIEW | 81 |\\n| 9.1.3. ONGOING MAINTENANCE | 84 |\\n\\n| 9.2 EURO STOXX 50 | 85 |\\n|-------------------|-----|\\n| 9.2.1. OVERVIEW | 85 |\\n| 9.2.2. INDEX REVIEW | 85 |\\n| 9.2.3. ONGOING MAINTENANCE | 86 |\\n\\n| 9.3 STOXX REGIONAL BLUE-CHIP INDICES | 88 |\\n|-------------------------------------|-----|\\n| 9.3.1. OVERVIEW | 88 |\\n| 9.3.2. INDEX REVIEW | 88 |\\n| 9.3.3. ONGOING MAINTENANCE | 89 |\\n\\n| 9.4 STOXX GLOBAL 150 | 91 |\\n|----------------------|-----|\\n| 9.4.1. OVERVIEW | 91 |\\n| 9.4.2. INDEX REVIEW | 91 |\\n| 9.4.3. ONGOING MAINTENANCE | 91 |\\n\\n| 9.5 STOXX BALKAN 50 EQUAL WEIGHT | 92 |\\n|----------------------------------|-----|\\n| 9.5.1. OVERVIEW | 92 |\\n| 9.5.2. INDEX REVIEW | 92 |\\n| 9.5.3. ONGOING MAINTENANCE | 93 |\\n\\n| 9.6 STOXX CANADA 60 | 94 |\\n|---------------------|-----|\\n| 9.6.1. OVERVIEW | 94 |\\n| 9.6.2. INDEX REVIEW | 94 |\\n| 9.6.3. ONGOING MAINTENANCE | 95 |\\n\\n## 10. STOXX DIVIDEND INDICES\\n\\n| 10.1 STOXX SELECT DIVIDEND INDICES | 96 |\\n|-----------------------------------|-----|\\n| 10.1.1. OVERVIEW | 96 |\\n| 10.1.2. INDEX REVIEW | 96 |\\n| 10.1.3. STOXX SELECT DIVIDEND INDICES | 99 |\\n| 10.1.4. ONGOING MAINTENANCE | 101 |\\n\\n| 10.2 STOXX ASEAN-FIVE SELECT DIVIDEND 50 | 104 |\\n|---------------------------------------------|-----|\\n| 10.2.1. OVERVIEW | 104 |\\n| 10.2.2. INDEX REVIEW | 104 |\\n| 10.2.3. ONGOING MAINTENANCE | 105 |\\n\\n| 10.3 STOXX ASEAN SELECT DIVIDEND 30 | 106 |\\n|-------------------------------------|-----|\\n\\nSTOXX logo with text \"Part of DEUTSCHE BÖRSE GROUP\"'], 'pageCount': 1}\n" + "Waiting for response...\n" ] }, { @@ -310,7 +317,8 @@ "| 10.3 STOXX ASEAN SELECT DIVIDEND 30 | 106 |\n", "|-------------------------------------|-----|\n", "\n", - "STOXX logo with text \"Part of DEUTSCHE BÖRSE GROUP\"" + "Stoxx logo\n", + "Part of Deutsche Börse Group" ], "text/plain": [ "" @@ -359,139 +367,139 @@ "name": "stdout", "output_type": "stream", "text": [ - "Got file id: 662719f3-3ff8-43e7-9af0-5800727b3248005aad9ebdf6df5dbcab9a961903a739cd11ca0d261200cbe5960338946fb9e0\n", + "Got file id: e4617cdc-51a1-4fba-ba18-09f7b1d4cb2e0ab1dcb579a2d1bd241d7e22c734065bc0ce858bb720d9bf817d57aa1c393ee4\n", "Waiting for response...\n", "Waiting for response...\n", "Waiting for response...\n", "Waiting for response...\n", - "Waiting for response...\n", - "Waiting for response...\n", - "{'markdown': ['## CONTENTS\\n\\n6.5.1. OVERVIEW 49\\n6.5.2. INDEX REVIEW 49\\n6.5.3. ONGOING MAINTENANCE 51\\n\\n7. STOXX BENCHMARK INDICES (BMI) 52\\n\\n7.1. STOXX GLOBAL INDICES 52\\n7.1.1. OVERVIEW 52\\n7.1.2. INDEX REVIEW 53\\n7.1.3. ONGOING MAINTENANCE 55\\n\\n7.2. STOXX GLOBAL 1800 AND DERIVED INDICES 56\\n7.2.1. OVERVIEW 56\\n7.2.2. INDEX REVIEW 56\\n7.2.3. ONGOING MAINTENANCE 58\\n\\n7.3. SIZE INDICES BASED ON THE STOXX GLOBAL\\nINDICES 60\\n7.3.1. OVERVIEW 60\\n7.3.2. INDEX REVIEW 60\\n7.3.3. ONGOING MAINTENANCE 62\\n\\n7.4. SECTOR INDICES BASED ON THE STOXX GLOBAL\\nINDICES 63\\n7.4.1. OVERVIEW 63\\n7.4.2. INDEX REVIEW 63\\n7.4.3. ONGOING MAINTENANCE 64\\n\\n7.5. STOXX EUROPE 600 AND EURO STOXX SUPERSECTOR\\nINDICES: 30% / 15% CAPS 65\\n7.5.1. OVERVIEW 65\\n7.5.2. INDEX REVIEW 65\\n7.5.3. ONGOING MAINTENANCE 66\\n\\n7.6. STOXX REGIONAL REAL ESTATE INDICES: 20% CAPS 67\\n7.6.1. OVERVIEW 67\\n7.6.2. INDEX REVIEW 67\\n7.6.3. ONGOING MAINTENANCE 67\\n\\n7.7. STOXX EMERGING MARKETS 800 LO 68\\n7.7.1. OVERVIEW 68\\n7.7.2. INDEX REVIEW 68\\n7.7.3. ONGOING MAINTENANCE 68\\n\\n7.8. STOXX INDUSTRY AND SUPERSECTOR LEGACY\\nINDICES 70\\n7.8.1. OVERVIEW 70\\n7.8.2. INDEX REVIEW 71\\n7.8.3. ONGOING MAINTENANCE 71\\n\\n7.9. EURO STOXX SUPERSECTOR 5/10/40 INDICES 72\\n7.9.1. OVERVIEW 72\\n7.9.2. INDEX REVIEW 72\\n7.9.3. ONGOING MAINTENANCE 73\\n\\n7.10. STOXX EUROPE 600 INDUSTRY 30-15 INDICES 74\\n7.10.1. OVERVIEW 74\\n7.10.2. INDEX REVIEW 74\\n7.10.3. ONGOING MAINTENANCE 75\\n\\n7.11. STOXX SEMICONDUCTOR 30 INDEX 76\\n7.11.1. OVERVIEW 76\\n7.11.2. INDEX REVIEW 76\\n7.11.3. ONGOING MAINTENANCE 77\\n\\n8. STOXX EQUAL WEIGHT INDICES 78\\n\\n8.1. STOXX EQUAL WEIGHT INDICES 78\\n8.1.1. OVERVIEW 78\\n8.1.2. INDEX REVIEW 78\\n8.1.3. ONGOING MAINTENANCE 78\\n\\n9. STOXX BLUE-CHIP INDICES 80\\n\\n9.1. STOXX GLOBAL AND COUNTRY BLUE-CHIP INDICES 80\\n9.1.1. OVERVIEW 80\\n9.1.2. INDEX REVIEW 81\\n9.1.3. ONGOING MAINTENANCE 84\\n\\n9.2. EURO STOXX 50 85\\n9.2.1. OVERVIEW 85\\n9.2.2. INDEX REVIEW 85\\n9.2.3. ONGOING MAINTENANCE 86\\n\\n9.3. STOXX REGIONAL BLUE-CHIP INDICES 88\\n9.3.1. OVERVIEW 88\\n9.3.2. INDEX REVIEW 88\\n9.3.3. ONGOING MAINTENANCE 89\\n\\n9.4. STOXX GLOBAL 150 91\\n9.4.1. OVERVIEW 91\\n9.4.2. INDEX REVIEW 91\\n9.4.3. ONGOING MAINTENANCE 91\\n\\n9.5. STOXX BALKAN 50 EQUAL WEIGHT 92\\n9.5.1. OVERVIEW 92\\n9.5.2. INDEX REVIEW 92\\n9.5.3. ONGOING MAINTENANCE 93\\n\\n9.6. STOXX CANADA 60 94\\n9.6.1. OVERVIEW 94\\n9.6.2. INDEX REVIEW 94\\n9.6.3. ONGOING MAINTENANCE 95\\n\\n10. STOXX DIVIDEND INDICES 96\\n\\n10.1. STOXX SELECT DIVIDEND INDICES 96\\n10.1.1. OVERVIEW 96\\n10.1.2. INDEX REVIEW 96\\n10.1.3. STOXX SELECT DIVIDEND INDICES 99\\n10.1.4. ONGOING MAINTENANCE 101\\n\\n10.2. STOXX ASEAN-FIVE SELECT DIVIDEND 50 104\\n10.2.1. OVERVIEW 104\\n10.2.2. INDEX REVIEW 104\\n10.2.3. ONGOING MAINTENANCE 105\\n\\n10.3. STOXX ASEAN SELECT DIVIDEND 30 106'], 'pageCount': 1}\n" + "Waiting for response...\n" ] }, { "data": { "text/markdown": [ + "Here is the revised markdown text:\n", + "\n", "## CONTENTS\n", "\n", - "6.5.1. OVERVIEW 49\n", - "6.5.2. INDEX REVIEW 49\n", - "6.5.3. ONGOING MAINTENANCE 51\n", + "6.5.1. OVERVIEW 49\n", + "6.5.2. INDEX REVIEW 49\n", + "6.5.3. ONGOING MAINTENANCE 51\n", "\n", - "7. STOXX BENCHMARK INDICES (BMI) 52\n", + "7. STOXX BENCHMARK INDICES (BMI) 52\n", "\n", - "7.1. STOXX GLOBAL INDICES 52\n", - "7.1.1. OVERVIEW 52\n", - "7.1.2. INDEX REVIEW 53\n", - "7.1.3. ONGOING MAINTENANCE 55\n", + "7.1. STOXX GLOBAL INDICES 52\n", + "7.1.1. OVERVIEW 52\n", + "7.1.2. INDEX REVIEW 53\n", + "7.1.3. ONGOING MAINTENANCE 55\n", "\n", - "7.2. STOXX GLOBAL 1800 AND DERIVED INDICES 56\n", - "7.2.1. OVERVIEW 56\n", - "7.2.2. INDEX REVIEW 56\n", - "7.2.3. ONGOING MAINTENANCE 58\n", + "7.2. STOXX GLOBAL 1800 AND DERIVED INDICES 56\n", + "7.2.1. OVERVIEW 56\n", + "7.2.2. INDEX REVIEW 56\n", + "7.2.3. ONGOING MAINTENANCE 58\n", "\n", - "7.3. SIZE INDICES BASED ON THE STOXX GLOBAL\n", - "INDICES 60\n", - "7.3.1. OVERVIEW 60\n", - "7.3.2. INDEX REVIEW 60\n", - "7.3.3. ONGOING MAINTENANCE 62\n", + "7.3. SIZE INDICES BASED ON THE STOXX GLOBAL \n", + "INDICES 60\n", + "7.3.1. OVERVIEW 60\n", + "7.3.2. INDEX REVIEW 60\n", + "7.3.3. ONGOING MAINTENANCE 62\n", "\n", "7.4. SECTOR INDICES BASED ON THE STOXX GLOBAL\n", - "INDICES 63\n", - "7.4.1. OVERVIEW 63\n", - "7.4.2. INDEX REVIEW 63\n", - "7.4.3. ONGOING MAINTENANCE 64\n", + "INDICES 63\n", + "7.4.1. OVERVIEW 63\n", + "7.4.2. INDEX REVIEW 63\n", + "7.4.3. ONGOING MAINTENANCE 64\n", "\n", "7.5. STOXX EUROPE 600 AND EURO STOXX SUPERSECTOR\n", - "INDICES: 30% / 15% CAPS 65\n", - "7.5.1. OVERVIEW 65\n", - "7.5.2. INDEX REVIEW 65\n", - "7.5.3. ONGOING MAINTENANCE 66\n", + "INDICES: 30% / 15% CAPS 65\n", + "7.5.1. OVERVIEW 65\n", + "7.5.2. INDEX REVIEW 65\n", + "7.5.3. ONGOING MAINTENANCE 66\n", "\n", "7.6. STOXX REGIONAL REAL ESTATE INDICES: 20% CAPS 67\n", - "7.6.1. OVERVIEW 67\n", - "7.6.2. INDEX REVIEW 67\n", - "7.6.3. ONGOING MAINTENANCE 67\n", + "7.6.1. OVERVIEW 67\n", + "7.6.2. INDEX REVIEW 67\n", + "7.6.3. ONGOING MAINTENANCE 67\n", "\n", - "7.7. STOXX EMERGING MARKETS 800 LO 68\n", - "7.7.1. OVERVIEW 68\n", - "7.7.2. INDEX REVIEW 68\n", - "7.7.3. ONGOING MAINTENANCE 68\n", + "7.7. STOXX EMERGING MARKETS 800 LO 68\n", + "7.7.1. OVERVIEW 68\n", + "7.7.2. INDEX REVIEW 68\n", + "7.7.3. ONGOING MAINTENANCE 68\n", "\n", "7.8. STOXX INDUSTRY AND SUPERSECTOR LEGACY\n", - "INDICES 70\n", - "7.8.1. OVERVIEW 70\n", - "7.8.2. INDEX REVIEW 71\n", - "7.8.3. ONGOING MAINTENANCE 71\n", + "INDICES 70\n", + "7.8.1. OVERVIEW 70\n", + "7.8.2. INDEX REVIEW 71\n", + "7.8.3. ONGOING MAINTENANCE 71\n", "\n", - "7.9. EURO STOXX SUPERSECTOR 5/10/40 INDICES 72\n", - "7.9.1. OVERVIEW 72\n", - "7.9.2. INDEX REVIEW 72\n", - "7.9.3. ONGOING MAINTENANCE 73\n", + "7.9. EURO STOXX SUPERSECTOR 5/10/40 INDICES 72\n", + "7.9.1. OVERVIEW 72\n", + "7.9.2. INDEX REVIEW 72\n", + "7.9.3. ONGOING MAINTENANCE 73\n", "\n", - "7.10. STOXX EUROPE 600 INDUSTRY 30-15 INDICES 74\n", - "7.10.1. OVERVIEW 74\n", - "7.10.2. INDEX REVIEW 74\n", - "7.10.3. ONGOING MAINTENANCE 75\n", + "7.10. STOXX EUROPE 600 INDUSTRY 30-15 INDICES 74\n", + "7.10.1. OVERVIEW 74\n", + "7.10.2. INDEX REVIEW 74\n", + "7.10.3. ONGOING MAINTENANCE 75\n", "\n", - "7.11. STOXX SEMICONDUCTOR 30 INDEX 76\n", - "7.11.1. OVERVIEW 76\n", - "7.11.2. INDEX REVIEW 76\n", - "7.11.3. ONGOING MAINTENANCE 77\n", + "7.11. STOXX SEMICONDUCTOR 30 INDEX 76\n", + "7.11.1. OVERVIEW 76\n", + "7.11.2. INDEX REVIEW 76\n", + "7.11.3. ONGOING MAINTENANCE 77\n", "\n", - "8. STOXX EQUAL WEIGHT INDICES 78\n", + "8. STOXX EQUAL WEIGHT INDICES 78\n", "\n", - "8.1. STOXX EQUAL WEIGHT INDICES 78\n", - "8.1.1. OVERVIEW 78\n", - "8.1.2. INDEX REVIEW 78\n", - "8.1.3. ONGOING MAINTENANCE 78\n", + "8.1. STOXX EQUAL WEIGHT INDICES 78\n", + "8.1.1. OVERVIEW 78\n", + "8.1.2. INDEX REVIEW 78\n", + "8.1.3. ONGOING MAINTENANCE 78\n", "\n", - "9. STOXX BLUE-CHIP INDICES 80\n", + "9. STOXX BLUE-CHIP INDICES 80\n", "\n", "9.1. STOXX GLOBAL AND COUNTRY BLUE-CHIP INDICES 80\n", - "9.1.1. OVERVIEW 80\n", - "9.1.2. INDEX REVIEW 81\n", - "9.1.3. ONGOING MAINTENANCE 84\n", - "\n", - "9.2. EURO STOXX 50 85\n", - "9.2.1. OVERVIEW 85\n", - "9.2.2. INDEX REVIEW 85\n", - "9.2.3. ONGOING MAINTENANCE 86\n", - "\n", - "9.3. STOXX REGIONAL BLUE-CHIP INDICES 88\n", - "9.3.1. OVERVIEW 88\n", - "9.3.2. INDEX REVIEW 88\n", - "9.3.3. ONGOING MAINTENANCE 89\n", - "\n", - "9.4. STOXX GLOBAL 150 91\n", - "9.4.1. OVERVIEW 91\n", - "9.4.2. INDEX REVIEW 91\n", - "9.4.3. ONGOING MAINTENANCE 91\n", - "\n", - "9.5. STOXX BALKAN 50 EQUAL WEIGHT 92\n", - "9.5.1. OVERVIEW 92\n", - "9.5.2. INDEX REVIEW 92\n", - "9.5.3. ONGOING MAINTENANCE 93\n", - "\n", - "9.6. STOXX CANADA 60 94\n", - "9.6.1. OVERVIEW 94\n", - "9.6.2. INDEX REVIEW 94\n", - "9.6.3. ONGOING MAINTENANCE 95\n", - "\n", - "10. STOXX DIVIDEND INDICES 96\n", - "\n", - "10.1. STOXX SELECT DIVIDEND INDICES 96\n", - "10.1.1. OVERVIEW 96\n", - "10.1.2. INDEX REVIEW 96\n", - "10.1.3. STOXX SELECT DIVIDEND INDICES 99\n", - "10.1.4. ONGOING MAINTENANCE 101\n", - "\n", - "10.2. STOXX ASEAN-FIVE SELECT DIVIDEND 50 104\n", - "10.2.1. OVERVIEW 104\n", - "10.2.2. INDEX REVIEW 104\n", - "10.2.3. ONGOING MAINTENANCE 105\n", - "\n", - "10.3. STOXX ASEAN SELECT DIVIDEND 30 106" + "9.1.1. OVERVIEW 80\n", + "9.1.2. INDEX REVIEW 81\n", + "9.1.3. ONGOING MAINTENANCE 84\n", + "\n", + "9.2. EURO STOXX 50 85\n", + "9.2.1. OVERVIEW 85\n", + "9.2.2. INDEX REVIEW 85\n", + "9.2.3. ONGOING MAINTENANCE 86\n", + "\n", + "9.3. STOXX REGIONAL BLUE-CHIP INDICES 88\n", + "9.3.1. OVERVIEW 88\n", + "9.3.2. INDEX REVIEW 88\n", + "9.3.3. ONGOING MAINTENANCE 89\n", + "\n", + "9.4. STOXX GLOBAL 150 91\n", + "9.4.1. OVERVIEW 91\n", + "9.4.2. INDEX REVIEW 91\n", + "9.4.3. ONGOING MAINTENANCE 91\n", + "\n", + "9.5. STOXX BALKAN 50 EQUAL WEIGHT 92\n", + "9.5.1. OVERVIEW 92\n", + "9.5.2. INDEX REVIEW 92\n", + "9.5.3. ONGOING MAINTENANCE 93\n", + "\n", + "9.6. STOXX CANADA 60 94\n", + "9.6.1. OVERVIEW 94\n", + "9.6.2. INDEX REVIEW 94\n", + "9.6.3. ONGOING MAINTENANCE 95\n", + "\n", + "10. STOXX DIVIDEND INDICES 96\n", + "\n", + "10.1. STOXX SELECT DIVIDEND INDICES 96\n", + "10.1.1. OVERVIEW 96\n", + "10.1.2. INDEX REVIEW 96\n", + "10.1.3. STOXX SELECT DIVIDEND INDICES 99\n", + "10.1.4. ONGOING MAINTENANCE 101\n", + "\n", + "10.2. STOXX ASEAN-FIVE SELECT DIVIDEND 50 104\n", + "10.2.1. OVERVIEW 104\n", + "10.2.2. INDEX REVIEW 104\n", + "10.2.3. ONGOING MAINTENANCE 105\n", + "\n", + "10.3. STOXX ASEAN SELECT DIVIDEND 30 106" ], "text/plain": [ "" @@ -543,7 +551,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.0" + "version": "3.10.15" } }, "nbformat": 4, diff --git a/tests/README.md b/tests/README.md index a4b475d..67719b0 100644 --- a/tests/README.md +++ b/tests/README.md @@ -12,7 +12,7 @@ In the `dev.dependencies` section of the `pyproject.toml` file, you will see the 2. Add a `.env` file in the `tests` folder with the following content: ```bash -API_KEY=************* +CAMBIO_API_KEY=************* ``` ## Pre-commit diff --git a/tests/test.py b/tests/test.py index 2deaa4c..e66ce60 100755 --- a/tests/test.py +++ b/tests/test.py @@ -36,9 +36,9 @@ class TestAnyParser(unittest.TestCase): """Testing Any Parser""" def setUp(self): - self.api_key = os.environ.get("API_KEY") + self.api_key = os.environ.get("CAMBIO_API_KEY") if not self.api_key: - raise ValueError("API_KEY is not set") + raise ValueError("CAMBIO_API_KEY is not set") self.ap = AnyParser(self.api_key) def test_pdf_sync_extract(self):