tabalyst 0.7.6__tar.gz → 0.7.7__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.
- {tabalyst-0.7.6/src/tabalyst.egg-info → tabalyst-0.7.7}/PKG-INFO +1 -1
- {tabalyst-0.7.6 → tabalyst-0.7.7}/pyproject.toml +1 -1
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/sample.py +56 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_csv.py +15 -2
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_service.py +10 -16
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/sampling.py +93 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/sampling_service.py +9 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7/src/tabalyst.egg-info}/PKG-INFO +1 -1
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_computer_service.py +6 -4
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_sampling.py +77 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/LICENSE +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/MANIFEST.in +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/README.md +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/README.md +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/config.json +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/datasets/basic.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/datasets/insurance-customers.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/generate/README.md +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/generate/cohorts-anomalies/catalog.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/generate/cohorts-anomalies/dataset.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/generate/cohorts-anomalies/schemas/accounts.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/generate/cohorts-anomalies/schemas/contacts.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/generate/common-references/catalog.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/generate/common-references/dataset.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/generate/common-references/schemas/contacts.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/examples/generate/generate_examples.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/setup.cfg +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/__main__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/_version.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/batch.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cache_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/app.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/cache.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/confirm.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/dedup.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/generate.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/inspect.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/report.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/scan.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/cli/terminal.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/config.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/csv_records.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/analysis.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/batch_report.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/cache.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/calculation.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/count_only.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/discovery.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/diskstore.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/failures.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/groups.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/identity.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/pipeline.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/publish.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/report.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/settings.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/store.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/tiered.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup/writer.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/dedup_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/deep_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/deep_store.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/errors.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/execution_log.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_anomalies.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_columns_package.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_computer.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_computer_output.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_computer_parallel.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_definition.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_draws.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/SOURCES.md +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/catalog.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/brand.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/color.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/computer_type.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/computer_type_form_factor.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/computer_type_product_segment.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/cpu.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/cpu_memory_weight.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/cpu_operating_system.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/display.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/extended_specs.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/form_factor.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_color.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_cpu.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_display.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_gpu.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_memory.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_operating_system.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_profile.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_profile_computer_type.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_profile_segment.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/generation_storage.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/gpu.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/gpu_display.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/gpu_memory_weight.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/gpu_storage_weight.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/memory.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/model_form_factor.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/model_generation.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/operating_system.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_category.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_family.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_family_computer_type.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_family_product_segment.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_model.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_segment.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_segment_brand.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_segment_display_weight.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_segment_memory_weight.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_segment_storage_weight.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/product_subcategory.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/profile_exclusions.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/promotion_status.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/promotion_type.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/seller.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/seller_type.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/shipping_availability.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/standard_specs.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/storage.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/data/warehouse.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/dataset.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/computer_type.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/computer_type_form_factor.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/computer_type_product_segment.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/computers.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/cpu.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/cpu_memory_weight.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/cpu_operating_system.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/display.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/extended_specs.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_color.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_cpu.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_display.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_gpu.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_memory.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_operating_system.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_profile.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_profile_computer_type.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_profile_segment.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/generation_storage.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/gpu.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/gpu_display.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/gpu_memory_weight.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/gpu_storage_weight.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/localized.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/memory.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/model_form_factor.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/model_generation.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/operating_system.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_family.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_family_computer_type.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_family_product_segment.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_model.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_segment.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_segment_brand.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_segment_display_weight.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_segment_memory_weight.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_segment_storage_weight.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/product_subcategory.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/profile_exclusions.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/seller.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/standard_specs.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/storage.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/computer/schemas/warehouse.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/crm/catalog.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/crm/dataset.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/crm/schemas/accounts.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/crm/schemas/contacts.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/SOURCES.md +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/catalog.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/data/agencies.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/data/branch_contract_weights.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/data/claim_statuses.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/data/contract_statuses.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/data/contract_types.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/data/payment_frequencies.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/data/payment_methods.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/dataset.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/schemas/agencies.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/schemas/branch_contract_weights.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/schemas/claim_statuses.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/schemas/contract_statuses.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/schemas/contract_types.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/schemas/customers.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/schemas/payment_frequencies.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_examples/insurance/schemas/payment_methods.yaml +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_insurance.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_package.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_references.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/SOURCES.md +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/addresses/street_directions_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/addresses/street_names_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/addresses/street_types_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/addresses/unit_types_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/contact/email_patterns.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/contact/email_providers_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/contact/phone_area_codes_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/geography/cities_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/geography/postal_prefixes_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/geography/provinces_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/people/family_names_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/people/first_names_en_ca.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_resources/people/first_names_fr_qc.csv +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_selection.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/generate_values.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/identifier_uniqueness/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/identifier_uniqueness/facts.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/identifier_uniqueness/models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/identifier_uniqueness/near_unique.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/identifier_uniqueness/proof.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/identifier_uniqueness/rule.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspect_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/choices.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/excel_inspect/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/excel_inspect/build.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/excel_inspect/detect.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/excel_inspect/parameters.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/json_inspect/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/json_inspect/build.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/json_inspect/detect.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/json_inspect/parameters.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/persistence.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/inspector/resolution.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/json_text.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/option_notices.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/plan_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/progress.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/project_open_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/project_scan_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_bounded_values.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_cache.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_codec.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_generation.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_locks.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_publication.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_queries.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_query_budget.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_recovery.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_retention.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_schema.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_session.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_staging.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_sync.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/_validation.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/catalog.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/freshness.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/identity.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/index.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/location.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/projects/store.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_chain.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_charts.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_classification.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_column_page.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_config.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_deep.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_details.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_finding_details.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_findings.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_insights.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_labels.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_measures.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_overview.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_plan.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_preview.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_profile.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_relations.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_schema.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_sections.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_signals.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_summary.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_table.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_uniqueness.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/report_views.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/reporting.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/result_model.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/sample_page.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scan_document.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scan_page.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scan_reuse.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scan_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/api.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/bottomk.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/cases.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/charactermap.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/characters.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/classify/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/classify/candidates.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/classify/catalog.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/classify/identifiers.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/classify/models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/classify/names.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/classify/rules.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/config.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/convention_rule.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/correlation_ratio.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/crosstab.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/amount.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/base.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/boolean.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/currency.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/email.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/enumeration.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/ip.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/keys.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/names.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/number.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/pattern.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/percentage.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/phone.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/postal.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/quantity.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/registry.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/shape.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/temporal.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/url.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/detectors/uuid.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/diagnostics.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/engine.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/exposure.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/features.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/field.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/identity.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/lengthsample.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/longtext.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/measures.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/memory.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/normalization.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/observations.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/paths.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/pattern_eligibility.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/patternfacets.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/patterninfer.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/patterntree.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/pearson.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzer.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/analytical.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/characters.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/common.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/copies.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/crosstab.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/date_order.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/distinct.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/drift.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/duplicates.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/forms.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/frequencies.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/histogram.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/lengths.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/matrix.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/measures.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/missing_copies.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/parts.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/patterns.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/pearson.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/residuals.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/shape.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/stats.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/structure.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/temporal.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/analyzers/texts.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/categorystats.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/costmodel.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/crosstabs.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/facts.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/identifiers.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/orders.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/planner.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/reasons.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/registry.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/relations.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/render.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/samplerows.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/secondpass.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/stratification.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/planner/stratmodels.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/process.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/quality.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/rankcorr.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/base.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/csv_reader.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/excel_common.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/excel_reader.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/excel_table.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/factory.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/json_common.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/json_reader.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/readers/jsonl_reader.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/records.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/rowsample.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/schema.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/accumulators.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/analytical.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/bins.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/boundaries.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/characters.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/copies.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/crosstab.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/document.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/drift.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/duplicates.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/exactset.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/executor.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/forms.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/frequencies.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/matrix.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/measures.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/missing_copies.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/orders.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/parallel.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/parts.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/patternreader.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/patterns.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/pearson.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/periods.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/ranks.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/replay.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/residuals.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/routing.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/schema.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/shape.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/stats.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/structure.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/secondpass/texts.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/__init__.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/bins.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/estimate.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/evaluate.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/execute.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/near.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/plan.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/reasons.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/render.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/result.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/select.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/targets.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/smart/weights.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/stratify.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/structure.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/technical.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/validation.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/values.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/valuesample.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/scanner/workers.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/schemas/tabalyst.dedup.batch.schema.json +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/schemas/tabalyst.dedup.schema.json +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/schemas/tabalyst.report.schema.json +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/schemas/tabalyst.sample.schema.json +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/schemas/tabalyst.scan.deep.schema.json +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/schemas/tabalyst.scan.schema.json +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/shared_scan_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/smart_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/source_guard.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/static/charts.js +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/static/report.js +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/static/theme.css +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/summary_models.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/templates/characters.html +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/templates/charts.html +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/templates/column.html +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/templates/insights.html +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/templates/patterns.html +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/templates/report.html +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst/templates/sample.html +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst.egg-info/SOURCES.txt +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst.egg-info/dependency_links.txt +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst.egg-info/entry_points.txt +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst.egg-info/requires.txt +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/src/tabalyst.egg-info/top_level.txt +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_all_collections.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_cli.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_csv_records.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_examples_index.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_examples_layout.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_anomalies.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_anomalies_regression.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_computer_catalog.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_computer_components.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_computer_derivations.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_computer_hierarchy.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_computer_output.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_computer_parallel.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_crm.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_crm_package.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_insurance.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_insurance_stress.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_lot4.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_package.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_references.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_generate_selection.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_json_text.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_license_headers.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_make_datasets.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_option_notices.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_cache.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_database.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_generations.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_identity.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_index.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_location.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_open_service.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_queries.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_rescan.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_scan.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_scan_model.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_sessions.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_project_store.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_public_api.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_report_contrast.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_reporting.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_sampling_stratified_balanced.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scan_command.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_amounts.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_batches.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_config.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_csv.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_email_url.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_exposure.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_paths.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_phone.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_postal.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_scanner_uuid_ip.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_shared_scan_cli.py +0 -0
- {tabalyst-0.7.6 → tabalyst-0.7.7}/tests/test_source_freshness.py +0 -0
|
@@ -32,6 +32,12 @@ def _print_result(result: SampleResult) -> None:
|
|
|
32
32
|
typer.echo(f"Source rows: {result.source_rows:,}", err=True)
|
|
33
33
|
typer.echo(f"Sample rows: {result.sample_rows:,}", err=True)
|
|
34
34
|
typer.echo(f"Sample rate: {result.sample_rate:.2f}%", err=True)
|
|
35
|
+
if result.parts is not None:
|
|
36
|
+
first, drawn, last = result.parts
|
|
37
|
+
typer.echo(
|
|
38
|
+
f"Parts: {first:,} first, {drawn:,} random, {last:,} last",
|
|
39
|
+
err=True,
|
|
40
|
+
)
|
|
35
41
|
if result.per_value is not None:
|
|
36
42
|
typer.echo(f"Per value: up to {result.per_value:,} rows", err=True)
|
|
37
43
|
if result.strata_known is not None:
|
|
@@ -56,6 +62,7 @@ def _print_result(result: SampleResult) -> None:
|
|
|
56
62
|
)
|
|
57
63
|
if result.seed is not None and result.method in {
|
|
58
64
|
SampleMethod.RANDOM,
|
|
65
|
+
SampleMethod.MIXED,
|
|
59
66
|
SampleMethod.STRATIFIED,
|
|
60
67
|
SampleMethod.STRATIFIED_BALANCED,
|
|
61
68
|
}:
|
|
@@ -163,8 +170,28 @@ def _reject_unused_options(
|
|
|
163
170
|
per_value: int | None,
|
|
164
171
|
rows: int | None,
|
|
165
172
|
percent: float | None,
|
|
173
|
+
first_rows: int | None,
|
|
174
|
+
random_rows: int | None,
|
|
175
|
+
last_rows: int | None,
|
|
166
176
|
) -> None:
|
|
167
177
|
"""Refuse an option the method does not read: none is ignored without an error."""
|
|
178
|
+
mixed = method is SampleMethod.MIXED
|
|
179
|
+
for name, count in (
|
|
180
|
+
("--first-rows", first_rows),
|
|
181
|
+
("--random-rows", random_rows),
|
|
182
|
+
("--last-rows", last_rows),
|
|
183
|
+
):
|
|
184
|
+
if count is not None and not mixed:
|
|
185
|
+
raise typer.BadParameter(
|
|
186
|
+
f"{name} only goes with --sample-method mixed, not {method.value}."
|
|
187
|
+
)
|
|
188
|
+
if mixed and (rows is not None or percent is not None):
|
|
189
|
+
raise typer.BadParameter(
|
|
190
|
+
"--rows and --percent do not go with mixed: use --first-rows, "
|
|
191
|
+
"--random-rows and --last-rows."
|
|
192
|
+
)
|
|
193
|
+
if mixed and seed is not None and not random_rows:
|
|
194
|
+
raise typer.BadParameter("--seed has no effect with mixed unless --random-rows is above 0.")
|
|
168
195
|
smart = method is SampleMethod.SMART
|
|
169
196
|
for name, given in (("--yes", yes), ("--no-html", no_html)):
|
|
170
197
|
if given and not smart:
|
|
@@ -250,6 +277,29 @@ def sample_command(
|
|
|
250
277
|
),
|
|
251
278
|
),
|
|
252
279
|
] = None,
|
|
280
|
+
first_rows: Annotated[
|
|
281
|
+
int | None,
|
|
282
|
+
typer.Option(
|
|
283
|
+
"--first-rows", min=0,
|
|
284
|
+
help="With mixed, rows kept from the start of the file (0 for none).",
|
|
285
|
+
),
|
|
286
|
+
] = None,
|
|
287
|
+
random_rows: Annotated[
|
|
288
|
+
int | None,
|
|
289
|
+
typer.Option(
|
|
290
|
+
"--random-rows", min=0,
|
|
291
|
+
help="With mixed, rows drawn at random among the others: never a row "
|
|
292
|
+
"already kept from the start or the end (0 for none).",
|
|
293
|
+
),
|
|
294
|
+
] = None,
|
|
295
|
+
last_rows: Annotated[
|
|
296
|
+
int | None,
|
|
297
|
+
typer.Option(
|
|
298
|
+
"--last-rows", min=0,
|
|
299
|
+
help="With mixed, rows kept from the end of the file (0 for none). "
|
|
300
|
+
"If the file is shorter than the three together, every row is kept once.",
|
|
301
|
+
),
|
|
302
|
+
] = None,
|
|
253
303
|
seed: Annotated[
|
|
254
304
|
int | None,
|
|
255
305
|
typer.Option("--seed", help="Seed for reproducible random selection."),
|
|
@@ -314,6 +364,9 @@ def sample_command(
|
|
|
314
364
|
per_value=per_value,
|
|
315
365
|
rows=rows,
|
|
316
366
|
percent=percent,
|
|
367
|
+
first_rows=first_rows,
|
|
368
|
+
random_rows=random_rows,
|
|
369
|
+
last_rows=last_rows,
|
|
317
370
|
)
|
|
318
371
|
try:
|
|
319
372
|
if method is SampleMethod.SMART:
|
|
@@ -347,6 +400,9 @@ def sample_command(
|
|
|
347
400
|
force=force,
|
|
348
401
|
max_strata=max_strata,
|
|
349
402
|
per_value=per_value,
|
|
403
|
+
first_rows=first_rows,
|
|
404
|
+
random_rows=random_rows,
|
|
405
|
+
last_rows=last_rows,
|
|
350
406
|
)
|
|
351
407
|
except TabalystError as exc:
|
|
352
408
|
typer.echo(f"Error: {exc}", err=True)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"""Streaming CSV output adapted from dataset_factory.exporters.csv."""
|
|
6
6
|
|
|
7
7
|
import csv
|
|
8
|
-
from collections.abc import Iterable
|
|
8
|
+
from collections.abc import Callable, Iterable
|
|
9
9
|
from pathlib import Path
|
|
10
10
|
|
|
11
11
|
|
|
@@ -15,9 +15,18 @@ def write_csv(
|
|
|
15
15
|
rows: Iterable[dict[str, str]],
|
|
16
16
|
*,
|
|
17
17
|
delimiter: str = ",",
|
|
18
|
+
total: int = 0,
|
|
19
|
+
on_rows: Callable[[int], None] | None = None,
|
|
18
20
|
) -> int:
|
|
19
|
-
"""Write a staged CSV using stable UTF-8/LF and strict field names.
|
|
21
|
+
"""Write a staged CSV using stable UTF-8/LF and strict field names.
|
|
22
|
+
|
|
23
|
+
`on_rows` receives the rows written, at 0, about 200 times for `total`
|
|
24
|
+
expected rows, and at the end.
|
|
25
|
+
"""
|
|
20
26
|
count = 0
|
|
27
|
+
report_every = max(1, total // 200)
|
|
28
|
+
if on_rows is not None:
|
|
29
|
+
on_rows(0)
|
|
21
30
|
with path.open("w", encoding="utf-8", newline="") as stream:
|
|
22
31
|
writer = csv.DictWriter(
|
|
23
32
|
stream,
|
|
@@ -30,5 +39,9 @@ def write_csv(
|
|
|
30
39
|
for row in rows:
|
|
31
40
|
writer.writerow(row)
|
|
32
41
|
count += 1
|
|
42
|
+
if on_rows is not None and count % report_every == 0:
|
|
43
|
+
on_rows(count)
|
|
33
44
|
stream.flush()
|
|
45
|
+
if on_rows is not None:
|
|
46
|
+
on_rows(count)
|
|
34
47
|
return count
|
|
@@ -588,13 +588,8 @@ def _publish_artifacts(
|
|
|
588
588
|
writer: Callable[[GenerateArtifact, Path], None],
|
|
589
589
|
anomaly_counts: dict[str, int] | None = None,
|
|
590
590
|
batch_writer: Callable[[dict[Path, Path]], None] | None = None,
|
|
591
|
-
on_artifact: Callable[[str, int, int], None] | None = None,
|
|
592
591
|
) -> GenerateResult:
|
|
593
|
-
"""Stage all files then replace finals, restoring earlier files on failure.
|
|
594
|
-
|
|
595
|
-
`on_artifact` is told the name and place of each file before it is staged,
|
|
596
|
-
when the files are written one by one (no `batch_writer`).
|
|
597
|
-
"""
|
|
592
|
+
"""Stage all files then replace finals, restoring earlier files on failure."""
|
|
598
593
|
if isinstance(plan, ComputerPlan):
|
|
599
594
|
source = plan.package.root / "dataset.yaml"
|
|
600
595
|
sources = set(plan.package.input_paths)
|
|
@@ -616,11 +611,9 @@ def _publish_artifacts(
|
|
|
616
611
|
preserve_backups = False
|
|
617
612
|
publishing = False
|
|
618
613
|
try:
|
|
619
|
-
for
|
|
614
|
+
for artifact in plan.artifacts:
|
|
620
615
|
target = artifact.path
|
|
621
616
|
target.parent.mkdir(parents=True, exist_ok=True)
|
|
622
|
-
if on_artifact is not None and batch_writer is None:
|
|
623
|
-
on_artifact(target.name, position, len(plan.artifacts))
|
|
624
617
|
descriptor, name = tempfile.mkstemp(dir=target.parent, prefix=f".{target.name}.", suffix=".tmp")
|
|
625
618
|
os.close(descriptor)
|
|
626
619
|
stage = Path(name)
|
|
@@ -696,8 +689,8 @@ def generate_datasets(plan: GeneratePlan | ComputerPlan,
|
|
|
696
689
|
on_progress: GenerateProgressCallback | None = None) -> GenerateResult:
|
|
697
690
|
"""Generate clean datasets, shared entities and ordered combines.
|
|
698
691
|
|
|
699
|
-
`on_progress` is called with the stage, the work done and the work to do
|
|
700
|
-
rows
|
|
692
|
+
`on_progress` is called with the stage, the work done and the work to do,
|
|
693
|
+
in rows: generated, written or altered. The result carries the
|
|
701
694
|
total time and, for Computer, its split.
|
|
702
695
|
"""
|
|
703
696
|
started = time.perf_counter()
|
|
@@ -876,6 +869,8 @@ def _generate(plan: GeneratePlan | ComputerPlan,
|
|
|
876
869
|
staged_clean[artifact.dataset_id], stage, journal,
|
|
877
870
|
dataset=artifact.dataset_id, profile=profiles[plan.anomaly_profile],
|
|
878
871
|
seed=plan.seed, count=plan.rows[artifact.dataset_id], delimiter=delimiter,
|
|
872
|
+
on_row=partial(_report_stage, report, f"Injecting errors in {artifact.path.name}",
|
|
873
|
+
plan.rows[artifact.dataset_id]),
|
|
879
874
|
)
|
|
880
875
|
summary.update({
|
|
881
876
|
"definition_id": plan.definition.id,
|
|
@@ -914,17 +909,16 @@ def _generate(plan: GeneratePlan | ComputerPlan,
|
|
|
914
909
|
source=dataset.get("source"),
|
|
915
910
|
insurance_provider=insurance,
|
|
916
911
|
)
|
|
912
|
+
total = plan.rows[artifact.dataset_id]
|
|
917
913
|
count = write_csv(
|
|
918
|
-
stage, headers, rows, delimiter=delimiter,
|
|
914
|
+
stage, headers, rows, delimiter=delimiter, total=total,
|
|
915
|
+
on_rows=partial(_report_stage, report, f"Writing {artifact.path.name}", total),
|
|
919
916
|
)
|
|
920
917
|
if count != plan.rows[artifact.dataset_id]:
|
|
921
918
|
raise ReportError(f"Generated row count differs for {artifact.dataset_id}")
|
|
922
919
|
staged_clean[artifact.dataset_id] = stage
|
|
923
920
|
try:
|
|
924
|
-
return _publish_artifacts(
|
|
925
|
-
plan, writer, anomaly_counts,
|
|
926
|
-
on_artifact=lambda name, done, total: report(f"Writing {name}", done, total),
|
|
927
|
-
)
|
|
921
|
+
return _publish_artifacts(plan, writer, anomaly_counts)
|
|
928
922
|
finally:
|
|
929
923
|
for journal in staged_changes.values():
|
|
930
924
|
journal.unlink(missing_ok=True)
|
|
@@ -34,6 +34,7 @@ class SampleMethod(StrEnum):
|
|
|
34
34
|
FIRST = "first"
|
|
35
35
|
LAST = "last"
|
|
36
36
|
RANDOM = "random"
|
|
37
|
+
MIXED = "mixed"
|
|
37
38
|
STRATIFIED = "stratified"
|
|
38
39
|
STRATIFIED_BALANCED = "stratified-balanced"
|
|
39
40
|
SMART = "smart"
|
|
@@ -85,6 +86,9 @@ class SampleResult:
|
|
|
85
86
|
# that have more rows than it (so that were drawn from, not kept whole).
|
|
86
87
|
per_value: int | None = None
|
|
87
88
|
strata_capped: int | None = None
|
|
89
|
+
# ``mixed`` only: the rows kept as (first, random, last), after the rows
|
|
90
|
+
# that the three parts would share were given to one part only.
|
|
91
|
+
parts: tuple[int, int, int] | None = None
|
|
88
92
|
# A smart sample writes a report beside its CSV file and sums it up here.
|
|
89
93
|
report: Path | None = None
|
|
90
94
|
page: Path | None = None
|
|
@@ -258,6 +262,43 @@ def _select_rows(
|
|
|
258
262
|
return [row for _, row in selected]
|
|
259
263
|
|
|
260
264
|
|
|
265
|
+
def _mixed_parts(row_count: int, first: int, random_rows: int, last: int) -> tuple[int, int, int]:
|
|
266
|
+
"""The rows kept at the start, drawn at random and kept at the end.
|
|
267
|
+
|
|
268
|
+
The start and the end are served first and never overlap: when they ask for
|
|
269
|
+
more than the file holds, the end keeps what the start left. The random rows
|
|
270
|
+
come from the rows between them, so they never repeat one of the two ends;
|
|
271
|
+
they are capped to what is left.
|
|
272
|
+
"""
|
|
273
|
+
head = min(first, row_count)
|
|
274
|
+
tail = min(last, row_count - head)
|
|
275
|
+
return head, min(random_rows, row_count - head - tail), tail
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
def _select_mixed(
|
|
279
|
+
source: Path,
|
|
280
|
+
config: CsvConfig,
|
|
281
|
+
parts: tuple[int, int, int],
|
|
282
|
+
row_count: int,
|
|
283
|
+
seed: int | None,
|
|
284
|
+
) -> list[list[str]]:
|
|
285
|
+
"""Read the file once and keep the first, random and last rows, in file order."""
|
|
286
|
+
head, drawn, tail = parts
|
|
287
|
+
pool_start, pool_end = head, row_count - tail
|
|
288
|
+
rng = random.Random(seed)
|
|
289
|
+
selected: list[tuple[int, list[str]]] = []
|
|
290
|
+
reservoir: list[tuple[int, list[str]]] = []
|
|
291
|
+
with open_records(source, config) as reader:
|
|
292
|
+
for index, row in enumerate(reader):
|
|
293
|
+
if index < pool_start or index >= pool_end:
|
|
294
|
+
selected.append((index, row))
|
|
295
|
+
else:
|
|
296
|
+
_reservoir_add(reservoir, (index, row), index - pool_start + 1, drawn, rng)
|
|
297
|
+
selected.extend(reservoir)
|
|
298
|
+
selected.sort(key=lambda item: item[0])
|
|
299
|
+
return [row for _, row in selected]
|
|
300
|
+
|
|
301
|
+
|
|
261
302
|
@dataclass(frozen=True)
|
|
262
303
|
class _BalancedSelection:
|
|
263
304
|
headers: list[str]
|
|
@@ -366,6 +407,9 @@ def validate_sample_options(
|
|
|
366
407
|
field: str | Sequence[str] | None,
|
|
367
408
|
max_strata: int = DEFAULT_MAX_STRATA,
|
|
368
409
|
per_value: int | None = None,
|
|
410
|
+
first_rows: int | None = None,
|
|
411
|
+
random_rows: int | None = None,
|
|
412
|
+
last_rows: int | None = None,
|
|
369
413
|
) -> SampleMethod:
|
|
370
414
|
"""Validate options shared by single-file and batch adapters."""
|
|
371
415
|
|
|
@@ -384,6 +428,27 @@ def validate_sample_options(
|
|
|
384
428
|
)
|
|
385
429
|
if max_strata < 1:
|
|
386
430
|
raise InputError("--max-strata must be at least 1.")
|
|
431
|
+
counts = {"--first-rows": first_rows, "--random-rows": random_rows, "--last-rows": last_rows}
|
|
432
|
+
if selected_method is SampleMethod.MIXED:
|
|
433
|
+
if rows is not None or percent is not None:
|
|
434
|
+
raise InputError(
|
|
435
|
+
"--rows and --percent do not go with mixed: give --first-rows, "
|
|
436
|
+
"--random-rows and --last-rows."
|
|
437
|
+
)
|
|
438
|
+
if per_value is not None:
|
|
439
|
+
raise InputError("--per-value can only be used with the stratified-balanced method.")
|
|
440
|
+
for name, value in counts.items():
|
|
441
|
+
if value is not None and (isinstance(value, bool) or not isinstance(value, int) or value < 0):
|
|
442
|
+
raise InputError(f"{name} must be a whole number, 0 or more.")
|
|
443
|
+
if not any(counts.values()):
|
|
444
|
+
raise InputError(
|
|
445
|
+
"The mixed method needs at least one of --first-rows, --random-rows "
|
|
446
|
+
"and --last-rows greater than 0."
|
|
447
|
+
)
|
|
448
|
+
return selected_method
|
|
449
|
+
for name, value in counts.items():
|
|
450
|
+
if value is not None:
|
|
451
|
+
raise InputError(f"{name} can only be used with the mixed method.")
|
|
387
452
|
if selected_method is SampleMethod.STRATIFIED_BALANCED:
|
|
388
453
|
if rows is not None or percent is not None:
|
|
389
454
|
raise InputError(
|
|
@@ -415,9 +480,17 @@ def sample_csv(
|
|
|
415
480
|
force: bool = False,
|
|
416
481
|
max_strata: int = DEFAULT_MAX_STRATA,
|
|
417
482
|
per_value: int | None = None,
|
|
483
|
+
first_rows: int | None = None,
|
|
484
|
+
random_rows: int | None = None,
|
|
485
|
+
last_rows: int | None = None,
|
|
418
486
|
) -> SampleResult:
|
|
419
487
|
"""Create a bounded-memory sample of a CSV file.
|
|
420
488
|
|
|
489
|
+
A ``mixed`` sample keeps ``first_rows`` rows from the start, ``last_rows``
|
|
490
|
+
from the end and ``random_rows`` drawn among the others, so no row is kept
|
|
491
|
+
twice. When the three ask for more than the file holds, it keeps every row
|
|
492
|
+
once (the end takes what the start left, the random part what is left of both).
|
|
493
|
+
|
|
421
494
|
A ``stratified`` sample allocates its ``rows`` to the strata in proportion
|
|
422
495
|
to their size, with at least one row of each: when ``rows`` is under the
|
|
423
496
|
number of strata it stops with an ``InputError`` instead of dropping some.
|
|
@@ -436,6 +509,9 @@ def sample_csv(
|
|
|
436
509
|
field=field,
|
|
437
510
|
max_strata=max_strata,
|
|
438
511
|
per_value=per_value,
|
|
512
|
+
first_rows=first_rows,
|
|
513
|
+
random_rows=random_rows,
|
|
514
|
+
last_rows=last_rows,
|
|
439
515
|
)
|
|
440
516
|
if selected_method is SampleMethod.SMART:
|
|
441
517
|
raise InputError(
|
|
@@ -479,6 +555,23 @@ def sample_csv(
|
|
|
479
555
|
strata_capped=balanced.capped,
|
|
480
556
|
)
|
|
481
557
|
scan = _scan(source_path, config, fields, max_strata)
|
|
558
|
+
if selected_method is SampleMethod.MIXED:
|
|
559
|
+
parts = _mixed_parts(scan.row_count, first_rows or 0, random_rows or 0, last_rows or 0)
|
|
560
|
+
selected = _select_mixed(source_path, config, parts, scan.row_count, seed)
|
|
561
|
+
write_sample_csv(output_path, scan.headers, selected, source_path, config)
|
|
562
|
+
return SampleResult(
|
|
563
|
+
source=source_path,
|
|
564
|
+
output=output_path,
|
|
565
|
+
method=selected_method,
|
|
566
|
+
source_rows=scan.row_count,
|
|
567
|
+
sample_rows=len(selected),
|
|
568
|
+
sample_rate=(len(selected) / scan.row_count * 100) if scan.row_count else 0.0,
|
|
569
|
+
field=None,
|
|
570
|
+
seed=seed,
|
|
571
|
+
encoding=config.encoding,
|
|
572
|
+
delimiter=config.delimiter,
|
|
573
|
+
parts=parts,
|
|
574
|
+
)
|
|
482
575
|
size = _sample_size(scan.row_count, rows, percent)
|
|
483
576
|
stratified = selected_method is SampleMethod.STRATIFIED
|
|
484
577
|
if stratified:
|
|
@@ -158,6 +158,9 @@ def generate_samples(
|
|
|
158
158
|
force: bool = False,
|
|
159
159
|
max_strata: int | None = None,
|
|
160
160
|
per_value: int | None = None,
|
|
161
|
+
first_rows: int | None = None,
|
|
162
|
+
random_rows: int | None = None,
|
|
163
|
+
last_rows: int | None = None,
|
|
161
164
|
confirmed: bool = False,
|
|
162
165
|
html: bool = True,
|
|
163
166
|
on_progress: ProgressCallback | None = None,
|
|
@@ -180,6 +183,9 @@ def generate_samples(
|
|
|
180
183
|
field=field,
|
|
181
184
|
max_strata=max_strata,
|
|
182
185
|
per_value=per_value,
|
|
186
|
+
first_rows=first_rows,
|
|
187
|
+
random_rows=random_rows,
|
|
188
|
+
last_rows=last_rows,
|
|
183
189
|
)
|
|
184
190
|
if selected_method is SampleMethod.SMART:
|
|
185
191
|
from tabalyst.smart_service import execute_smart_samples, prepare_smart_samples
|
|
@@ -232,6 +238,9 @@ def generate_samples(
|
|
|
232
238
|
force=force,
|
|
233
239
|
max_strata=max_strata,
|
|
234
240
|
per_value=per_value,
|
|
241
|
+
first_rows=first_rows,
|
|
242
|
+
random_rows=random_rows,
|
|
243
|
+
last_rows=last_rows,
|
|
235
244
|
)
|
|
236
245
|
except TabalystError as exc:
|
|
237
246
|
failures.append(SampleFailure(job=job, error=exc))
|
|
@@ -627,15 +627,17 @@ def test_progress_is_optional_and_a_clean_run_reports_no_error_time(tmp_path: Pa
|
|
|
627
627
|
assert result.seconds >= result.timings["rows"]
|
|
628
628
|
|
|
629
629
|
|
|
630
|
-
def
|
|
631
|
-
"""CRM
|
|
630
|
+
def test_other_packages_report_rows_written_per_file_and_only_the_total_time(tmp_path: Path) -> None:
|
|
631
|
+
"""CRM reports the rows of the file it writes; its result has no phase split."""
|
|
632
632
|
events: list[GenerateProgress] = []
|
|
633
633
|
result = generate_datasets(
|
|
634
634
|
build_generate_plan(example="crm", output=tmp_path / "crm.csv", rows=30),
|
|
635
635
|
on_progress=events.append,
|
|
636
636
|
)
|
|
637
|
-
|
|
638
|
-
|
|
637
|
+
steps = [(event.stage, event.done, event.total) for event in events]
|
|
638
|
+
assert steps[0] == ("Writing crm.csv", 0, 30)
|
|
639
|
+
assert steps[-1] == ("Writing crm.csv", 30, 30)
|
|
640
|
+
assert [done for _, done, _ in steps] == sorted(done for _, done, _ in steps)
|
|
639
641
|
assert result.seconds > 0 and result.timings == {}
|
|
640
642
|
|
|
641
643
|
|
|
@@ -457,3 +457,80 @@ def test_a_multiline_cell_is_one_record_and_a_delimiter_option_is_honored(tmp_pa
|
|
|
457
457
|
def _read_csv_with(path, delimiter):
|
|
458
458
|
with path.open("r", encoding="utf-8-sig", newline="") as stream:
|
|
459
459
|
return list(csv.reader(stream, delimiter=delimiter))
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
def _mixed_ids(out):
|
|
463
|
+
return [int(row[0]) for row in _read_csv(out)[1:]]
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def test_mixed_keeps_first_random_and_last_rows_without_repeats(source, tmp_path):
|
|
467
|
+
out = tmp_path / "mixed.csv"
|
|
468
|
+
result = tabalyst.sample_csv(
|
|
469
|
+
source, method="mixed", first_rows=5, random_rows=10, last_rows=3,
|
|
470
|
+
seed=7, output=out,
|
|
471
|
+
)
|
|
472
|
+
ids = _mixed_ids(out)
|
|
473
|
+
assert ids == sorted(ids) and len(set(ids)) == 18
|
|
474
|
+
assert set(range(5)) <= set(ids) and {97, 98, 99} <= set(ids)
|
|
475
|
+
assert result.parts == (5, 10, 3) and result.sample_rows == 18
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
def test_mixed_is_reproducible_with_a_seed(source, tmp_path):
|
|
479
|
+
kwargs = {"method": "mixed", "first_rows": 2, "random_rows": 20, "last_rows": 2, "seed": 3}
|
|
480
|
+
tabalyst.sample_csv(source, output=tmp_path / "a.csv", **kwargs)
|
|
481
|
+
tabalyst.sample_csv(source, output=tmp_path / "b.csv", **kwargs)
|
|
482
|
+
assert _mixed_ids(tmp_path / "a.csv") == _mixed_ids(tmp_path / "b.csv")
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
def test_mixed_returns_each_row_once_when_the_ends_ask_for_more_than_the_file(source, tmp_path):
|
|
486
|
+
out = tmp_path / "all.csv"
|
|
487
|
+
result = tabalyst.sample_csv(
|
|
488
|
+
source, method="mixed", first_rows=75, random_rows=5, last_rows=75, output=out,
|
|
489
|
+
)
|
|
490
|
+
assert _mixed_ids(out) == list(range(100))
|
|
491
|
+
assert result.parts == (75, 0, 25)
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
def test_mixed_caps_random_rows_to_the_rows_left(source, tmp_path):
|
|
495
|
+
out = tmp_path / "capped.csv"
|
|
496
|
+
tabalyst.sample_csv(
|
|
497
|
+
source, method="mixed", first_rows=40, random_rows=500, last_rows=40, output=out,
|
|
498
|
+
)
|
|
499
|
+
assert _mixed_ids(out) == list(range(100))
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
@pytest.mark.parametrize(
|
|
503
|
+
("first", "drawn", "last", "expected"),
|
|
504
|
+
[(3, 0, 0, [0, 1, 2]), (0, 0, 2, [98, 99]), (0, 4, 0, 4)],
|
|
505
|
+
)
|
|
506
|
+
def test_mixed_accepts_zero_for_any_part(source, tmp_path, first, drawn, last, expected):
|
|
507
|
+
out = tmp_path / "part.csv"
|
|
508
|
+
tabalyst.sample_csv(
|
|
509
|
+
source, method="mixed", first_rows=first, random_rows=drawn, last_rows=last,
|
|
510
|
+
seed=1, output=out,
|
|
511
|
+
)
|
|
512
|
+
ids = _mixed_ids(out)
|
|
513
|
+
assert ids == expected if isinstance(expected, list) else len(ids) == expected
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
def test_mixed_needs_one_part_and_refuses_rows(source, tmp_path):
|
|
517
|
+
with pytest.raises(InputError, match="at least one"):
|
|
518
|
+
tabalyst.sample_csv(source, method="mixed", first_rows=0, output=tmp_path / "x.csv")
|
|
519
|
+
with pytest.raises(InputError, match="do not go with mixed"):
|
|
520
|
+
tabalyst.sample_csv(source, method="mixed", rows=5, first_rows=1, output=tmp_path / "x.csv")
|
|
521
|
+
with pytest.raises(InputError, match="only be used with the mixed"):
|
|
522
|
+
tabalyst.sample_csv(source, method="first", rows=5, last_rows=1, output=tmp_path / "x.csv")
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
def test_mixed_cli_prints_the_parts_and_rejects_a_useless_seed(source, tmp_path):
|
|
526
|
+
out = tmp_path / "cli.csv"
|
|
527
|
+
ok = runner.invoke(app, [
|
|
528
|
+
"sample", str(source), "--sample-method", "mixed", "--first-rows", "2",
|
|
529
|
+
"--random-rows", "3", "--last-rows", "2", "-o", str(out),
|
|
530
|
+
])
|
|
531
|
+
assert ok.exit_code == 0 and "2 first, 3 random, 2 last" in ok.output
|
|
532
|
+
bad = runner.invoke(app, [
|
|
533
|
+
"sample", str(source), "--sample-method", "mixed", "--first-rows", "2",
|
|
534
|
+
"--seed", "1", "-o", str(tmp_path / "bad.csv"),
|
|
535
|
+
])
|
|
536
|
+
assert bad.exit_code != 0
|
|
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
|