Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#45 generic api status code check #46

Merged
merged 28 commits into from
Sep 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c11bca1
added clean_cache function
MarcoHuebner Aug 7, 2022
5edc34f
Added ToDos, Unified query param comparison
MarcoHuebner Aug 14, 2022
0faa29a
Updated destatis status check #45
MarcoHuebner Aug 14, 2022
79da990
Merged updates from personal branch
MarcoHuebner Aug 18, 2022
847e1b2
Added http 5xx error check, added destatis status tests
MarcoHuebner Aug 19, 2022
1f8a933
Updated urls, unified Destatis type-style
MarcoHuebner Aug 20, 2022
6c29d95
Added generic response creation for generic http_helper test
MarcoHuebner Aug 20, 2022
0d3a57e
Updated type hints, made contents rely on functionality from http_hel…
MarcoHuebner Aug 20, 2022
a2a6e79
merged current dev into feature branch.
MarcoHuebner Aug 24, 2022
472f4eb
Merged changes from draft branch, including pylint fixes, Exception a…
MarcoHuebner Aug 24, 2022
712ca97
Fixed merge conflict with dev.
MarcoHuebner Aug 24, 2022
b191c8f
fixed linting issues, including inconsistent returns.
MarcoHuebner Aug 24, 2022
cfa9a74
hotfix of overlooked error #45.
MarcoHuebner Aug 24, 2022
183b967
narrowed the catched exception
MarcoHuebner Aug 26, 2022
8968739
Updated clean_cache, updated http_helper
MarcoHuebner Aug 26, 2022
07ff06f
Fix lint issue with assert
MarcoHuebner Aug 26, 2022
8994f1b
mypy fixes for ci/cd pipeline #45
MarcoHuebner Aug 26, 2022
cd684c6
Updated clean_cache function, added a first version of a test
MarcoHuebner Aug 27, 2022
4c80e90
Fixed linting issues, #45
MarcoHuebner Aug 27, 2022
61152e3
updated with remarks from pull request #45, #46
MarcoHuebner Aug 27, 2022
c1f29b3
updated logging due to linting errors W1203
MarcoHuebner Aug 27, 2022
1b72643
Improved test coverage, update temporary test directory for user name…
MarcoHuebner Sep 4, 2022
27da9a3
Added mock as dependency (as otherwise CI/CD understandably fails), #45
MarcoHuebner Sep 4, 2022
40097f4
Also update project.lock, forgot it before, #45
MarcoHuebner Sep 4, 2022
2f7cdef
Fixed missing config dict error (in remote CI/CD) by mocking it, move…
MarcoHuebner Sep 4, 2022
1fa5e0f
Fixed missing config dict error (in remote CI/CD) by mocking it, move…
MarcoHuebner Sep 4, 2022
7e93ecf
Fixed safety issues (mako and dparse) by updating poetry.lock, #45
MarcoHuebner Sep 4, 2022
47af7b8
Fixed linting issue: timeout for requests.get added, #45
MarcoHuebner Sep 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 33 additions & 7 deletions nb/download_tablefile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -36,15 +36,41 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 5,
"metadata": {
"scrolled": true
},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Cache dir does not exist! Please make sure init_config() was run properly. Path: C:\\Users\\MDick\\.pygenesis\\data\n"
]
}
],
"source": [
"data = get_data(name=\"61111-0002\", method=\"tablefile\", table_area=all)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"from pygenesis.cache import clean_cache"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"clean_cache(\"61111-0002\")"
]
},
{
"cell_type": "code",
"execution_count": 11,
Expand Down Expand Up @@ -747,7 +773,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3.9.12 ('pygenesis')",
"language": "python",
"name": "python3"
},
Expand All @@ -761,11 +787,11 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.9.12"
},
"vscode": {
"interpreter": {
"hash": "ee0113c470e2ab03fd08da308faad6cb3acef2959a5a1adc44423161e2606732"
"hash": "c50015765afe066708d859da3faaa0505e12b679b95f6727e524b172064c6917"
}
}
},
Expand Down
36 changes: 13 additions & 23 deletions nb/parse_cube.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -23,7 +23,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -49,7 +49,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {
"scrolled": true
},
Expand Down Expand Up @@ -641,21 +641,9 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array(['2015', '2016', '2017', '2018', '2019', '2020', '2021'],\n",
" dtype=object)"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"rename_axes(cube)[\"QEI\"][\"JAHR\"].unique()"
]
Expand All @@ -669,11 +657,8 @@
}
],
"metadata": {
"interpreter": {
"hash": "02e23b522f8c3795158421909d41ced4ef90521258d58d1c53bee449d96f71e3"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3.9.12 ('pygenesis')",
"language": "python",
"name": "python3"
},
Expand All @@ -687,7 +672,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.9.12"
},
"vscode": {
"interpreter": {
"hash": "c50015765afe066708d859da3faaa0505e12b679b95f6727e524b172064c6917"
}
}
},
"nbformat": 4,
Expand Down
Loading