megaton 2.6.2__tar.gz → 2.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {megaton-2.6.2 → megaton-2.7.0}/PKG-INFO +1 -1
- {megaton-2.6.2 → megaton-2.7.0}/megaton/gsheet.py +9 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton.egg-info/PKG-INFO +1 -1
- {megaton-2.6.2 → megaton-2.7.0}/pyproject.toml +1 -1
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_gsheet_core.py +8 -0
- {megaton-2.6.2 → megaton-2.7.0}/LICENSE +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/README.md +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/__init__.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/__main__.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/_result.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/auth/__init__.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/auth/cli.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/auth/google_auth.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/auth/hints.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/auth/provider.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/auth/store.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/bq.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/cli.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/constants.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/dates.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/errors.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/files.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/ga4.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/gdrive.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/google_api.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/gsheet_lowlevel.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/install/__init__.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/install/install_bigquery.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/install/install_ga4.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/os.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/py.typed +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/query.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/query_metadata.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/recipes/__init__.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/recipes/config_loader.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/retry_utils.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/searchconsole.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/services/__init__.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/services/bq_service.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/services/gsc_service.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/services/sheet_namespace.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/services/sheets_service.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/start.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/state.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/transform/__init__.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/transform/classify.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/transform/ga4.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/transform/table.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/transform/text.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/transform/traffic.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/ui/__init__.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/ui/widgets.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton/utils.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton.egg-info/SOURCES.txt +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton.egg-info/dependency_links.txt +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton.egg-info/entry_points.txt +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton.egg-info/requires.txt +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/megaton.egg-info/top_level.txt +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/setup.cfg +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_auth.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_auth_hints.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_auth_provider.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_auth_store.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_auto_install.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_bq_core_extra.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_bq_state_api.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_clean_parameter.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_config_loader.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_dates.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_errors_and_init.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_failure_contracts.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_ga4_property_show.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_ga4_report_core.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_ga4_report_retry.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_ga4_state_and_run.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_gsc_service.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_gsheet_lowlevel_a1_helpers.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_gsheet_lowlevel_batch_read.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_gsheet_lowlevel_facade.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_gsheet_lowlevel_request_builders.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_gsheet_lowlevel_retry_core.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_gsheet_retry_resolvers.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_gsheet_timeout.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_megaton_auth_bridge.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_normalize_queries.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_phase0_regressions.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_programmatic_api.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_query_completeness.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_query_contract.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_query_regressions.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_report_dates_to_sheet.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_report_month_window.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_report_prep.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_report_result.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_report_run_multi.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_report_run_ranges.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_report_show_download.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_retry_utils.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_run_all.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_sc_wrapper.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_search_apply_if.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_search_dimension_filter.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_search_filter.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_search_result.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_session_retry.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_sheet_namespace.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_sheet_save_options.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_sheets_read.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_sheets_service.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_transform_classify.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_transform_ga4.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_transform_pipeline_gsc_like.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_transform_table.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_transform_table_normalize_thresholds_df.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_transform_text.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_transform_traffic.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_ui_lazy_import.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_upsert_to_csv.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_utils.py +0 -0
- {megaton-2.6.2 → megaton-2.7.0}/tests/test_wrap_and_chain.py +0 -0
|
@@ -427,6 +427,15 @@ class MegatonGS(object):
|
|
|
427
427
|
_raise_for_api_error(e)
|
|
428
428
|
return self.name
|
|
429
429
|
|
|
430
|
+
@property
|
|
431
|
+
def worksheet(self):
|
|
432
|
+
"""選択中の gspread Worksheet を返す read-only アクセサ。
|
|
433
|
+
|
|
434
|
+
未選択のときは None。gspread の Worksheet API を直接使いたい上級者向けの
|
|
435
|
+
公開窓口(``mg.gs.workbook`` の worksheet 版。内部フィールド _driver の代わり)。
|
|
436
|
+
"""
|
|
437
|
+
return self._driver
|
|
438
|
+
|
|
430
439
|
@property
|
|
431
440
|
def id(self):
|
|
432
441
|
"""Sheet ID"""
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "megaton"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.7.0"
|
|
8
8
|
description = "Google analytics toolkit for Python, CLI and Notebooks: GA4, Search Console, Sheets and BigQuery."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -221,6 +221,14 @@ def test_workbook_property_exposes_driver():
|
|
|
221
221
|
assert gs.workbook is driver
|
|
222
222
|
|
|
223
223
|
|
|
224
|
+
def test_worksheet_property_exposes_selected_worksheet():
|
|
225
|
+
sheet, ws = _build_sheet()
|
|
226
|
+
assert sheet.worksheet is ws
|
|
227
|
+
# 未選択は None
|
|
228
|
+
sheet._driver = None
|
|
229
|
+
assert sheet.worksheet is None
|
|
230
|
+
|
|
231
|
+
|
|
224
232
|
def test_sheets_reads_worksheets_via_retry_wrapper(monkeypatch):
|
|
225
233
|
sheet, ws = _build_sheet()
|
|
226
234
|
gs = _new_gs()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|