This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import openpyxl | |
| import json | |
| from openpyxl import Workbook | |
| from openpyxl.styles import numbers | |
| from openpyxl.utils import get_column_letter | |
| header_dict = { "1": "Month", |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import openpyxl | |
| import json | |
| from openpyxl import Workbook | |
| from openpyxl.styles import numbers | |
| from openpyxl.utils import get_column_letter | |
| header_dict = { "1": "Month", |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import openpyxl | |
| import json | |
| from openpyxl import Workbook | |
| from openpyxl.styles import numbers | |
| from openpyxl.utils import get_column_letter | |
| header_dict = { "1": "Month", |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import openpyxl | |
| import json | |
| from openpyxl import Workbook | |
| from openpyxl.styles import numbers | |
| from openpyxl.utils import get_column_letter | |
| header_dict = { "1": "Month", |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import openpyxl | |
| import json | |
| from openpyxl import Workbook | |
| from openpyxl.styles import numbers | |
| from openpyxl.utils import get_column_letter | |
| header_dict = { "1": "Month", |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import openpyxl | |
| import json | |
| from openpyxl import Workbook | |
| from openpyxl.styles import numbers | |
| from openpyxl.utils import get_column_letter | |
| header_dict = { "1": "Month", |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import openpyxl | |
| import json | |
| from openpyxl import Workbook | |
| from openpyxl.styles import numbers | |
| from openpyxl.utils import get_column_letter | |
| from openpyxl.styles import colors | |
| from openpyxl.styles import Font, Color | |
| from openpyxl.styles import Border, Side, PatternFill, Font, GradientFill, Alignment, NamedStyle |
This file contains hidden or 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
| { | |
| "2018": { | |
| "January": { | |
| "food": 240.5, | |
| "heating": 89.2, | |
| "rent": 1709.1, | |
| "notes": "January was cold", | |
| "in_the_red": false, | |
| "urls": [ | |
| "http://www.example.com/budget/2018", |
This file contains hidden or 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
| { | |
| "2018":{ | |
| "January": { | |
| "food": 240.5, | |
| "heating": 89.2, | |
| "rent": 1709.10 | |
| }, | |
| "February": { | |
| "food": 202.5, | |
| "heating": 112.2, |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import openpyxl | |
| import json | |
| from openpyxl import Workbook | |
| def populate_sheet(json_data, ws): | |
| ws.cell(1,1, "Month") | |
| ws.cell(1,2, "food") |