tango-python 1.18.0__tar.gz → 1.18.2__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.
- {tango_python-1.18.0 → tango_python-1.18.2}/CHANGELOG.md +12 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/PKG-INFO +1 -1
- {tango_python-1.18.0 → tango_python-1.18.2}/pyproject.toml +1 -1
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/__init__.py +1 -1
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/client.py +31 -1
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/exceptions.py +10 -4
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_client.py +73 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/.gitignore +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/LICENSE +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/README.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/docs/API_REFERENCE.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/docs/CLIENT.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/docs/DYNAMIC_MODELS.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/docs/ERRORS.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/docs/PAGINATION.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/docs/SHAPES.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/docs/WEBHOOKS.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/README.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/check_filter_shape_conformance.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/check_shape_coverage.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/fetch_api_schema.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/generate_schemas_from_api.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/generate_shape_overlay.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/pr_review.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/probe_shape_types.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/refresh_contract.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/smoke_api_parity.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/scripts/test_production.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/models.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/shapes/__init__.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/shapes/explicit_schemas.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/shapes/factory.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/shapes/generated_overlay.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/shapes/generator.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/shapes/models.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/shapes/parser.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/shapes/schema.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/shapes/types.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/webhooks/__init__.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/webhooks/cli.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/webhooks/receiver.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/webhooks/signing.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tango/webhooks/simulate.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/__init__.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestAgenciesIntegration.test_get_agency +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestAgenciesIntegration.test_list_agencies +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestBusinessTypesIntegration.test_business_type_field_type_validation +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestBusinessTypesIntegration.test_business_type_parsing_consistency +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestBusinessTypesIntegration.test_list_business_types +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_combined_filters_work_together +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_contract_cursor_pagination +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_contract_data_object_parsing +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_contract_field_types +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_filter_parameter_mappings[keyword-software] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_filter_parameter_mappings[psc_code-R425] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_list_contracts_with_awarding_agency_filter +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_list_contracts_with_date_range_filter +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_list_contracts_with_flat +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_list_contracts_with_naics_code_filter +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_list_contracts_with_shapes[custom-key,piid,recipient(display_name),total_contract_value,award_date] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_list_contracts_with_shapes[default-None] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_list_contracts_with_shapes[detailed-key,piid,award_date,description,total_contract_value,obligated,fiscal_year,set_aside,recipient(display_name,uei),awarding_office(-),place_of_performa...ce114a3c47e2037aaa3c15d00b7031bd +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_list_contracts_with_shapes[minimal-key,piid,award_date,recipient(display_name),description,total_contract_value] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_new_expiring_filters +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_new_fiscal_year_range_filters +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_new_identifier_filters +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_search_contracts_with_filters +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_search_filters_object_with_new_parameters +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_sort_and_order_mapped_to_ordering[asc-] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestContractsIntegration.test_sort_and_order_mapped_to_ordering[desc--] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_api_schema_stability_detection_contracts +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_api_schema_stability_detection_entities +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_date_field_parsing_edge_cases +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_decimal_field_parsing_edge_cases +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_empty_list_responses +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_entity_parsing_with_various_address_formats +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_flattened_responses_with_flat_lists +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_list_field_parsing_consistency +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_parsing_nested_objects_with_missing_data +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_parsing_null_missing_fields_in_contracts +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEdgeCasesIntegration.test_parsing_with_minimal_shape_sparse_data +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_entity_field_types +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_entity_location_parsing +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_entity_parsing_with_business_types +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_entity_with_various_identifiers +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_get_entity_budget_flows +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_get_entity_by_uei +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_list_entities_with_flat +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_list_entities_with_search +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_list_entities_with_shapes[comprehensive-uei,legal_business_name,dba_name,cage_code,business_types,primary_naics,naics_codes,psc_codes,email_address,entity_url,description,capabilities,ke...1603a7d52e211cf2b3bc7d32080238aa +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_list_entities_with_shapes[custom-uei,legal_business_name,cage_code] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_list_entities_with_shapes[minimal-uei,legal_business_name,cage_code,business_types] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestEntitiesIntegration.test_list_entities_with_shapes[with_address-uei,legal_business_name,cage_code,business_types,physical_address] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestForecastsIntegration.test_forecast_field_types +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestForecastsIntegration.test_list_forecasts_with_shapes[custom-id,title,anticipated_award_date] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestForecastsIntegration.test_list_forecasts_with_shapes[default-None] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestForecastsIntegration.test_list_forecasts_with_shapes[detailed-id,source_system,external_id,title,description,anticipated_award_date,fiscal_year,naics_code,status,is_active] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestForecastsIntegration.test_list_forecasts_with_shapes[minimal-id,title,anticipated_award_date,fiscal_year,naics_code,status] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestGrantsIntegration.test_grant_field_types +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestGrantsIntegration.test_grant_pagination +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestGrantsIntegration.test_list_grants_with_shapes[custom-grant_id,title,opportunity_number] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestGrantsIntegration.test_list_grants_with_shapes[default-None] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestGrantsIntegration.test_list_grants_with_shapes[detailed-grant_id,opportunity_number,title,status(-),agency_code,description,last_updated,cfda_numbers(number,title),applicant_types(-),funding_categories(-)] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestGrantsIntegration.test_list_grants_with_shapes[minimal-grant_id,opportunity_number,title,status(-),agency_code] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestIDVsIntegration.test_get_idv_uses_default_shape +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestIDVsIntegration.test_list_idv_awards_uses_default_shape +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestIDVsIntegration.test_list_idv_child_idvs_uses_default_shape +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestIDVsIntegration.test_list_idv_transactions +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestIDVsIntegration.test_list_idvs_uses_default_shape_and_keyset_params +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_filter_by_agency_code +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_filter_by_agency_name_text +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_filter_by_cio_rating +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_filter_by_cio_rating_max +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_filter_by_performance_risk +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_filter_by_type_of_investment +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_filter_by_updated_time_range +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_funding_and_cio_evaluation_expansions +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_get_itdashboard_investment_by_uii +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_itdashboard_pagination +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_list_itdashboard_investments_with_search +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_list_itdashboard_investments_with_shapes[custom-uii,agency_name,investment_title,updated_time] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_list_itdashboard_investments_with_shapes[default-None] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestITDashboardIntegration.test_list_itdashboard_investments_with_shapes[minimal-uii,agency_name,bureau_name,investment_title,type_of_investment,part_of_it_portfolio,updated_time,url] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestNaicsIntegration.test_list_naics +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestNoticesIntegration.test_list_notices_with_shapes[custom-notice_id,title,solicitation_number] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestNoticesIntegration.test_list_notices_with_shapes[default-None] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestNoticesIntegration.test_list_notices_with_shapes[detailed-notice_id,title,description,solicitation_number,posted_date,naics_code,set_aside,office(-),place_of_performance(-)] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestNoticesIntegration.test_list_notices_with_shapes[minimal-notice_id,title,solicitation_number,posted_date] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestNoticesIntegration.test_notice_field_types +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestNoticesIntegration.test_notice_pagination +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestNoticesIntegration.test_notice_with_meta_fields +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOTAsIntegration.test_get_ota +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOTAsIntegration.test_list_otas +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOTIDVsIntegration.test_get_otidv +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOTIDVsIntegration.test_list_otidvs +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOfficesIntegration.test_get_office +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOfficesIntegration.test_list_offices +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOpportunitiesIntegration.test_list_opportunities_with_shapes[custom-opportunity_id,title,solicitation_number] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOpportunitiesIntegration.test_list_opportunities_with_shapes[default-None] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOpportunitiesIntegration.test_list_opportunities_with_shapes[detailed-opportunity_id,title,description,solicitation_number,response_deadline,first_notice_date,last_notice_date,active,naics_code,psc_code,set_asid...23b6b4502ddd665b7184afcff6c6d8d9 +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOpportunitiesIntegration.test_list_opportunities_with_shapes[minimal-opportunity_id,title,solicitation_number,response_deadline,active] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOpportunitiesIntegration.test_opportunity_field_types +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOrganizationsIntegration.test_get_organization +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOrganizationsIntegration.test_list_organizations +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestProtestsIntegration.test_get_protest_by_case_id +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestProtestsIntegration.test_list_protests_with_filter +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestProtestsIntegration.test_list_protests_with_shapes[custom-case_id,title,source_system,outcome] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestProtestsIntegration.test_list_protests_with_shapes[default-None] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestProtestsIntegration.test_list_protests_with_shapes[minimal-case_id,case_number,title,source_system,outcome,filed_date] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestProtestsIntegration.test_list_protests_with_shapes[with_dockets-case_id,case_number,title,outcome,filed_date,dockets(docket_number,filed_date,outcome)] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestProtestsIntegration.test_protest_pagination +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestSubawardsIntegration.test_list_subawards +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestTypeHintsIntegration.test_contracts_dict_access[custom-key,piid,description] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestTypeHintsIntegration.test_contracts_dict_access[minimal-key,piid,award_date,recipient(display_name),description,total_contract_value] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestTypeHintsIntegration.test_contracts_dict_access[ultra_minimal-key,piid,recipient(display_name),total_contract_value] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestTypeHintsIntegration.test_entities_dict_access[minimal-uei,legal_business_name,cage_code,business_types] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestTypeHintsIntegration.test_entities_dict_access[with_address-uei,legal_business_name,cage_code,business_types,physical_address] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestTypeHintsIntegration.test_notices_dict_access[detailed-notice_id,title,description,solicitation_number,posted_date,naics_code,set_aside,office(-),place_of_performance(-)] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestTypeHintsIntegration.test_notices_dict_access[minimal-notice_id,title,solicitation_number,posted_date] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestTypeHintsIntegration.test_opportunities_dict_access[detailed-opportunity_id,title,description,solicitation_number,response_deadline,first_notice_date,last_notice_date,active,naics_code,psc_code,set_aside,sam_url,office(-),place_of_performance(-)] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestTypeHintsIntegration.test_opportunities_dict_access[minimal-opportunity_id,title,solicitation_number,response_deadline,active] +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestVehiclesIntegration.test_get_vehicle_supports_joiner_and_flat_lists +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestVehiclesIntegration.test_get_vehicle_with_metrics_expansion +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestVehiclesIntegration.test_list_vehicle_awardees_uses_default_shape +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestVehiclesIntegration.test_list_vehicle_orders_uses_default_shape +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestVehiclesIntegration.test_list_vehicles_uses_default_shape_and_search +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestVehiclesIntegration.test_list_vehicles_with_ordering +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/conftest.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/README.md +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/__init__.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/conftest.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_agencies_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_contracts_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_edge_cases_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_entities_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_forecasts_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_grants_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_itdashboard_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_naics_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_notices_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_offices_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_opportunities_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_organizations_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_otas_otidvs_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_protests_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_reference_data_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_subawards_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_vehicles_idvs_integration.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/validation.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/production/__init__.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/production/conftest.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/production/test_production_smoke.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_api_parity.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_contract_appeals.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_dibbs_exclusions_sbir.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_ebuy.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_federal_register.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_models.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_obligations_by_fiscal_year.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_opportunity_attachments.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_opportunity_awards.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_organization_scope.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_shape_coverage_gate.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_shapes.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_sled.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_webhooks_cli.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_webhooks_receiver.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_webhooks_signing.py +0 -0
- {tango_python-1.18.0 → tango_python-1.18.2}/tests/test_webhooks_simulate.py +0 -0
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.18.2] - 2026-10-19
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **`TangoRateLimitError.limit_type` no longer reports a daily lockout as `burst`.** It matched "minute" anywhere in the API's detail, and a daily 429 reads `Rate limit exceeded for daily. Please try again in 16 hours, 58 minutes.`, so callers were told to retry a burst limit they could not clear until midnight UTC. It now reads the rate's name from `exceeded for <name>` and checks for daily first.
|
|
15
|
+
|
|
16
|
+
## [1.18.1] - 2026-10-19
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **API errors now carry the server's reason.** A 403 or other non-2xx response the SDK had no dedicated exception for raised `TangoAPIError("API request failed with status 403")` and threw the response body away, so a caller refused for a G2X-only shape field or a plan-gated filter couldn't tell why. The message now ends with the API's own explanation (`API request failed with status 403: G2X shape fields are not allowed for your account.`), and the parsed body is on `response_data`. Non-JSON bodies, such as a proxy's 502 page, keep the old message.
|
|
21
|
+
|
|
10
22
|
## [1.18.0] - 2026-10-19
|
|
11
23
|
|
|
12
24
|
### Added
|
|
@@ -75,6 +75,31 @@ from tango.shapes import (
|
|
|
75
75
|
_COUNT_TYPE_KEY = "_tango_count_type"
|
|
76
76
|
|
|
77
77
|
|
|
78
|
+
def _error_body(response: httpx.Response) -> dict[str, Any]:
|
|
79
|
+
"""The JSON object an error response carries, or {} for an empty, non-JSON (a proxy's HTML page) or non-object body."""
|
|
80
|
+
try:
|
|
81
|
+
data = response.json() if response.content else {}
|
|
82
|
+
except ValueError:
|
|
83
|
+
return {}
|
|
84
|
+
return data if isinstance(data, dict) else {}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def _error_reason(error_data: dict[str, Any]) -> str | None:
|
|
88
|
+
"""The server's own explanation from an error body, e.g. why a 403 refused the request.
|
|
89
|
+
|
|
90
|
+
The API sends either ``{"detail": "..."}`` or a structured body such as a tier gate's ``{"error": "...", "code": "tier_required", ...}``, sometimes nested under ``detail``.
|
|
91
|
+
"""
|
|
92
|
+
for body in (error_data, error_data.get("detail")):
|
|
93
|
+
if isinstance(body, str) and body:
|
|
94
|
+
return body
|
|
95
|
+
if isinstance(body, dict):
|
|
96
|
+
for key in ("error", "message", "detail"):
|
|
97
|
+
value = body.get(key)
|
|
98
|
+
if isinstance(value, str) and value:
|
|
99
|
+
return value
|
|
100
|
+
return None
|
|
101
|
+
|
|
102
|
+
|
|
78
103
|
class TangoClient:
|
|
79
104
|
"""Tango API Client"""
|
|
80
105
|
|
|
@@ -232,8 +257,13 @@ class TangoClient:
|
|
|
232
257
|
detail = error_data.get("detail", "Rate limit exceeded")
|
|
233
258
|
raise TangoRateLimitError(detail, response.status_code, error_data)
|
|
234
259
|
elif not response.is_success:
|
|
260
|
+
error_data = _error_body(response)
|
|
261
|
+
reason = _error_reason(error_data)
|
|
262
|
+
message = f"API request failed with status {response.status_code}"
|
|
235
263
|
raise TangoAPIError(
|
|
236
|
-
f"
|
|
264
|
+
f"{message}: {reason}" if reason else message,
|
|
265
|
+
response.status_code,
|
|
266
|
+
error_data,
|
|
237
267
|
)
|
|
238
268
|
|
|
239
269
|
def _get(self, endpoint: str, params: dict[str, Any] | None = None) -> dict[str, Any]:
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"""Tango API exceptions"""
|
|
2
2
|
|
|
3
|
+
import re
|
|
3
4
|
from typing import Any
|
|
4
5
|
|
|
6
|
+
# The API names the tripped rate in its 429 detail: "Rate limit exceeded for daily. Please try again in 16 hours, 58 minutes."
|
|
7
|
+
_RATE_NAME = re.compile(r"exceeded for ([\w-]+)", re.IGNORECASE)
|
|
8
|
+
|
|
5
9
|
|
|
6
10
|
class TangoAPIError(Exception):
|
|
7
11
|
"""Base exception for Tango API errors"""
|
|
@@ -88,11 +92,13 @@ class TangoRateLimitError(TangoAPIError):
|
|
|
88
92
|
d = self.detail
|
|
89
93
|
if not d:
|
|
90
94
|
return None
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
if "daily" in
|
|
95
|
+
# Read the rate's name, not the whole sentence: a daily lockout's wait reads "16 hours, 58 minutes", which a match on "minute" took for burst.
|
|
96
|
+
match = _RATE_NAME.search(d)
|
|
97
|
+
text = match.group(1).lower() if match else d.lower()
|
|
98
|
+
if "daily" in text or re.search(r"\bday\b", text):
|
|
95
99
|
return "daily"
|
|
100
|
+
if "burst" in text or "minute" in text:
|
|
101
|
+
return "burst"
|
|
96
102
|
return None
|
|
97
103
|
|
|
98
104
|
|
|
@@ -1502,6 +1502,22 @@ class TestErrorHandling:
|
|
|
1502
1502
|
assert exc_info.value.limit_type == "daily"
|
|
1503
1503
|
assert exc_info.value.wait_in_seconds == 3600
|
|
1504
1504
|
|
|
1505
|
+
@pytest.mark.parametrize(
|
|
1506
|
+
("detail", "expected"),
|
|
1507
|
+
[
|
|
1508
|
+
# The API's own wording, with its waits as convert_seconds_to_human_readable_wait_time renders them.
|
|
1509
|
+
("Rate limit exceeded for daily. Please try again in 16 hours, 58 minutes.", "daily"),
|
|
1510
|
+
("Rate limit exceeded for daily. Please try again in 1 minute.", "daily"),
|
|
1511
|
+
("Rate limit exceeded for burst. Please try again in 45 seconds.", "burst"),
|
|
1512
|
+
("Rate limit exceeded for burst. Please try again in 1 minute.", "burst"),
|
|
1513
|
+
("Too many requests.", None),
|
|
1514
|
+
],
|
|
1515
|
+
)
|
|
1516
|
+
def test_limit_type_reads_the_rate_name_not_the_wait(self, detail, expected):
|
|
1517
|
+
error = TangoRateLimitError("Rate limit exceeded", 429, {"detail": detail})
|
|
1518
|
+
|
|
1519
|
+
assert error.limit_type == expected
|
|
1520
|
+
|
|
1505
1521
|
@patch("tango.client.httpx.Client.request")
|
|
1506
1522
|
def test_429_empty_body(self, mock_request):
|
|
1507
1523
|
"""Test 429 with no content body still works"""
|
|
@@ -1572,6 +1588,63 @@ class TestErrorHandling:
|
|
|
1572
1588
|
assert exc_info.value.status_code == 500
|
|
1573
1589
|
assert "500" in str(exc_info.value)
|
|
1574
1590
|
|
|
1591
|
+
@staticmethod
|
|
1592
|
+
def _error_response(status, body=None, content=b"{}"):
|
|
1593
|
+
response = Mock()
|
|
1594
|
+
response.is_success = False
|
|
1595
|
+
response.status_code = status
|
|
1596
|
+
response.content = content
|
|
1597
|
+
response.json.return_value = body
|
|
1598
|
+
return response
|
|
1599
|
+
|
|
1600
|
+
@patch("tango.client.httpx.Client.request")
|
|
1601
|
+
def test_403_carries_the_server_reason(self, mock_request):
|
|
1602
|
+
body = {"detail": "G2X shape fields are not allowed for your account."}
|
|
1603
|
+
mock_request.return_value = self._error_response(403, body)
|
|
1604
|
+
|
|
1605
|
+
with pytest.raises(TangoAPIError) as exc_info:
|
|
1606
|
+
TangoClient(api_key="test-key").list_agencies()
|
|
1607
|
+
|
|
1608
|
+
assert (
|
|
1609
|
+
str(exc_info.value)
|
|
1610
|
+
== "API request failed with status 403: G2X shape fields are not allowed for your account."
|
|
1611
|
+
)
|
|
1612
|
+
assert exc_info.value.status_code == 403
|
|
1613
|
+
assert exc_info.value.response_data == body
|
|
1614
|
+
|
|
1615
|
+
@pytest.mark.parametrize(
|
|
1616
|
+
"body",
|
|
1617
|
+
[
|
|
1618
|
+
{"error": "The 'psc' filter requires a Small plan or higher.", "code": "tier_required"},
|
|
1619
|
+
{
|
|
1620
|
+
"detail": {
|
|
1621
|
+
"error": "The 'psc' filter requires a Small plan or higher.",
|
|
1622
|
+
"code": "tier_required",
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
],
|
|
1626
|
+
)
|
|
1627
|
+
@patch("tango.client.httpx.Client.request")
|
|
1628
|
+
def test_403_tier_gate_reason_flat_or_nested(self, mock_request, body):
|
|
1629
|
+
mock_request.return_value = self._error_response(403, body)
|
|
1630
|
+
|
|
1631
|
+
with pytest.raises(
|
|
1632
|
+
TangoAPIError, match=r"status 403: The 'psc' filter requires a Small plan"
|
|
1633
|
+
):
|
|
1634
|
+
TangoClient(api_key="test-key").list_agencies()
|
|
1635
|
+
|
|
1636
|
+
@patch("tango.client.httpx.Client.request")
|
|
1637
|
+
def test_non_json_error_body_keeps_the_bare_message(self, mock_request):
|
|
1638
|
+
response = self._error_response(502, content=b"<html>Bad Gateway</html>")
|
|
1639
|
+
response.json.side_effect = ValueError("not JSON")
|
|
1640
|
+
mock_request.return_value = response
|
|
1641
|
+
|
|
1642
|
+
with pytest.raises(TangoAPIError) as exc_info:
|
|
1643
|
+
TangoClient(api_key="test-key").list_agencies()
|
|
1644
|
+
|
|
1645
|
+
assert str(exc_info.value) == "API request failed with status 502"
|
|
1646
|
+
assert exc_info.value.response_data == {}
|
|
1647
|
+
|
|
1575
1648
|
@patch("tango.client.httpx.Client.request")
|
|
1576
1649
|
def test_network_error(self, mock_request):
|
|
1577
1650
|
"""Test network errors raise TangoAPIError"""
|
|
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
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestAgenciesIntegration.test_get_agency
RENAMED
|
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
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestNaicsIntegration.test_list_naics
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOTAsIntegration.test_get_ota
RENAMED
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOTAsIntegration.test_list_otas
RENAMED
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOTIDVsIntegration.test_get_otidv
RENAMED
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOTIDVsIntegration.test_list_otidvs
RENAMED
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOfficesIntegration.test_get_office
RENAMED
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/cassettes/TestOfficesIntegration.test_list_offices
RENAMED
|
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
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_edge_cases_integration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_itdashboard_integration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_opportunities_integration.py
RENAMED
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_organizations_integration.py
RENAMED
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_otas_otidvs_integration.py
RENAMED
|
File without changes
|
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_reference_data_integration.py
RENAMED
|
File without changes
|
|
File without changes
|
{tango_python-1.18.0 → tango_python-1.18.2}/tests/integration/test_vehicles_idvs_integration.py
RENAMED
|
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
|