diff --git a/README.md b/README.md index b5d3c07..e356473 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or e This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.0.15 -- Package version: 2.0.15 +- API version: 2.0.18 +- Package version: 2.0.18 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [http://www.namsor.com/](http://www.namsor.com/) @@ -62,10 +62,12 @@ configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) source = 'source_example' # str | anonymized = True # bool | +token = 'token_example' # str | try: # Activate/deactivate anonymization for a source. - api_instance.anonymize(source, anonymized) + api_response = api_instance.anonymize(source, anonymized, token) + pprint(api_response) except ApiException as e: print("Exception when calling AdminApi->anonymize: %s\n" % e) @@ -77,7 +79,9 @@ All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AdminApi* | [**anonymize**](docs/AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. +*AdminApi* | [**anonymize**](docs/AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized}/{token} | Activate/deactivate anonymization for a source. +*AdminApi* | [**anonymize1**](docs/AdminApi.md#anonymize1) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. +*AdminApi* | [**api_key_info**](docs/AdminApi.md#api_key_info) | **GET** /api2/json/apiKeyInfo | Read API Key info. *AdminApi* | [**api_status**](docs/AdminApi.md#api_status) | **GET** /api2/json/apiStatus | Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. *AdminApi* | [**api_usage**](docs/AdminApi.md#api_usage) | **GET** /api2/json/apiUsage | Print current API usage. *AdminApi* | [**api_usage_history**](docs/AdminApi.md#api_usage_history) | **GET** /api2/json/apiUsageHistory | Print historical API usage. @@ -85,6 +89,7 @@ Class | Method | HTTP request | Description *AdminApi* | [**available_services**](docs/AdminApi.md#available_services) | **GET** /api2/json/apiServices | List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers. *AdminApi* | [**disable**](docs/AdminApi.md#disable) | **GET** /api2/json/disable/{source}/{disabled} | Activate/deactivate an API Key. *AdminApi* | [**learnable**](docs/AdminApi.md#learnable) | **GET** /api2/json/learnable/{source}/{learnable} | Activate/deactivate learning from a source. +*AdminApi* | [**learnable1**](docs/AdminApi.md#learnable1) | **GET** /api2/json/learnable/{source}/{learnable}/{token} | Activate/deactivate learning from a source. *AdminApi* | [**software_version**](docs/AdminApi.md#software_version) | **GET** /api2/json/softwareVersion | Get the current software version *AdminApi* | [**taxonomy_classes**](docs/AdminApi.md#taxonomy_classes) | **GET** /api2/json/taxonomyClasses/{classifierName} | Print the taxonomy classes valid for the given classifier. *ChineseApi* | [**chinese_name_candidates**](docs/ChineseApi.md#chinese_name_candidates) | **GET** /api2/json/chineseNameCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin} | Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming @@ -110,8 +115,8 @@ Class | Method | HTTP request | Description *JapaneseApi* | [**gender_japanese_name_pinyin**](docs/JapaneseApi.md#gender_japanese_name_pinyin) | **GET** /api2/json/genderJapaneseName/{japaneseSurname}/{japaneseGivenName} | Infer the likely gender of a Japanese name in LATIN (Pinyin). *JapaneseApi* | [**gender_japanese_name_pinyin_batch**](docs/JapaneseApi.md#gender_japanese_name_pinyin_batch) | **POST** /api2/json/genderJapaneseNameBatch | Infer the likely gender of up to 100 Japanese names in LATIN (Pinyin). *JapaneseApi* | [**japanese_name_gender_kanji_candidates_batch**](docs/JapaneseApi.md#japanese_name_gender_kanji_candidates_batch) | **POST** /api2/json/japaneseNameGenderKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae -*JapaneseApi* | [**japanese_name_kanji_candidates**](docs/JapaneseApi.md#japanese_name_kanji_candidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. -*JapaneseApi* | [**japanese_name_kanji_candidates1**](docs/JapaneseApi.md#japanese_name_kanji_candidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +*JapaneseApi* | [**japanese_name_kanji_candidates**](docs/JapaneseApi.md#japanese_name_kanji_candidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +*JapaneseApi* | [**japanese_name_kanji_candidates1**](docs/JapaneseApi.md#japanese_name_kanji_candidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. *JapaneseApi* | [**japanese_name_kanji_candidates_batch**](docs/JapaneseApi.md#japanese_name_kanji_candidates_batch) | **POST** /api2/json/japaneseNameKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname), ex. Yamamoto Sanae *JapaneseApi* | [**japanese_name_latin_candidates**](docs/JapaneseApi.md#japanese_name_latin_candidates) | **GET** /api2/json/japaneseNameLatinCandidates/{japaneseSurnameKanji}/{japaneseGivenNameKanji} | Romanize japanese name, based on the name in Kanji. *JapaneseApi* | [**japanese_name_latin_candidates_batch**](docs/JapaneseApi.md#japanese_name_latin_candidates_batch) | **POST** /api2/json/japaneseNameLatinCandidatesBatch | Romanize japanese names, based on the name in KANJI @@ -127,6 +132,7 @@ Class | Method | HTTP request | Description *PersonalApi* | [**diaspora**](docs/PersonalApi.md#diaspora) | **GET** /api2/json/diaspora/{countryIso2}/{firstName}/{lastName} | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) *PersonalApi* | [**diaspora_batch**](docs/PersonalApi.md#diaspora_batch) | **POST** /api2/json/diasporaBatch | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) *PersonalApi* | [**gender**](docs/PersonalApi.md#gender) | **GET** /api2/json/gender/{firstName}/{lastName} | Infer the likely gender of a name. +*PersonalApi* | [**gender1**](docs/PersonalApi.md#gender1) | **GET** /api2/json/gender/{firstName} | Infer the likely gender of a just a fiven name, assuming default 'US' local context. Please use preferably full names and local geographic context for better accuracy. *PersonalApi* | [**gender_batch**](docs/PersonalApi.md#gender_batch) | **POST** /api2/json/genderBatch | Infer the likely gender of up to 100 names, detecting automatically the cultural context. *PersonalApi* | [**gender_full**](docs/PersonalApi.md#gender_full) | **GET** /api2/json/genderFull/{fullName} | Infer the likely gender of a full name, ex. John H. Smith *PersonalApi* | [**gender_full_batch**](docs/PersonalApi.md#gender_full_batch) | **POST** /api2/json/genderFullBatch | Infer the likely gender of up to 100 full names, detecting automatically the cultural context. @@ -140,6 +146,8 @@ Class | Method | HTTP request | Description *PersonalApi* | [**parse_name_batch**](docs/PersonalApi.md#parse_name_batch) | **POST** /api2/json/parseNameBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. *PersonalApi* | [**parse_name_geo**](docs/PersonalApi.md#parse_name_geo) | **GET** /api2/json/parseName/{nameFull}/{countryIso2} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context. *PersonalApi* | [**parse_name_geo_batch**](docs/PersonalApi.md#parse_name_geo_batch) | **POST** /api2/json/parseNameGeoBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. Giving a local context improves precision. +*PersonalApi* | [**subclassification**](docs/PersonalApi.md#subclassification) | **GET** /api2/json/subclassification/{countryIso2}/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). +*PersonalApi* | [**subclassification_batch**](docs/PersonalApi.md#subclassification_batch) | **POST** /api2/json/subclassificationBatch | [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). *PersonalApi* | [**us_race_ethnicity**](docs/PersonalApi.md#us_race_ethnicity) | **GET** /api2/json/usRaceEthnicity/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). *PersonalApi* | [**us_race_ethnicity_batch**](docs/PersonalApi.md#us_race_ethnicity_batch) | **POST** /api2/json/usRaceEthnicityBatch | [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). *PersonalApi* | [**us_race_ethnicity_zip5**](docs/PersonalApi.md#us_race_ethnicity_zip5) | **GET** /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). @@ -171,6 +179,7 @@ Class | Method | HTTP request | Description - [BatchFirstLastNameGenderIn](docs/BatchFirstLastNameGenderIn.md) - [BatchFirstLastNameGenderedOut](docs/BatchFirstLastNameGenderedOut.md) - [BatchFirstLastNameGeoIn](docs/BatchFirstLastNameGeoIn.md) + - [BatchFirstLastNameGeoSubclassificationOut](docs/BatchFirstLastNameGeoSubclassificationOut.md) - [BatchFirstLastNameGeoZippedIn](docs/BatchFirstLastNameGeoZippedIn.md) - [BatchFirstLastNameIn](docs/BatchFirstLastNameIn.md) - [BatchFirstLastNameOriginedOut](docs/BatchFirstLastNameOriginedOut.md) @@ -196,6 +205,7 @@ Class | Method | HTTP request | Description - [FirstLastNameGenderIn](docs/FirstLastNameGenderIn.md) - [FirstLastNameGenderedOut](docs/FirstLastNameGenderedOut.md) - [FirstLastNameGeoIn](docs/FirstLastNameGeoIn.md) + - [FirstLastNameGeoSubclassificationOut](docs/FirstLastNameGeoSubclassificationOut.md) - [FirstLastNameGeoZippedIn](docs/FirstLastNameGeoZippedIn.md) - [FirstLastNameIn](docs/FirstLastNameIn.md) - [FirstLastNameOriginedOut](docs/FirstLastNameOriginedOut.md) diff --git a/docs/APIClassifierTaxonomyOut.md b/docs/APIClassifierTaxonomyOut.md index 8fa92a9..8425465 100644 --- a/docs/APIClassifierTaxonomyOut.md +++ b/docs/APIClassifierTaxonomyOut.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **classifier_name** | **str** | Name of the classifier as per apiStatus (corresponds also to the name of the service in apiServices) | [optional] **taxonomy_classes** | **list[str]** | The taxonomy classes this classifier classifies to | [optional] +**classifying_scripts** | **list[str]** | The scripts / alphabets this classifiers classifies to | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AdminApi.md b/docs/AdminApi.md index d080567..7a52d68 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -4,7 +4,9 @@ All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* Method | HTTP request | Description ------------- | ------------- | ------------- -[**anonymize**](AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. +[**anonymize**](AdminApi.md#anonymize) | **GET** /api2/json/anonymize/{source}/{anonymized}/{token} | Activate/deactivate anonymization for a source. +[**anonymize1**](AdminApi.md#anonymize1) | **GET** /api2/json/anonymize/{source}/{anonymized} | Activate/deactivate anonymization for a source. +[**api_key_info**](AdminApi.md#api_key_info) | **GET** /api2/json/apiKeyInfo | Read API Key info. [**api_status**](AdminApi.md#api_status) | **GET** /api2/json/apiStatus | Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. [**api_usage**](AdminApi.md#api_usage) | **GET** /api2/json/apiUsage | Print current API usage. [**api_usage_history**](AdminApi.md#api_usage_history) | **GET** /api2/json/apiUsageHistory | Print historical API usage. @@ -12,12 +14,13 @@ Method | HTTP request | Description [**available_services**](AdminApi.md#available_services) | **GET** /api2/json/apiServices | List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers. [**disable**](AdminApi.md#disable) | **GET** /api2/json/disable/{source}/{disabled} | Activate/deactivate an API Key. [**learnable**](AdminApi.md#learnable) | **GET** /api2/json/learnable/{source}/{learnable} | Activate/deactivate learning from a source. +[**learnable1**](AdminApi.md#learnable1) | **GET** /api2/json/learnable/{source}/{learnable}/{token} | Activate/deactivate learning from a source. [**software_version**](AdminApi.md#software_version) | **GET** /api2/json/softwareVersion | Get the current software version [**taxonomy_classes**](AdminApi.md#taxonomy_classes) | **GET** /api2/json/taxonomyClasses/{classifierName} | Print the taxonomy classes valid for the given classifier. # **anonymize** -> anonymize(source, anonymized) +> APIKeyOut anonymize(source, anonymized, token) Activate/deactivate anonymization for a source. @@ -41,16 +44,74 @@ configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) source = 'source_example' # str | anonymized = True # bool | +token = 'token_example' # str | try: # Activate/deactivate anonymization for a source. - api_instance.anonymize(source, anonymized) + api_response = api_instance.anonymize(source, anonymized, token) + pprint(api_response) except ApiException as e: print("Exception when calling AdminApi->anonymize: %s\n" % e) ``` ### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **source** | **str**| | + **anonymized** | **bool**| | + **token** | **str**| | + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **anonymize1** +> anonymize1(source, anonymized) + +Activate/deactivate anonymization for a source. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +source = 'source_example' # str | +anonymized = True # bool | + +try: + # Activate/deactivate anonymization for a source. + api_instance.anonymize1(source, anonymized) +except ApiException as e: + print("Exception when calling AdminApi->anonymize1: %s\n" % e) +``` + +### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **source** | **str**| | @@ -71,6 +132,56 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **api_key_info** +> APIKeyOut api_key_info() + +Read API Key info. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Read API Key info. + api_response = api_instance.api_key_info() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->api_key_info: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **api_status** > APIClassifiersStatusOut api_status() @@ -431,6 +542,64 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **learnable1** +> APIKeyOut learnable1(source, learnable, token) + +Activate/deactivate learning from a source. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +source = 'source_example' # str | The API Key to set as learnable/non learnable. +learnable = True # bool | +token = 'token_example' # str | + +try: + # Activate/deactivate learning from a source. + api_response = api_instance.learnable1(source, learnable, token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->learnable1: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **source** | **str**| The API Key to set as learnable/non learnable. | + **learnable** | **bool**| | + **token** | **str**| | + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **software_version** > SoftwareVersionOut software_version() diff --git a/docs/BatchFirstLastNameGeoSubclassificationOut.md b/docs/BatchFirstLastNameGeoSubclassificationOut.md new file mode 100644 index 0000000..5b798c5 --- /dev/null +++ b/docs/BatchFirstLastNameGeoSubclassificationOut.md @@ -0,0 +1,10 @@ +# BatchFirstLastNameGeoSubclassificationOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[FirstLastNameGeoSubclassificationOut]**](FirstLastNameGeoSubclassificationOut.md) | Classified names at sub country level (region or state) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameDiasporaedOut.md b/docs/FirstLastNameDiasporaedOut.md index 0f6e819..ea9d5c7 100644 --- a/docs/FirstLastNameDiasporaedOut.md +++ b/docs/FirstLastNameDiasporaedOut.md @@ -13,6 +13,8 @@ Name | Type | Description | Notes **lifted** | **bool** | Indicates if the output ethnicity is based on machine learning only, or further lifted as a known fact by a country-specific rule. Let us know if you believe ethnicity is incorrect on a specific case where lifted is true. | [optional] **country_iso2** | **str** | From input data, the countryIso2 of geographic context (US,CA etc.) | [optional] **ethnicities_top** | **list[str]** | List most likely ethnicities (top 10) | [optional] +**probability_calibrated** | **float** | The calibrated probability for ethnicity to have been guessed correctly. -1 = still calibrating. | [optional] +**probability_alt_calibrated** | **float** | The calibrated probability for ethnicity OR ethnicityAlt to have been guessed correctly. -1 = still calibrating. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FirstLastNameGenderedOut.md b/docs/FirstLastNameGenderedOut.md index fb7657b..46e7e32 100644 --- a/docs/FirstLastNameGenderedOut.md +++ b/docs/FirstLastNameGenderedOut.md @@ -8,9 +8,9 @@ Name | Type | Description | Notes **first_name** | **str** | The first name (also known as given name) | [optional] **last_name** | **str** | The last name (also known as family name, or surname) | [optional] **likely_gender** | **str** | Most likely gender | [optional] -**gender_scale** | **float** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value | [optional] +**gender_scale** | **float** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. | [optional] **score** | **float** | Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] -**probability_calibrated** | **float** | The calibrated probability for inferred gender to have been guessed correctly. | [optional] +**probability_calibrated** | **float** | The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FirstLastNameGeoSubclassificationOut.md b/docs/FirstLastNameGeoSubclassificationOut.md new file mode 100644 index 0000000..1651bd0 --- /dev/null +++ b/docs/FirstLastNameGeoSubclassificationOut.md @@ -0,0 +1,20 @@ +# FirstLastNameGeoSubclassificationOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**script** | **str** | | [optional] +**id** | **str** | | [optional] +**first_name** | **str** | The first name (also known as given name) | [optional] +**last_name** | **str** | The last name (also known as family name, or surname) | [optional] +**country_iso2** | **str** | The input country ISO2 code | [optional] +**sub_classification** | **str** | Most likely subclassification ISO_3166-2 code | [optional] +**sub_classification_alt** | **str** | Second best alternative : subclassification ISO_3166-2 code | [optional] +**subclassification_top** | **list[str]** | List subclassification ISO_3166-2 codes (top 10) | [optional] +**score** | **float** | Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] +**probability_calibrated** | **float** | The calibrated probability for subclassification to have been guessed correctly. -1 = still calibrating. | [optional] +**probability_alt_calibrated** | **float** | The calibrated probability for subclassification OR subclassificationAlt to have been guessed correctly. -1 = still calibrating. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameOriginedOut.md b/docs/FirstLastNameOriginedOut.md index c601320..7b37dac 100644 --- a/docs/FirstLastNameOriginedOut.md +++ b/docs/FirstLastNameOriginedOut.md @@ -14,8 +14,8 @@ Name | Type | Description | Notes **region_origin** | **str** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional] **top_region_origin** | **str** | Most likely top region of Origin (based on countryOrigin ISO2 code) | [optional] **sub_region_origin** | **str** | Most likely sub region of Origin (based on countryOrigin ISO2 code) | [optional] -**probability_calibrated** | **float** | The calibrated probability for countryOrigin to have been guessed correctly. | [optional] -**probability_alt_calibrated** | **float** | The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. | [optional] +**probability_calibrated** | **float** | The calibrated probability for countryOrigin to have been guessed correctly. -1 = still calibrating. | [optional] +**probability_alt_calibrated** | **float** | The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. -1 = still calibrating. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FirstLastNamePhoneNumberGeoIn.md b/docs/FirstLastNamePhoneNumberGeoIn.md index 4b6e175..5e57b67 100644 --- a/docs/FirstLastNamePhoneNumberGeoIn.md +++ b/docs/FirstLastNamePhoneNumberGeoIn.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **first_name** | **str** | | [optional] **last_name** | **str** | | [optional] **phone_number** | **str** | | [optional] -**first_last_name_origined_out** | [**FirstLastNameOriginedOut**](FirstLastNameOriginedOut.md) | | [optional] **country_iso2** | **str** | | [optional] **country_iso2_alt** | **str** | | [optional] diff --git a/docs/FirstLastNamePhoneNumberIn.md b/docs/FirstLastNamePhoneNumberIn.md index a51dd88..498803c 100644 --- a/docs/FirstLastNamePhoneNumberIn.md +++ b/docs/FirstLastNamePhoneNumberIn.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **first_name** | **str** | | [optional] **last_name** | **str** | | [optional] **phone_number** | **str** | | [optional] -**first_last_name_origined_out** | [**FirstLastNameOriginedOut**](FirstLastNameOriginedOut.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FirstLastNameUSRaceEthnicityOut.md b/docs/FirstLastNameUSRaceEthnicityOut.md index beb7c33..e646f9b 100644 --- a/docs/FirstLastNameUSRaceEthnicityOut.md +++ b/docs/FirstLastNameUSRaceEthnicityOut.md @@ -11,8 +11,8 @@ Name | Type | Description | Notes **race_ethnicity** | **str** | Most likely US 'race'/ethnicity | [optional] **score** | **float** | Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] **race_ethnicities_top** | **list[str]** | List 'race'/ethnicities | [optional] -**probability_calibrated** | **float** | The calibrated probability for raceEthnicity to have been guessed correctly. | [optional] -**probability_alt_calibrated** | **float** | The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. | [optional] +**probability_calibrated** | **float** | The calibrated probability for raceEthnicity to have been guessed correctly. -1 = still calibrating. | [optional] +**probability_alt_calibrated** | **float** | The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. -1 = still calibrating. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/JapaneseApi.md b/docs/JapaneseApi.md index 2e5029d..72038b3 100644 --- a/docs/JapaneseApi.md +++ b/docs/JapaneseApi.md @@ -9,8 +9,8 @@ Method | HTTP request | Description [**gender_japanese_name_pinyin**](JapaneseApi.md#gender_japanese_name_pinyin) | **GET** /api2/json/genderJapaneseName/{japaneseSurname}/{japaneseGivenName} | Infer the likely gender of a Japanese name in LATIN (Pinyin). [**gender_japanese_name_pinyin_batch**](JapaneseApi.md#gender_japanese_name_pinyin_batch) | **POST** /api2/json/genderJapaneseNameBatch | Infer the likely gender of up to 100 Japanese names in LATIN (Pinyin). [**japanese_name_gender_kanji_candidates_batch**](JapaneseApi.md#japanese_name_gender_kanji_candidates_batch) | **POST** /api2/json/japaneseNameGenderKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae -[**japanese_name_kanji_candidates**](JapaneseApi.md#japanese_name_kanji_candidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. -[**japanese_name_kanji_candidates1**](JapaneseApi.md#japanese_name_kanji_candidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +[**japanese_name_kanji_candidates**](JapaneseApi.md#japanese_name_kanji_candidates) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +[**japanese_name_kanji_candidates1**](JapaneseApi.md#japanese_name_kanji_candidates1) | **GET** /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. [**japanese_name_kanji_candidates_batch**](JapaneseApi.md#japanese_name_kanji_candidates_batch) | **POST** /api2/json/japaneseNameKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname), ex. Yamamoto Sanae [**japanese_name_latin_candidates**](JapaneseApi.md#japanese_name_latin_candidates) | **GET** /api2/json/japaneseNameLatinCandidates/{japaneseSurnameKanji}/{japaneseGivenNameKanji} | Romanize japanese name, based on the name in Kanji. [**japanese_name_latin_candidates_batch**](JapaneseApi.md#japanese_name_latin_candidates_batch) | **POST** /api2/json/japaneseNameLatinCandidatesBatch | Romanize japanese names, based on the name in KANJI @@ -294,9 +294,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **japanese_name_kanji_candidates** -> NameMatchCandidatesOut japanese_name_kanji_candidates(japanese_surname_latin, japanese_given_name_latin, known_gender) +> NameMatchCandidatesOut japanese_name_kanji_candidates(japanese_surname_latin, japanese_given_name_latin) -Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. +Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae ### Example @@ -318,11 +318,10 @@ configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' api_instance = openapi_client.JapaneseApi(openapi_client.ApiClient(configuration)) japanese_surname_latin = 'japanese_surname_latin_example' # str | japanese_given_name_latin = 'japanese_given_name_latin_example' # str | -known_gender = 'known_gender_example' # str | try: - # Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. - api_response = api_instance.japanese_name_kanji_candidates(japanese_surname_latin, japanese_given_name_latin, known_gender) + # Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae + api_response = api_instance.japanese_name_kanji_candidates(japanese_surname_latin, japanese_given_name_latin) pprint(api_response) except ApiException as e: print("Exception when calling JapaneseApi->japanese_name_kanji_candidates: %s\n" % e) @@ -334,7 +333,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **japanese_surname_latin** | **str**| | **japanese_given_name_latin** | **str**| | - **known_gender** | **str**| | ### Return type @@ -352,9 +350,9 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **japanese_name_kanji_candidates1** -> NameMatchCandidatesOut japanese_name_kanji_candidates1(japanese_surname_latin, japanese_given_name_latin) +> NameMatchCandidatesOut japanese_name_kanji_candidates1(japanese_surname_latin, japanese_given_name_latin, known_gender) -Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae +Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. ### Example @@ -376,10 +374,11 @@ configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' api_instance = openapi_client.JapaneseApi(openapi_client.ApiClient(configuration)) japanese_surname_latin = 'japanese_surname_latin_example' # str | japanese_given_name_latin = 'japanese_given_name_latin_example' # str | +known_gender = 'known_gender_example' # str | try: - # Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - api_response = api_instance.japanese_name_kanji_candidates1(japanese_surname_latin, japanese_given_name_latin) + # Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. + api_response = api_instance.japanese_name_kanji_candidates1(japanese_surname_latin, japanese_given_name_latin, known_gender) pprint(api_response) except ApiException as e: print("Exception when calling JapaneseApi->japanese_name_kanji_candidates1: %s\n" % e) @@ -391,6 +390,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **japanese_surname_latin** | **str**| | **japanese_given_name_latin** | **str**| | + **known_gender** | **str**| | ### Return type diff --git a/docs/PersonalApi.md b/docs/PersonalApi.md index 6d2e47c..25ae9ac 100644 --- a/docs/PersonalApi.md +++ b/docs/PersonalApi.md @@ -11,6 +11,7 @@ Method | HTTP request | Description [**diaspora**](PersonalApi.md#diaspora) | **GET** /api2/json/diaspora/{countryIso2}/{firstName}/{lastName} | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) [**diaspora_batch**](PersonalApi.md#diaspora_batch) | **POST** /api2/json/diasporaBatch | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) [**gender**](PersonalApi.md#gender) | **GET** /api2/json/gender/{firstName}/{lastName} | Infer the likely gender of a name. +[**gender1**](PersonalApi.md#gender1) | **GET** /api2/json/gender/{firstName} | Infer the likely gender of a just a fiven name, assuming default 'US' local context. Please use preferably full names and local geographic context for better accuracy. [**gender_batch**](PersonalApi.md#gender_batch) | **POST** /api2/json/genderBatch | Infer the likely gender of up to 100 names, detecting automatically the cultural context. [**gender_full**](PersonalApi.md#gender_full) | **GET** /api2/json/genderFull/{fullName} | Infer the likely gender of a full name, ex. John H. Smith [**gender_full_batch**](PersonalApi.md#gender_full_batch) | **POST** /api2/json/genderFullBatch | Infer the likely gender of up to 100 full names, detecting automatically the cultural context. @@ -24,6 +25,8 @@ Method | HTTP request | Description [**parse_name_batch**](PersonalApi.md#parse_name_batch) | **POST** /api2/json/parseNameBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. [**parse_name_geo**](PersonalApi.md#parse_name_geo) | **GET** /api2/json/parseName/{nameFull}/{countryIso2} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context. [**parse_name_geo_batch**](PersonalApi.md#parse_name_geo_batch) | **POST** /api2/json/parseNameGeoBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. Giving a local context improves precision. +[**subclassification**](PersonalApi.md#subclassification) | **GET** /api2/json/subclassification/{countryIso2}/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). +[**subclassification_batch**](PersonalApi.md#subclassification_batch) | **POST** /api2/json/subclassificationBatch | [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). [**us_race_ethnicity**](PersonalApi.md#us_race_ethnicity) | **GET** /api2/json/usRaceEthnicity/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). [**us_race_ethnicity_batch**](PersonalApi.md#us_race_ethnicity_batch) | **POST** /api2/json/usRaceEthnicityBatch | [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). [**us_race_ethnicity_zip5**](PersonalApi.md#us_race_ethnicity_zip5) | **GET** /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). @@ -424,6 +427,60 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **gender1** +> FirstLastNameGenderedOut gender1(first_name) + +Infer the likely gender of a just a fiven name, assuming default 'US' local context. Please use preferably full names and local geographic context for better accuracy. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +first_name = 'first_name_example' # str | + +try: + # Infer the likely gender of a just a fiven name, assuming default 'US' local context. Please use preferably full names and local geographic context for better accuracy. + api_response = api_instance.gender1(first_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->gender1: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **first_name** | **str**| | + +### Return type + +[**FirstLastNameGenderedOut**](FirstLastNameGenderedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **gender_batch** > BatchFirstLastNameGenderedOut gender_batch(batch_first_last_name_in=batch_first_last_name_in) @@ -1136,6 +1193,118 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **subclassification** +> FirstLastNameGeoSubclassificationOut subclassification(country_iso2, first_name, last_name) + +[USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +country_iso2 = 'country_iso2_example' # str | +first_name = 'first_name_example' # str | +last_name = 'last_name_example' # str | + +try: + # [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + api_response = api_instance.subclassification(country_iso2, first_name, last_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->subclassification: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **country_iso2** | **str**| | + **first_name** | **str**| | + **last_name** | **str**| | + +### Return type + +[**FirstLastNameGeoSubclassificationOut**](FirstLastNameGeoSubclassificationOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **subclassification_batch** +> BatchFirstLastNameGeoSubclassificationOut subclassification_batch(batch_first_last_name_geo_in=batch_first_last_name_geo_in) + +[USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_geo_in = openapi_client.BatchFirstLastNameGeoIn() # BatchFirstLastNameGeoIn | A list of personal names (optional) + +try: + # [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). + api_response = api_instance.subclassification_batch(batch_first_last_name_geo_in=batch_first_last_name_geo_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->subclassification_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_geo_in** | [**BatchFirstLastNameGeoIn**](BatchFirstLastNameGeoIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNameGeoSubclassificationOut**](BatchFirstLastNameGeoSubclassificationOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **us_race_ethnicity** > FirstLastNameUSRaceEthnicityOut us_race_ethnicity(first_name, last_name) diff --git a/docs/PersonalNameGenderedOut.md b/docs/PersonalNameGenderedOut.md index df6a650..2cf664b 100644 --- a/docs/PersonalNameGenderedOut.md +++ b/docs/PersonalNameGenderedOut.md @@ -7,9 +7,9 @@ Name | Type | Description | Notes **id** | **str** | | [optional] **name** | **str** | The input name | [optional] **likely_gender** | **str** | Most likely gender | [optional] -**gender_scale** | **float** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value | [optional] +**gender_scale** | **float** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. | [optional] **score** | **float** | Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. | [optional] -**probability_calibrated** | **float** | The calibrated probability for inferred gender to have been guessed correctly. | [optional] +**probability_calibrated** | **float** | The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PersonalNameGeoOut.md b/docs/PersonalNameGeoOut.md index 5895269..8d9e9c7 100644 --- a/docs/PersonalNameGeoOut.md +++ b/docs/PersonalNameGeoOut.md @@ -13,8 +13,8 @@ Name | Type | Description | Notes **top_region** | **str** | Most likely top region (based on country ISO2 code) | [optional] **sub_region** | **str** | Most likely sub region (based on country ISO2 code) | [optional] **countries_top** | **list[str]** | List countries (top 10) | [optional] -**probability_calibrated** | **float** | The calibrated probability for country to have been guessed correctly. | [optional] -**probability_alt_calibrated** | **float** | The calibrated probability for country OR countryAlt to have been guessed correctly. | [optional] +**probability_calibrated** | **float** | The calibrated probability for country to have been guessed correctly. -1 = still calibrating. | [optional] +**probability_alt_calibrated** | **float** | The calibrated probability for country OR countryAlt to have been guessed correctly. -1 = still calibrating. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapi_client/__init__.py b/openapi_client/__init__.py index 67659d1..97b011b 100644 --- a/openapi_client/__init__.py +++ b/openapi_client/__init__.py @@ -7,7 +7,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -15,7 +15,7 @@ from __future__ import absolute_import -__version__ = "2.0.15" +__version__ = "2.0.18" # import apis into sdk package from openapi_client.api.admin_api import AdminApi @@ -47,6 +47,7 @@ from openapi_client.models.batch_first_last_name_gender_in import BatchFirstLastNameGenderIn from openapi_client.models.batch_first_last_name_gendered_out import BatchFirstLastNameGenderedOut from openapi_client.models.batch_first_last_name_geo_in import BatchFirstLastNameGeoIn +from openapi_client.models.batch_first_last_name_geo_subclassification_out import BatchFirstLastNameGeoSubclassificationOut from openapi_client.models.batch_first_last_name_geo_zipped_in import BatchFirstLastNameGeoZippedIn from openapi_client.models.batch_first_last_name_in import BatchFirstLastNameIn from openapi_client.models.batch_first_last_name_origined_out import BatchFirstLastNameOriginedOut @@ -72,6 +73,7 @@ from openapi_client.models.first_last_name_gender_in import FirstLastNameGenderIn from openapi_client.models.first_last_name_gendered_out import FirstLastNameGenderedOut from openapi_client.models.first_last_name_geo_in import FirstLastNameGeoIn +from openapi_client.models.first_last_name_geo_subclassification_out import FirstLastNameGeoSubclassificationOut from openapi_client.models.first_last_name_geo_zipped_in import FirstLastNameGeoZippedIn from openapi_client.models.first_last_name_in import FirstLastNameIn from openapi_client.models.first_last_name_origined_out import FirstLastNameOriginedOut diff --git a/openapi_client/api/admin_api.py b/openapi_client/api/admin_api.py index 8d09cb0..b098548 100644 --- a/openapi_client/api/admin_api.py +++ b/openapi_client/api/admin_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -33,47 +33,49 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def anonymize(self, source, anonymized, **kwargs): # noqa: E501 + def anonymize(self, source, anonymized, token, **kwargs): # noqa: E501 """Activate/deactivate anonymization for a source. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.anonymize(source, anonymized, async_req=True) + >>> thread = api.anonymize(source, anonymized, token, async_req=True) >>> result = thread.get() :param async_req bool :param str source: (required) :param bool anonymized: (required) - :return: None + :param str token: (required) + :return: APIKeyOut If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.anonymize_with_http_info(source, anonymized, **kwargs) # noqa: E501 + return self.anonymize_with_http_info(source, anonymized, token, **kwargs) # noqa: E501 else: - (data) = self.anonymize_with_http_info(source, anonymized, **kwargs) # noqa: E501 + (data) = self.anonymize_with_http_info(source, anonymized, token, **kwargs) # noqa: E501 return data - def anonymize_with_http_info(self, source, anonymized, **kwargs): # noqa: E501 + def anonymize_with_http_info(self, source, anonymized, token, **kwargs): # noqa: E501 """Activate/deactivate anonymization for a source. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.anonymize_with_http_info(source, anonymized, async_req=True) + >>> thread = api.anonymize_with_http_info(source, anonymized, token, async_req=True) >>> result = thread.get() :param async_req bool :param str source: (required) :param bool anonymized: (required) - :return: None + :param str token: (required) + :return: APIKeyOut If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['source', 'anonymized'] # noqa: E501 + all_params = ['source', 'anonymized', 'token'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -95,6 +97,114 @@ def anonymize_with_http_info(self, source, anonymized, **kwargs): # noqa: E501 if ('anonymized' not in local_var_params or local_var_params['anonymized'] is None): raise ValueError("Missing the required parameter `anonymized` when calling `anonymize`") # noqa: E501 + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `anonymize`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'source' in local_var_params: + path_params['source'] = local_var_params['source'] # noqa: E501 + if 'anonymized' in local_var_params: + path_params['anonymized'] = local_var_params['anonymized'] # noqa: E501 + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/anonymize/{source}/{anonymized}/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def anonymize1(self, source, anonymized, **kwargs): # noqa: E501 + """Activate/deactivate anonymization for a source. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.anonymize1(source, anonymized, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str source: (required) + :param bool anonymized: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.anonymize1_with_http_info(source, anonymized, **kwargs) # noqa: E501 + else: + (data) = self.anonymize1_with_http_info(source, anonymized, **kwargs) # noqa: E501 + return data + + def anonymize1_with_http_info(self, source, anonymized, **kwargs): # noqa: E501 + """Activate/deactivate anonymization for a source. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.anonymize1_with_http_info(source, anonymized, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str source: (required) + :param bool anonymized: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['source', 'anonymized'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method anonymize1" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'source' is set + if ('source' not in local_var_params or + local_var_params['source'] is None): + raise ValueError("Missing the required parameter `source` when calling `anonymize1`") # noqa: E501 + # verify the required parameter 'anonymized' is set + if ('anonymized' not in local_var_params or + local_var_params['anonymized'] is None): + raise ValueError("Missing the required parameter `anonymized` when calling `anonymize1`") # noqa: E501 collection_formats = {} @@ -131,6 +241,92 @@ def anonymize_with_http_info(self, source, anonymized, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def api_key_info(self, **kwargs): # noqa: E501 + """Read API Key info. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_key_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.api_key_info_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.api_key_info_with_http_info(**kwargs) # noqa: E501 + return data + + def api_key_info_with_http_info(self, **kwargs): # noqa: E501 + """Read API Key info. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_key_info_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method api_key_info" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/apiKeyInfo', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def api_status(self, **kwargs): # noqa: E501 """Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices. # noqa: E501 @@ -757,6 +953,116 @@ def learnable_with_http_info(self, source, learnable, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def learnable1(self, source, learnable, token, **kwargs): # noqa: E501 + """Activate/deactivate learning from a source. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.learnable1(source, learnable, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str source: The API Key to set as learnable/non learnable. (required) + :param bool learnable: (required) + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.learnable1_with_http_info(source, learnable, token, **kwargs) # noqa: E501 + else: + (data) = self.learnable1_with_http_info(source, learnable, token, **kwargs) # noqa: E501 + return data + + def learnable1_with_http_info(self, source, learnable, token, **kwargs): # noqa: E501 + """Activate/deactivate learning from a source. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.learnable1_with_http_info(source, learnable, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str source: The API Key to set as learnable/non learnable. (required) + :param bool learnable: (required) + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['source', 'learnable', 'token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method learnable1" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'source' is set + if ('source' not in local_var_params or + local_var_params['source'] is None): + raise ValueError("Missing the required parameter `source` when calling `learnable1`") # noqa: E501 + # verify the required parameter 'learnable' is set + if ('learnable' not in local_var_params or + local_var_params['learnable'] is None): + raise ValueError("Missing the required parameter `learnable` when calling `learnable1`") # noqa: E501 + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `learnable1`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'source' in local_var_params: + path_params['source'] = local_var_params['source'] # noqa: E501 + if 'learnable' in local_var_params: + path_params['learnable'] = local_var_params['learnable'] # noqa: E501 + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/learnable/{source}/{learnable}/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def software_version(self, **kwargs): # noqa: E501 """Get the current software version # noqa: E501 diff --git a/openapi_client/api/chinese_api.py b/openapi_client/api/chinese_api.py index 34c5f64..4cb62e5 100644 --- a/openapi_client/api/chinese_api.py +++ b/openapi_client/api/chinese_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/api/general_api.py b/openapi_client/api/general_api.py index 1ee7e2e..38f3b97 100644 --- a/openapi_client/api/general_api.py +++ b/openapi_client/api/general_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/api/japanese_api.py b/openapi_client/api/japanese_api.py index 275fc82..f5e1995 100644 --- a/openapi_client/api/japanese_api.py +++ b/openapi_client/api/japanese_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -511,41 +511,39 @@ def japanese_name_gender_kanji_candidates_batch_with_http_info(self, **kwargs): _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def japanese_name_kanji_candidates(self, japanese_surname_latin, japanese_given_name_latin, known_gender, **kwargs): # noqa: E501 - """Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. # noqa: E501 + def japanese_name_kanji_candidates(self, japanese_surname_latin, japanese_given_name_latin, **kwargs): # noqa: E501 + """Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.japanese_name_kanji_candidates(japanese_surname_latin, japanese_given_name_latin, known_gender, async_req=True) + >>> thread = api.japanese_name_kanji_candidates(japanese_surname_latin, japanese_given_name_latin, async_req=True) >>> result = thread.get() :param async_req bool :param str japanese_surname_latin: (required) :param str japanese_given_name_latin: (required) - :param str known_gender: (required) :return: NameMatchCandidatesOut If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.japanese_name_kanji_candidates_with_http_info(japanese_surname_latin, japanese_given_name_latin, known_gender, **kwargs) # noqa: E501 + return self.japanese_name_kanji_candidates_with_http_info(japanese_surname_latin, japanese_given_name_latin, **kwargs) # noqa: E501 else: - (data) = self.japanese_name_kanji_candidates_with_http_info(japanese_surname_latin, japanese_given_name_latin, known_gender, **kwargs) # noqa: E501 + (data) = self.japanese_name_kanji_candidates_with_http_info(japanese_surname_latin, japanese_given_name_latin, **kwargs) # noqa: E501 return data - def japanese_name_kanji_candidates_with_http_info(self, japanese_surname_latin, japanese_given_name_latin, known_gender, **kwargs): # noqa: E501 - """Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. # noqa: E501 + def japanese_name_kanji_candidates_with_http_info(self, japanese_surname_latin, japanese_given_name_latin, **kwargs): # noqa: E501 + """Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.japanese_name_kanji_candidates_with_http_info(japanese_surname_latin, japanese_given_name_latin, known_gender, async_req=True) + >>> thread = api.japanese_name_kanji_candidates_with_http_info(japanese_surname_latin, japanese_given_name_latin, async_req=True) >>> result = thread.get() :param async_req bool :param str japanese_surname_latin: (required) :param str japanese_given_name_latin: (required) - :param str known_gender: (required) :return: NameMatchCandidatesOut If the method is called asynchronously, returns the request thread. @@ -553,7 +551,7 @@ def japanese_name_kanji_candidates_with_http_info(self, japanese_surname_latin, local_var_params = locals() - all_params = ['japanese_surname_latin', 'japanese_given_name_latin', 'known_gender'] # noqa: E501 + all_params = ['japanese_surname_latin', 'japanese_given_name_latin'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -575,10 +573,6 @@ def japanese_name_kanji_candidates_with_http_info(self, japanese_surname_latin, if ('japanese_given_name_latin' not in local_var_params or local_var_params['japanese_given_name_latin'] is None): raise ValueError("Missing the required parameter `japanese_given_name_latin` when calling `japanese_name_kanji_candidates`") # noqa: E501 - # verify the required parameter 'known_gender' is set - if ('known_gender' not in local_var_params or - local_var_params['known_gender'] is None): - raise ValueError("Missing the required parameter `known_gender` when calling `japanese_name_kanji_candidates`") # noqa: E501 collection_formats = {} @@ -587,8 +581,6 @@ def japanese_name_kanji_candidates_with_http_info(self, japanese_surname_latin, path_params['japaneseSurnameLatin'] = local_var_params['japanese_surname_latin'] # noqa: E501 if 'japanese_given_name_latin' in local_var_params: path_params['japaneseGivenNameLatin'] = local_var_params['japanese_given_name_latin'] # noqa: E501 - if 'known_gender' in local_var_params: - path_params['knownGender'] = local_var_params['known_gender'] # noqa: E501 query_params = [] @@ -606,7 +598,7 @@ def japanese_name_kanji_candidates_with_http_info(self, japanese_surname_latin, auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender}', 'GET', + '/api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}', 'GET', path_params, query_params, header_params, @@ -621,39 +613,41 @@ def japanese_name_kanji_candidates_with_http_info(self, japanese_surname_latin, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def japanese_name_kanji_candidates1(self, japanese_surname_latin, japanese_given_name_latin, **kwargs): # noqa: E501 - """Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae # noqa: E501 + def japanese_name_kanji_candidates1(self, japanese_surname_latin, japanese_given_name_latin, known_gender, **kwargs): # noqa: E501 + """Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.japanese_name_kanji_candidates1(japanese_surname_latin, japanese_given_name_latin, async_req=True) + >>> thread = api.japanese_name_kanji_candidates1(japanese_surname_latin, japanese_given_name_latin, known_gender, async_req=True) >>> result = thread.get() :param async_req bool :param str japanese_surname_latin: (required) :param str japanese_given_name_latin: (required) + :param str known_gender: (required) :return: NameMatchCandidatesOut If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.japanese_name_kanji_candidates1_with_http_info(japanese_surname_latin, japanese_given_name_latin, **kwargs) # noqa: E501 + return self.japanese_name_kanji_candidates1_with_http_info(japanese_surname_latin, japanese_given_name_latin, known_gender, **kwargs) # noqa: E501 else: - (data) = self.japanese_name_kanji_candidates1_with_http_info(japanese_surname_latin, japanese_given_name_latin, **kwargs) # noqa: E501 + (data) = self.japanese_name_kanji_candidates1_with_http_info(japanese_surname_latin, japanese_given_name_latin, known_gender, **kwargs) # noqa: E501 return data - def japanese_name_kanji_candidates1_with_http_info(self, japanese_surname_latin, japanese_given_name_latin, **kwargs): # noqa: E501 - """Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae # noqa: E501 + def japanese_name_kanji_candidates1_with_http_info(self, japanese_surname_latin, japanese_given_name_latin, known_gender, **kwargs): # noqa: E501 + """Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.japanese_name_kanji_candidates1_with_http_info(japanese_surname_latin, japanese_given_name_latin, async_req=True) + >>> thread = api.japanese_name_kanji_candidates1_with_http_info(japanese_surname_latin, japanese_given_name_latin, known_gender, async_req=True) >>> result = thread.get() :param async_req bool :param str japanese_surname_latin: (required) :param str japanese_given_name_latin: (required) + :param str known_gender: (required) :return: NameMatchCandidatesOut If the method is called asynchronously, returns the request thread. @@ -661,7 +655,7 @@ def japanese_name_kanji_candidates1_with_http_info(self, japanese_surname_latin, local_var_params = locals() - all_params = ['japanese_surname_latin', 'japanese_given_name_latin'] # noqa: E501 + all_params = ['japanese_surname_latin', 'japanese_given_name_latin', 'known_gender'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -683,6 +677,10 @@ def japanese_name_kanji_candidates1_with_http_info(self, japanese_surname_latin, if ('japanese_given_name_latin' not in local_var_params or local_var_params['japanese_given_name_latin'] is None): raise ValueError("Missing the required parameter `japanese_given_name_latin` when calling `japanese_name_kanji_candidates1`") # noqa: E501 + # verify the required parameter 'known_gender' is set + if ('known_gender' not in local_var_params or + local_var_params['known_gender'] is None): + raise ValueError("Missing the required parameter `known_gender` when calling `japanese_name_kanji_candidates1`") # noqa: E501 collection_formats = {} @@ -691,6 +689,8 @@ def japanese_name_kanji_candidates1_with_http_info(self, japanese_surname_latin, path_params['japaneseSurnameLatin'] = local_var_params['japanese_surname_latin'] # noqa: E501 if 'japanese_given_name_latin' in local_var_params: path_params['japaneseGivenNameLatin'] = local_var_params['japanese_given_name_latin'] # noqa: E501 + if 'known_gender' in local_var_params: + path_params['knownGender'] = local_var_params['known_gender'] # noqa: E501 query_params = [] @@ -708,7 +708,7 @@ def japanese_name_kanji_candidates1_with_http_info(self, japanese_surname_latin, auth_settings = ['api_key'] # noqa: E501 return self.api_client.call_api( - '/api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}', 'GET', + '/api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender}', 'GET', path_params, query_params, header_params, diff --git a/openapi_client/api/personal_api.py b/openapi_client/api/personal_api.py index cbdf825..d430bda 100644 --- a/openapi_client/api/personal_api.py +++ b/openapi_client/api/personal_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -755,6 +755,100 @@ def gender_with_http_info(self, first_name, last_name, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def gender1(self, first_name, **kwargs): # noqa: E501 + """Infer the likely gender of a just a fiven name, assuming default 'US' local context. Please use preferably full names and local geographic context for better accuracy. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender1(first_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :return: FirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.gender1_with_http_info(first_name, **kwargs) # noqa: E501 + else: + (data) = self.gender1_with_http_info(first_name, **kwargs) # noqa: E501 + return data + + def gender1_with_http_info(self, first_name, **kwargs): # noqa: E501 + """Infer the likely gender of a just a fiven name, assuming default 'US' local context. Please use preferably full names and local geographic context for better accuracy. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender1_with_http_info(first_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :return: FirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['first_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method gender1" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'first_name' is set + if ('first_name' not in local_var_params or + local_var_params['first_name'] is None): + raise ValueError("Missing the required parameter `first_name` when calling `gender1`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'first_name' in local_var_params: + path_params['firstName'] = local_var_params['first_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/gender/{firstName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FirstLastNameGenderedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def gender_batch(self, **kwargs): # noqa: E501 """Infer the likely gender of up to 100 names, detecting automatically the cultural context. # noqa: E501 @@ -2017,6 +2111,210 @@ def parse_name_geo_batch_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def subclassification(self, country_iso2, first_name, last_name, **kwargs): # noqa: E501 + """[USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.subclassification(country_iso2, first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str country_iso2: (required) + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameGeoSubclassificationOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.subclassification_with_http_info(country_iso2, first_name, last_name, **kwargs) # noqa: E501 + else: + (data) = self.subclassification_with_http_info(country_iso2, first_name, last_name, **kwargs) # noqa: E501 + return data + + def subclassification_with_http_info(self, country_iso2, first_name, last_name, **kwargs): # noqa: E501 + """[USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.subclassification_with_http_info(country_iso2, first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str country_iso2: (required) + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameGeoSubclassificationOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['country_iso2', 'first_name', 'last_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method subclassification" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'country_iso2' is set + if ('country_iso2' not in local_var_params or + local_var_params['country_iso2'] is None): + raise ValueError("Missing the required parameter `country_iso2` when calling `subclassification`") # noqa: E501 + # verify the required parameter 'first_name' is set + if ('first_name' not in local_var_params or + local_var_params['first_name'] is None): + raise ValueError("Missing the required parameter `first_name` when calling `subclassification`") # noqa: E501 + # verify the required parameter 'last_name' is set + if ('last_name' not in local_var_params or + local_var_params['last_name'] is None): + raise ValueError("Missing the required parameter `last_name` when calling `subclassification`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'country_iso2' in local_var_params: + path_params['countryIso2'] = local_var_params['country_iso2'] # noqa: E501 + if 'first_name' in local_var_params: + path_params['firstName'] = local_var_params['first_name'] # noqa: E501 + if 'last_name' in local_var_params: + path_params['lastName'] = local_var_params['last_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/subclassification/{countryIso2}/{firstName}/{lastName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FirstLastNameGeoSubclassificationOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def subclassification_batch(self, **kwargs): # noqa: E501 + """[USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.subclassification_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoIn batch_first_last_name_geo_in: A list of personal names + :return: BatchFirstLastNameGeoSubclassificationOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.subclassification_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.subclassification_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def subclassification_batch_with_http_info(self, **kwargs): # noqa: E501 + """[USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.subclassification_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoIn batch_first_last_name_geo_in: A list of personal names + :return: BatchFirstLastNameGeoSubclassificationOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_geo_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method subclassification_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_geo_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_geo_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/subclassificationBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNameGeoSubclassificationOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def us_race_ethnicity(self, first_name, last_name, **kwargs): # noqa: E501 """[USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander). # noqa: E501 diff --git a/openapi_client/api/social_api.py b/openapi_client/api/social_api.py index f50a617..f6b9ddb 100644 --- a/openapi_client/api/social_api.py +++ b/openapi_client/api/social_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/api_client.py b/openapi_client/api_client.py index 618cb76..02e9cd1 100644 --- a/openapi_client/api_client.py +++ b/openapi_client/api_client.py @@ -4,7 +4,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2.0.15/python' + self.user_agent = 'OpenAPI-Generator/2.0.18/python' def __del__(self): if self._pool: diff --git a/openapi_client/configuration.py b/openapi_client/configuration.py index c3e7935..2e9077e 100644 --- a/openapi_client/configuration.py +++ b/openapi_client/configuration.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -231,6 +231,6 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 2.0.15\n"\ - "SDK Package Version: 2.0.15".\ + "Version of the API: 2.0.18\n"\ + "SDK Package Version: 2.0.18".\ format(env=sys.platform, pyversion=sys.version) diff --git a/openapi_client/models/__init__.py b/openapi_client/models/__init__.py index fd168bc..d76ade7 100644 --- a/openapi_client/models/__init__.py +++ b/openapi_client/models/__init__.py @@ -6,7 +6,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -33,6 +33,7 @@ from openapi_client.models.batch_first_last_name_gender_in import BatchFirstLastNameGenderIn from openapi_client.models.batch_first_last_name_gendered_out import BatchFirstLastNameGenderedOut from openapi_client.models.batch_first_last_name_geo_in import BatchFirstLastNameGeoIn +from openapi_client.models.batch_first_last_name_geo_subclassification_out import BatchFirstLastNameGeoSubclassificationOut from openapi_client.models.batch_first_last_name_geo_zipped_in import BatchFirstLastNameGeoZippedIn from openapi_client.models.batch_first_last_name_in import BatchFirstLastNameIn from openapi_client.models.batch_first_last_name_origined_out import BatchFirstLastNameOriginedOut @@ -58,6 +59,7 @@ from openapi_client.models.first_last_name_gender_in import FirstLastNameGenderIn from openapi_client.models.first_last_name_gendered_out import FirstLastNameGenderedOut from openapi_client.models.first_last_name_geo_in import FirstLastNameGeoIn +from openapi_client.models.first_last_name_geo_subclassification_out import FirstLastNameGeoSubclassificationOut from openapi_client.models.first_last_name_geo_zipped_in import FirstLastNameGeoZippedIn from openapi_client.models.first_last_name_in import FirstLastNameIn from openapi_client.models.first_last_name_origined_out import FirstLastNameOriginedOut diff --git a/openapi_client/models/api_billing_period_usage_out.py b/openapi_client/models/api_billing_period_usage_out.py index 3cc1e06..42a20fb 100644 --- a/openapi_client/models/api_billing_period_usage_out.py +++ b/openapi_client/models/api_billing_period_usage_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_classifier_out.py b/openapi_client/models/api_classifier_out.py index 9bf9d79..a9e117f 100644 --- a/openapi_client/models/api_classifier_out.py +++ b/openapi_client/models/api_classifier_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_classifier_taxonomy_out.py b/openapi_client/models/api_classifier_taxonomy_out.py index 7c44e18..b6c34fd 100644 --- a/openapi_client/models/api_classifier_taxonomy_out.py +++ b/openapi_client/models/api_classifier_taxonomy_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -33,25 +33,30 @@ class APIClassifierTaxonomyOut(object): """ openapi_types = { 'classifier_name': 'str', - 'taxonomy_classes': 'list[str]' + 'taxonomy_classes': 'list[str]', + 'classifying_scripts': 'list[str]' } attribute_map = { 'classifier_name': 'classifierName', - 'taxonomy_classes': 'taxonomyClasses' + 'taxonomy_classes': 'taxonomyClasses', + 'classifying_scripts': 'classifyingScripts' } - def __init__(self, classifier_name=None, taxonomy_classes=None): # noqa: E501 + def __init__(self, classifier_name=None, taxonomy_classes=None, classifying_scripts=None): # noqa: E501 """APIClassifierTaxonomyOut - a model defined in OpenAPI""" # noqa: E501 self._classifier_name = None self._taxonomy_classes = None + self._classifying_scripts = None self.discriminator = None if classifier_name is not None: self.classifier_name = classifier_name if taxonomy_classes is not None: self.taxonomy_classes = taxonomy_classes + if classifying_scripts is not None: + self.classifying_scripts = classifying_scripts @property def classifier_name(self): @@ -99,6 +104,29 @@ def taxonomy_classes(self, taxonomy_classes): self._taxonomy_classes = taxonomy_classes + @property + def classifying_scripts(self): + """Gets the classifying_scripts of this APIClassifierTaxonomyOut. # noqa: E501 + + The scripts / alphabets this classifiers classifies to # noqa: E501 + + :return: The classifying_scripts of this APIClassifierTaxonomyOut. # noqa: E501 + :rtype: list[str] + """ + return self._classifying_scripts + + @classifying_scripts.setter + def classifying_scripts(self, classifying_scripts): + """Sets the classifying_scripts of this APIClassifierTaxonomyOut. + + The scripts / alphabets this classifiers classifies to # noqa: E501 + + :param classifying_scripts: The classifying_scripts of this APIClassifierTaxonomyOut. # noqa: E501 + :type: list[str] + """ + + self._classifying_scripts = classifying_scripts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/openapi_client/models/api_classifiers_status_out.py b/openapi_client/models/api_classifiers_status_out.py index 0051b61..ecfd31e 100644 --- a/openapi_client/models/api_classifiers_status_out.py +++ b/openapi_client/models/api_classifiers_status_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_counter_v2_out.py b/openapi_client/models/api_counter_v2_out.py index c254fc5..9402549 100644 --- a/openapi_client/models/api_counter_v2_out.py +++ b/openapi_client/models/api_counter_v2_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_key_out.py b/openapi_client/models/api_key_out.py index bdce05e..cab7bb5 100644 --- a/openapi_client/models/api_key_out.py +++ b/openapi_client/models/api_key_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_period_usage_out.py b/openapi_client/models/api_period_usage_out.py index 1aeb840..a8b5903 100644 --- a/openapi_client/models/api_period_usage_out.py +++ b/openapi_client/models/api_period_usage_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_plan_subscription_out.py b/openapi_client/models/api_plan_subscription_out.py index 0d5beb8..14eaf6b 100644 --- a/openapi_client/models/api_plan_subscription_out.py +++ b/openapi_client/models/api_plan_subscription_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_service_out.py b/openapi_client/models/api_service_out.py index 70ae200..f7f050c 100644 --- a/openapi_client/models/api_service_out.py +++ b/openapi_client/models/api_service_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_services_out.py b/openapi_client/models/api_services_out.py index 0e24377..d58ad31 100644 --- a/openapi_client/models/api_services_out.py +++ b/openapi_client/models/api_services_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_usage_aggregated_out.py b/openapi_client/models/api_usage_aggregated_out.py index 8e2b1de..2866f99 100644 --- a/openapi_client/models/api_usage_aggregated_out.py +++ b/openapi_client/models/api_usage_aggregated_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/api_usage_history_out.py b/openapi_client/models/api_usage_history_out.py index 28bb107..199db7b 100644 --- a/openapi_client/models/api_usage_history_out.py +++ b/openapi_client/models/api_usage_history_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_corridor_in.py b/openapi_client/models/batch_corridor_in.py index 1fd2c07..1f05ac6 100644 --- a/openapi_client/models/batch_corridor_in.py +++ b/openapi_client/models/batch_corridor_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_corridor_out.py b/openapi_client/models/batch_corridor_out.py index 16ae9cd..6fbd237 100644 --- a/openapi_client/models/batch_corridor_out.py +++ b/openapi_client/models/batch_corridor_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_diasporaed_out.py b/openapi_client/models/batch_first_last_name_diasporaed_out.py index 8bf6b29..e136b58 100644 --- a/openapi_client/models/batch_first_last_name_diasporaed_out.py +++ b/openapi_client/models/batch_first_last_name_diasporaed_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_gender_in.py b/openapi_client/models/batch_first_last_name_gender_in.py index 03baf48..7fb0285 100644 --- a/openapi_client/models/batch_first_last_name_gender_in.py +++ b/openapi_client/models/batch_first_last_name_gender_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_gendered_out.py b/openapi_client/models/batch_first_last_name_gendered_out.py index 851eb90..0c8352c 100644 --- a/openapi_client/models/batch_first_last_name_gendered_out.py +++ b/openapi_client/models/batch_first_last_name_gendered_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_geo_in.py b/openapi_client/models/batch_first_last_name_geo_in.py index d53bcab..edbb0b4 100644 --- a/openapi_client/models/batch_first_last_name_geo_in.py +++ b/openapi_client/models/batch_first_last_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_geo_subclassification_out.py b/openapi_client/models/batch_first_last_name_geo_subclassification_out.py new file mode 100644 index 0000000..dae736d --- /dev/null +++ b/openapi_client/models/batch_first_last_name_geo_subclassification_out.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.18 + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNameGeoSubclassificationOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[FirstLastNameGeoSubclassificationOut]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchFirstLastNameGeoSubclassificationOut - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchFirstLastNameGeoSubclassificationOut. # noqa: E501 + + Classified names at sub country level (region or state) # noqa: E501 + + :return: The personal_names of this BatchFirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: list[FirstLastNameGeoSubclassificationOut] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchFirstLastNameGeoSubclassificationOut. + + Classified names at sub country level (region or state) # noqa: E501 + + :param personal_names: The personal_names of this BatchFirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: list[FirstLastNameGeoSubclassificationOut] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNameGeoSubclassificationOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/models/batch_first_last_name_geo_zipped_in.py b/openapi_client/models/batch_first_last_name_geo_zipped_in.py index 75272aa..d12f089 100644 --- a/openapi_client/models/batch_first_last_name_geo_zipped_in.py +++ b/openapi_client/models/batch_first_last_name_geo_zipped_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_in.py b/openapi_client/models/batch_first_last_name_in.py index 3f18490..2919f3b 100644 --- a/openapi_client/models/batch_first_last_name_in.py +++ b/openapi_client/models/batch_first_last_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_origined_out.py b/openapi_client/models/batch_first_last_name_origined_out.py index e921292..f1164b1 100644 --- a/openapi_client/models/batch_first_last_name_origined_out.py +++ b/openapi_client/models/batch_first_last_name_origined_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_phone_coded_out.py b/openapi_client/models/batch_first_last_name_phone_coded_out.py index 5079d62..6b9a580 100644 --- a/openapi_client/models/batch_first_last_name_phone_coded_out.py +++ b/openapi_client/models/batch_first_last_name_phone_coded_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_phone_number_geo_in.py b/openapi_client/models/batch_first_last_name_phone_number_geo_in.py index 37e5bce..ec5ced5 100644 --- a/openapi_client/models/batch_first_last_name_phone_number_geo_in.py +++ b/openapi_client/models/batch_first_last_name_phone_number_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_phone_number_in.py b/openapi_client/models/batch_first_last_name_phone_number_in.py index 866d584..b3e423e 100644 --- a/openapi_client/models/batch_first_last_name_phone_number_in.py +++ b/openapi_client/models/batch_first_last_name_phone_number_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_first_last_name_us_race_ethnicity_out.py b/openapi_client/models/batch_first_last_name_us_race_ethnicity_out.py index 8ceb152..3b3b977 100644 --- a/openapi_client/models/batch_first_last_name_us_race_ethnicity_out.py +++ b/openapi_client/models/batch_first_last_name_us_race_ethnicity_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_match_personal_first_last_name_in.py b/openapi_client/models/batch_match_personal_first_last_name_in.py index 9d46e95..b3a28f6 100644 --- a/openapi_client/models/batch_match_personal_first_last_name_in.py +++ b/openapi_client/models/batch_match_personal_first_last_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_name_geo_in.py b/openapi_client/models/batch_name_geo_in.py index cb4b4c6..69413d8 100644 --- a/openapi_client/models/batch_name_geo_in.py +++ b/openapi_client/models/batch_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_name_in.py b/openapi_client/models/batch_name_in.py index fd38bbb..df2910a 100644 --- a/openapi_client/models/batch_name_in.py +++ b/openapi_client/models/batch_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_name_match_candidates_out.py b/openapi_client/models/batch_name_match_candidates_out.py index dc08cd1..f2ac971 100644 --- a/openapi_client/models/batch_name_match_candidates_out.py +++ b/openapi_client/models/batch_name_match_candidates_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_name_matched_out.py b/openapi_client/models/batch_name_matched_out.py index 8f3147a..6ecdf19 100644 --- a/openapi_client/models/batch_name_matched_out.py +++ b/openapi_client/models/batch_name_matched_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_personal_name_gendered_out.py b/openapi_client/models/batch_personal_name_gendered_out.py index 99a8dd8..203de05 100644 --- a/openapi_client/models/batch_personal_name_gendered_out.py +++ b/openapi_client/models/batch_personal_name_gendered_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_personal_name_geo_in.py b/openapi_client/models/batch_personal_name_geo_in.py index dd23637..5520cb2 100644 --- a/openapi_client/models/batch_personal_name_geo_in.py +++ b/openapi_client/models/batch_personal_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_personal_name_geo_out.py b/openapi_client/models/batch_personal_name_geo_out.py index 96f0894..214ba38 100644 --- a/openapi_client/models/batch_personal_name_geo_out.py +++ b/openapi_client/models/batch_personal_name_geo_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_personal_name_in.py b/openapi_client/models/batch_personal_name_in.py index 71d40f2..22703ec 100644 --- a/openapi_client/models/batch_personal_name_in.py +++ b/openapi_client/models/batch_personal_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_personal_name_parsed_out.py b/openapi_client/models/batch_personal_name_parsed_out.py index 6a17f20..9b38fd9 100644 --- a/openapi_client/models/batch_personal_name_parsed_out.py +++ b/openapi_client/models/batch_personal_name_parsed_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/batch_proper_noun_categorized_out.py b/openapi_client/models/batch_proper_noun_categorized_out.py index 4d2603c..bef1e4f 100644 --- a/openapi_client/models/batch_proper_noun_categorized_out.py +++ b/openapi_client/models/batch_proper_noun_categorized_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/corridor_in.py b/openapi_client/models/corridor_in.py index 0ae0abe..a2a9a12 100644 --- a/openapi_client/models/corridor_in.py +++ b/openapi_client/models/corridor_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/corridor_out.py b/openapi_client/models/corridor_out.py index a3f78dd..b3e3044 100644 --- a/openapi_client/models/corridor_out.py +++ b/openapi_client/models/corridor_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/feedback_loop_out.py b/openapi_client/models/feedback_loop_out.py index d3cb357..2f6dde0 100644 --- a/openapi_client/models/feedback_loop_out.py +++ b/openapi_client/models/feedback_loop_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/first_last_name_diasporaed_out.py b/openapi_client/models/first_last_name_diasporaed_out.py index ee75c3d..fc25470 100644 --- a/openapi_client/models/first_last_name_diasporaed_out.py +++ b/openapi_client/models/first_last_name_diasporaed_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -41,7 +41,9 @@ class FirstLastNameDiasporaedOut(object): 'ethnicity': 'str', 'lifted': 'bool', 'country_iso2': 'str', - 'ethnicities_top': 'list[str]' + 'ethnicities_top': 'list[str]', + 'probability_calibrated': 'float', + 'probability_alt_calibrated': 'float' } attribute_map = { @@ -54,10 +56,12 @@ class FirstLastNameDiasporaedOut(object): 'ethnicity': 'ethnicity', 'lifted': 'lifted', 'country_iso2': 'countryIso2', - 'ethnicities_top': 'ethnicitiesTop' + 'ethnicities_top': 'ethnicitiesTop', + 'probability_calibrated': 'probabilityCalibrated', + 'probability_alt_calibrated': 'probabilityAltCalibrated' } - def __init__(self, script=None, id=None, first_name=None, last_name=None, score=None, ethnicity_alt=None, ethnicity=None, lifted=None, country_iso2=None, ethnicities_top=None): # noqa: E501 + def __init__(self, script=None, id=None, first_name=None, last_name=None, score=None, ethnicity_alt=None, ethnicity=None, lifted=None, country_iso2=None, ethnicities_top=None, probability_calibrated=None, probability_alt_calibrated=None): # noqa: E501 """FirstLastNameDiasporaedOut - a model defined in OpenAPI""" # noqa: E501 self._script = None @@ -70,6 +74,8 @@ def __init__(self, script=None, id=None, first_name=None, last_name=None, score= self._lifted = None self._country_iso2 = None self._ethnicities_top = None + self._probability_calibrated = None + self._probability_alt_calibrated = None self.discriminator = None if script is not None: @@ -92,6 +98,10 @@ def __init__(self, script=None, id=None, first_name=None, last_name=None, score= self.country_iso2 = country_iso2 if ethnicities_top is not None: self.ethnicities_top = ethnicities_top + if probability_calibrated is not None: + self.probability_calibrated = probability_calibrated + if probability_alt_calibrated is not None: + self.probability_alt_calibrated = probability_alt_calibrated @property def script(self): @@ -323,6 +333,60 @@ def ethnicities_top(self, ethnicities_top): self._ethnicities_top = ethnicities_top + @property + def probability_calibrated(self): + """Gets the probability_calibrated of this FirstLastNameDiasporaedOut. # noqa: E501 + + The calibrated probability for ethnicity to have been guessed correctly. -1 = still calibrating. # noqa: E501 + + :return: The probability_calibrated of this FirstLastNameDiasporaedOut. # noqa: E501 + :rtype: float + """ + return self._probability_calibrated + + @probability_calibrated.setter + def probability_calibrated(self, probability_calibrated): + """Sets the probability_calibrated of this FirstLastNameDiasporaedOut. + + The calibrated probability for ethnicity to have been guessed correctly. -1 = still calibrating. # noqa: E501 + + :param probability_calibrated: The probability_calibrated of this FirstLastNameDiasporaedOut. # noqa: E501 + :type: float + """ + if probability_calibrated is not None and probability_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_calibrated is not None and probability_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 + + self._probability_calibrated = probability_calibrated + + @property + def probability_alt_calibrated(self): + """Gets the probability_alt_calibrated of this FirstLastNameDiasporaedOut. # noqa: E501 + + The calibrated probability for ethnicity OR ethnicityAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 + + :return: The probability_alt_calibrated of this FirstLastNameDiasporaedOut. # noqa: E501 + :rtype: float + """ + return self._probability_alt_calibrated + + @probability_alt_calibrated.setter + def probability_alt_calibrated(self, probability_alt_calibrated): + """Sets the probability_alt_calibrated of this FirstLastNameDiasporaedOut. + + The calibrated probability for ethnicity OR ethnicityAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 + + :param probability_alt_calibrated: The probability_alt_calibrated of this FirstLastNameDiasporaedOut. # noqa: E501 + :type: float + """ + if probability_alt_calibrated is not None and probability_alt_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_alt_calibrated is not None and probability_alt_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 + + self._probability_alt_calibrated = probability_alt_calibrated + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/openapi_client/models/first_last_name_gender_in.py b/openapi_client/models/first_last_name_gender_in.py index de195b6..e89099f 100644 --- a/openapi_client/models/first_last_name_gender_in.py +++ b/openapi_client/models/first_last_name_gender_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/first_last_name_gendered_out.py b/openapi_client/models/first_last_name_gendered_out.py index 0acafa5..cba5725 100644 --- a/openapi_client/models/first_last_name_gendered_out.py +++ b/openapi_client/models/first_last_name_gendered_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -204,7 +204,7 @@ def likely_gender(self, likely_gender): def gender_scale(self): """Gets the gender_scale of this FirstLastNameGenderedOut. # noqa: E501 - Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value # noqa: E501 + Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. # noqa: E501 :return: The gender_scale of this FirstLastNameGenderedOut. # noqa: E501 :rtype: float @@ -215,11 +215,15 @@ def gender_scale(self): def gender_scale(self, gender_scale): """Sets the gender_scale of this FirstLastNameGenderedOut. - Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value # noqa: E501 + Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. # noqa: E501 :param gender_scale: The gender_scale of this FirstLastNameGenderedOut. # noqa: E501 :type: float """ + if gender_scale is not None and gender_scale > 1: # noqa: E501 + raise ValueError("Invalid value for `gender_scale`, must be a value less than or equal to `1`") # noqa: E501 + if gender_scale is not None and gender_scale < -1: # noqa: E501 + raise ValueError("Invalid value for `gender_scale`, must be a value greater than or equal to `-1`") # noqa: E501 self._gender_scale = gender_scale @@ -254,7 +258,7 @@ def score(self, score): def probability_calibrated(self): """Gets the probability_calibrated of this FirstLastNameGenderedOut. # noqa: E501 - The calibrated probability for inferred gender to have been guessed correctly. # noqa: E501 + The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. # noqa: E501 :return: The probability_calibrated of this FirstLastNameGenderedOut. # noqa: E501 :rtype: float @@ -265,11 +269,15 @@ def probability_calibrated(self): def probability_calibrated(self, probability_calibrated): """Sets the probability_calibrated of this FirstLastNameGenderedOut. - The calibrated probability for inferred gender to have been guessed correctly. # noqa: E501 + The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. # noqa: E501 :param probability_calibrated: The probability_calibrated of this FirstLastNameGenderedOut. # noqa: E501 :type: float """ + if probability_calibrated is not None and probability_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_calibrated is not None and probability_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 self._probability_calibrated = probability_calibrated diff --git a/openapi_client/models/first_last_name_geo_in.py b/openapi_client/models/first_last_name_geo_in.py index d56131d..48a05df 100644 --- a/openapi_client/models/first_last_name_geo_in.py +++ b/openapi_client/models/first_last_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/first_last_name_geo_subclassification_out.py b/openapi_client/models/first_last_name_geo_subclassification_out.py new file mode 100644 index 0000000..8a8ce4c --- /dev/null +++ b/openapi_client/models/first_last_name_geo_subclassification_out.py @@ -0,0 +1,403 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.18 + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNameGeoSubclassificationOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'script': 'str', + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'country_iso2': 'str', + 'sub_classification': 'str', + 'sub_classification_alt': 'str', + 'subclassification_top': 'list[str]', + 'score': 'float', + 'probability_calibrated': 'float', + 'probability_alt_calibrated': 'float' + } + + attribute_map = { + 'script': 'script', + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'country_iso2': 'countryIso2', + 'sub_classification': 'subClassification', + 'sub_classification_alt': 'subClassificationAlt', + 'subclassification_top': 'subclassificationTop', + 'score': 'score', + 'probability_calibrated': 'probabilityCalibrated', + 'probability_alt_calibrated': 'probabilityAltCalibrated' + } + + def __init__(self, script=None, id=None, first_name=None, last_name=None, country_iso2=None, sub_classification=None, sub_classification_alt=None, subclassification_top=None, score=None, probability_calibrated=None, probability_alt_calibrated=None): # noqa: E501 + """FirstLastNameGeoSubclassificationOut - a model defined in OpenAPI""" # noqa: E501 + + self._script = None + self._id = None + self._first_name = None + self._last_name = None + self._country_iso2 = None + self._sub_classification = None + self._sub_classification_alt = None + self._subclassification_top = None + self._score = None + self._probability_calibrated = None + self._probability_alt_calibrated = None + self.discriminator = None + + if script is not None: + self.script = script + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if country_iso2 is not None: + self.country_iso2 = country_iso2 + if sub_classification is not None: + self.sub_classification = sub_classification + if sub_classification_alt is not None: + self.sub_classification_alt = sub_classification_alt + if subclassification_top is not None: + self.subclassification_top = subclassification_top + if score is not None: + self.score = score + if probability_calibrated is not None: + self.probability_calibrated = probability_calibrated + if probability_alt_calibrated is not None: + self.probability_alt_calibrated = probability_alt_calibrated + + @property + def script(self): + """Gets the script of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + + :return: The script of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: str + """ + return self._script + + @script.setter + def script(self, script): + """Sets the script of this FirstLastNameGeoSubclassificationOut. + + + :param script: The script of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: str + """ + + self._script = script + + @property + def id(self): + """Gets the id of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + + :return: The id of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNameGeoSubclassificationOut. + + + :param id: The id of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + The first name (also known as given name) # noqa: E501 + + :return: The first_name of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNameGeoSubclassificationOut. + + The first name (also known as given name) # noqa: E501 + + :param first_name: The first_name of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + The last name (also known as family name, or surname) # noqa: E501 + + :return: The last_name of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNameGeoSubclassificationOut. + + The last name (also known as family name, or surname) # noqa: E501 + + :param last_name: The last_name of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def country_iso2(self): + """Gets the country_iso2 of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + The input country ISO2 code # noqa: E501 + + :return: The country_iso2 of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: str + """ + return self._country_iso2 + + @country_iso2.setter + def country_iso2(self, country_iso2): + """Sets the country_iso2 of this FirstLastNameGeoSubclassificationOut. + + The input country ISO2 code # noqa: E501 + + :param country_iso2: The country_iso2 of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: str + """ + + self._country_iso2 = country_iso2 + + @property + def sub_classification(self): + """Gets the sub_classification of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + Most likely subclassification ISO_3166-2 code # noqa: E501 + + :return: The sub_classification of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: str + """ + return self._sub_classification + + @sub_classification.setter + def sub_classification(self, sub_classification): + """Sets the sub_classification of this FirstLastNameGeoSubclassificationOut. + + Most likely subclassification ISO_3166-2 code # noqa: E501 + + :param sub_classification: The sub_classification of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: str + """ + + self._sub_classification = sub_classification + + @property + def sub_classification_alt(self): + """Gets the sub_classification_alt of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + Second best alternative : subclassification ISO_3166-2 code # noqa: E501 + + :return: The sub_classification_alt of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: str + """ + return self._sub_classification_alt + + @sub_classification_alt.setter + def sub_classification_alt(self, sub_classification_alt): + """Sets the sub_classification_alt of this FirstLastNameGeoSubclassificationOut. + + Second best alternative : subclassification ISO_3166-2 code # noqa: E501 + + :param sub_classification_alt: The sub_classification_alt of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: str + """ + + self._sub_classification_alt = sub_classification_alt + + @property + def subclassification_top(self): + """Gets the subclassification_top of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + List subclassification ISO_3166-2 codes (top 10) # noqa: E501 + + :return: The subclassification_top of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: list[str] + """ + return self._subclassification_top + + @subclassification_top.setter + def subclassification_top(self, subclassification_top): + """Sets the subclassification_top of this FirstLastNameGeoSubclassificationOut. + + List subclassification ISO_3166-2 codes (top 10) # noqa: E501 + + :param subclassification_top: The subclassification_top of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: list[str] + """ + + self._subclassification_top = subclassification_top + + @property + def score(self): + """Gets the score of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. # noqa: E501 + + :return: The score of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this FirstLastNameGeoSubclassificationOut. + + Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available. # noqa: E501 + + :param score: The score of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: float + """ + if score is not None and score > 100: # noqa: E501 + raise ValueError("Invalid value for `score`, must be a value less than or equal to `100`") # noqa: E501 + if score is not None and score < 0: # noqa: E501 + raise ValueError("Invalid value for `score`, must be a value greater than or equal to `0`") # noqa: E501 + + self._score = score + + @property + def probability_calibrated(self): + """Gets the probability_calibrated of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + The calibrated probability for subclassification to have been guessed correctly. -1 = still calibrating. # noqa: E501 + + :return: The probability_calibrated of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: float + """ + return self._probability_calibrated + + @probability_calibrated.setter + def probability_calibrated(self, probability_calibrated): + """Sets the probability_calibrated of this FirstLastNameGeoSubclassificationOut. + + The calibrated probability for subclassification to have been guessed correctly. -1 = still calibrating. # noqa: E501 + + :param probability_calibrated: The probability_calibrated of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: float + """ + if probability_calibrated is not None and probability_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_calibrated is not None and probability_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 + + self._probability_calibrated = probability_calibrated + + @property + def probability_alt_calibrated(self): + """Gets the probability_alt_calibrated of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + + The calibrated probability for subclassification OR subclassificationAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 + + :return: The probability_alt_calibrated of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :rtype: float + """ + return self._probability_alt_calibrated + + @probability_alt_calibrated.setter + def probability_alt_calibrated(self, probability_alt_calibrated): + """Sets the probability_alt_calibrated of this FirstLastNameGeoSubclassificationOut. + + The calibrated probability for subclassification OR subclassificationAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 + + :param probability_alt_calibrated: The probability_alt_calibrated of this FirstLastNameGeoSubclassificationOut. # noqa: E501 + :type: float + """ + if probability_alt_calibrated is not None and probability_alt_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_alt_calibrated is not None and probability_alt_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 + + self._probability_alt_calibrated = probability_alt_calibrated + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNameGeoSubclassificationOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/models/first_last_name_geo_zipped_in.py b/openapi_client/models/first_last_name_geo_zipped_in.py index 95340ca..6249179 100644 --- a/openapi_client/models/first_last_name_geo_zipped_in.py +++ b/openapi_client/models/first_last_name_geo_zipped_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/first_last_name_in.py b/openapi_client/models/first_last_name_in.py index 0a65dbb..0ab1f04 100644 --- a/openapi_client/models/first_last_name_in.py +++ b/openapi_client/models/first_last_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/first_last_name_origined_out.py b/openapi_client/models/first_last_name_origined_out.py index 0546d9f..c237e94 100644 --- a/openapi_client/models/first_last_name_origined_out.py +++ b/openapi_client/models/first_last_name_origined_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -365,7 +365,7 @@ def sub_region_origin(self, sub_region_origin): def probability_calibrated(self): """Gets the probability_calibrated of this FirstLastNameOriginedOut. # noqa: E501 - The calibrated probability for countryOrigin to have been guessed correctly. # noqa: E501 + The calibrated probability for countryOrigin to have been guessed correctly. -1 = still calibrating. # noqa: E501 :return: The probability_calibrated of this FirstLastNameOriginedOut. # noqa: E501 :rtype: float @@ -376,11 +376,15 @@ def probability_calibrated(self): def probability_calibrated(self, probability_calibrated): """Sets the probability_calibrated of this FirstLastNameOriginedOut. - The calibrated probability for countryOrigin to have been guessed correctly. # noqa: E501 + The calibrated probability for countryOrigin to have been guessed correctly. -1 = still calibrating. # noqa: E501 :param probability_calibrated: The probability_calibrated of this FirstLastNameOriginedOut. # noqa: E501 :type: float """ + if probability_calibrated is not None and probability_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_calibrated is not None and probability_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 self._probability_calibrated = probability_calibrated @@ -388,7 +392,7 @@ def probability_calibrated(self, probability_calibrated): def probability_alt_calibrated(self): """Gets the probability_alt_calibrated of this FirstLastNameOriginedOut. # noqa: E501 - The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. # noqa: E501 + The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 :return: The probability_alt_calibrated of this FirstLastNameOriginedOut. # noqa: E501 :rtype: float @@ -399,11 +403,15 @@ def probability_alt_calibrated(self): def probability_alt_calibrated(self, probability_alt_calibrated): """Sets the probability_alt_calibrated of this FirstLastNameOriginedOut. - The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. # noqa: E501 + The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 :param probability_alt_calibrated: The probability_alt_calibrated of this FirstLastNameOriginedOut. # noqa: E501 :type: float """ + if probability_alt_calibrated is not None and probability_alt_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_alt_calibrated is not None and probability_alt_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 self._probability_alt_calibrated = probability_alt_calibrated diff --git a/openapi_client/models/first_last_name_out.py b/openapi_client/models/first_last_name_out.py index 4cf8a70..18454d3 100644 --- a/openapi_client/models/first_last_name_out.py +++ b/openapi_client/models/first_last_name_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/first_last_name_phone_coded_out.py b/openapi_client/models/first_last_name_phone_coded_out.py index b0b7740..540a860 100644 --- a/openapi_client/models/first_last_name_phone_coded_out.py +++ b/openapi_client/models/first_last_name_phone_coded_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/first_last_name_phone_number_geo_in.py b/openapi_client/models/first_last_name_phone_number_geo_in.py index 32717d1..3d9a1c1 100644 --- a/openapi_client/models/first_last_name_phone_number_geo_in.py +++ b/openapi_client/models/first_last_name_phone_number_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -36,7 +36,6 @@ class FirstLastNamePhoneNumberGeoIn(object): 'first_name': 'str', 'last_name': 'str', 'phone_number': 'str', - 'first_last_name_origined_out': 'FirstLastNameOriginedOut', 'country_iso2': 'str', 'country_iso2_alt': 'str' } @@ -46,19 +45,17 @@ class FirstLastNamePhoneNumberGeoIn(object): 'first_name': 'firstName', 'last_name': 'lastName', 'phone_number': 'phoneNumber', - 'first_last_name_origined_out': 'FirstLastNameOriginedOut', 'country_iso2': 'countryIso2', 'country_iso2_alt': 'countryIso2Alt' } - def __init__(self, id=None, first_name=None, last_name=None, phone_number=None, first_last_name_origined_out=None, country_iso2=None, country_iso2_alt=None): # noqa: E501 + def __init__(self, id=None, first_name=None, last_name=None, phone_number=None, country_iso2=None, country_iso2_alt=None): # noqa: E501 """FirstLastNamePhoneNumberGeoIn - a model defined in OpenAPI""" # noqa: E501 self._id = None self._first_name = None self._last_name = None self._phone_number = None - self._first_last_name_origined_out = None self._country_iso2 = None self._country_iso2_alt = None self.discriminator = None @@ -71,8 +68,6 @@ def __init__(self, id=None, first_name=None, last_name=None, phone_number=None, self.last_name = last_name if phone_number is not None: self.phone_number = phone_number - if first_last_name_origined_out is not None: - self.first_last_name_origined_out = first_last_name_origined_out if country_iso2 is not None: self.country_iso2 = country_iso2 if country_iso2_alt is not None: @@ -162,27 +157,6 @@ def phone_number(self, phone_number): self._phone_number = phone_number - @property - def first_last_name_origined_out(self): - """Gets the first_last_name_origined_out of this FirstLastNamePhoneNumberGeoIn. # noqa: E501 - - - :return: The first_last_name_origined_out of this FirstLastNamePhoneNumberGeoIn. # noqa: E501 - :rtype: FirstLastNameOriginedOut - """ - return self._first_last_name_origined_out - - @first_last_name_origined_out.setter - def first_last_name_origined_out(self, first_last_name_origined_out): - """Sets the first_last_name_origined_out of this FirstLastNamePhoneNumberGeoIn. - - - :param first_last_name_origined_out: The first_last_name_origined_out of this FirstLastNamePhoneNumberGeoIn. # noqa: E501 - :type: FirstLastNameOriginedOut - """ - - self._first_last_name_origined_out = first_last_name_origined_out - @property def country_iso2(self): """Gets the country_iso2 of this FirstLastNamePhoneNumberGeoIn. # noqa: E501 diff --git a/openapi_client/models/first_last_name_phone_number_in.py b/openapi_client/models/first_last_name_phone_number_in.py index 30ed339..1af2809 100644 --- a/openapi_client/models/first_last_name_phone_number_in.py +++ b/openapi_client/models/first_last_name_phone_number_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -35,26 +35,23 @@ class FirstLastNamePhoneNumberIn(object): 'id': 'str', 'first_name': 'str', 'last_name': 'str', - 'phone_number': 'str', - 'first_last_name_origined_out': 'FirstLastNameOriginedOut' + 'phone_number': 'str' } attribute_map = { 'id': 'id', 'first_name': 'firstName', 'last_name': 'lastName', - 'phone_number': 'phoneNumber', - 'first_last_name_origined_out': 'FirstLastNameOriginedOut' + 'phone_number': 'phoneNumber' } - def __init__(self, id=None, first_name=None, last_name=None, phone_number=None, first_last_name_origined_out=None): # noqa: E501 + def __init__(self, id=None, first_name=None, last_name=None, phone_number=None): # noqa: E501 """FirstLastNamePhoneNumberIn - a model defined in OpenAPI""" # noqa: E501 self._id = None self._first_name = None self._last_name = None self._phone_number = None - self._first_last_name_origined_out = None self.discriminator = None if id is not None: @@ -65,8 +62,6 @@ def __init__(self, id=None, first_name=None, last_name=None, phone_number=None, self.last_name = last_name if phone_number is not None: self.phone_number = phone_number - if first_last_name_origined_out is not None: - self.first_last_name_origined_out = first_last_name_origined_out @property def id(self): @@ -152,27 +147,6 @@ def phone_number(self, phone_number): self._phone_number = phone_number - @property - def first_last_name_origined_out(self): - """Gets the first_last_name_origined_out of this FirstLastNamePhoneNumberIn. # noqa: E501 - - - :return: The first_last_name_origined_out of this FirstLastNamePhoneNumberIn. # noqa: E501 - :rtype: FirstLastNameOriginedOut - """ - return self._first_last_name_origined_out - - @first_last_name_origined_out.setter - def first_last_name_origined_out(self, first_last_name_origined_out): - """Sets the first_last_name_origined_out of this FirstLastNamePhoneNumberIn. - - - :param first_last_name_origined_out: The first_last_name_origined_out of this FirstLastNamePhoneNumberIn. # noqa: E501 - :type: FirstLastNameOriginedOut - """ - - self._first_last_name_origined_out = first_last_name_origined_out - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/openapi_client/models/first_last_name_us_race_ethnicity_out.py b/openapi_client/models/first_last_name_us_race_ethnicity_out.py index d023413..9b638e9 100644 --- a/openapi_client/models/first_last_name_us_race_ethnicity_out.py +++ b/openapi_client/models/first_last_name_us_race_ethnicity_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -293,7 +293,7 @@ def race_ethnicities_top(self, race_ethnicities_top): def probability_calibrated(self): """Gets the probability_calibrated of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 - The calibrated probability for raceEthnicity to have been guessed correctly. # noqa: E501 + The calibrated probability for raceEthnicity to have been guessed correctly. -1 = still calibrating. # noqa: E501 :return: The probability_calibrated of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 :rtype: float @@ -304,11 +304,15 @@ def probability_calibrated(self): def probability_calibrated(self, probability_calibrated): """Sets the probability_calibrated of this FirstLastNameUSRaceEthnicityOut. - The calibrated probability for raceEthnicity to have been guessed correctly. # noqa: E501 + The calibrated probability for raceEthnicity to have been guessed correctly. -1 = still calibrating. # noqa: E501 :param probability_calibrated: The probability_calibrated of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 :type: float """ + if probability_calibrated is not None and probability_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_calibrated is not None and probability_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 self._probability_calibrated = probability_calibrated @@ -316,7 +320,7 @@ def probability_calibrated(self, probability_calibrated): def probability_alt_calibrated(self): """Gets the probability_alt_calibrated of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 - The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. # noqa: E501 + The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 :return: The probability_alt_calibrated of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 :rtype: float @@ -327,11 +331,15 @@ def probability_alt_calibrated(self): def probability_alt_calibrated(self, probability_alt_calibrated): """Sets the probability_alt_calibrated of this FirstLastNameUSRaceEthnicityOut. - The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. # noqa: E501 + The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 :param probability_alt_calibrated: The probability_alt_calibrated of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 :type: float """ + if probability_alt_calibrated is not None and probability_alt_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_alt_calibrated is not None and probability_alt_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 self._probability_alt_calibrated = probability_alt_calibrated diff --git a/openapi_client/models/match_personal_first_last_name_in.py b/openapi_client/models/match_personal_first_last_name_in.py index e27b9e9..9771b60 100644 --- a/openapi_client/models/match_personal_first_last_name_in.py +++ b/openapi_client/models/match_personal_first_last_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/name_geo_in.py b/openapi_client/models/name_geo_in.py index ecb1276..95ab980 100644 --- a/openapi_client/models/name_geo_in.py +++ b/openapi_client/models/name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/name_in.py b/openapi_client/models/name_in.py index 6a4224e..65d8f65 100644 --- a/openapi_client/models/name_in.py +++ b/openapi_client/models/name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/name_match_candidate_out.py b/openapi_client/models/name_match_candidate_out.py index 165ac3c..25d278c 100644 --- a/openapi_client/models/name_match_candidate_out.py +++ b/openapi_client/models/name_match_candidate_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/name_match_candidates_out.py b/openapi_client/models/name_match_candidates_out.py index b94d071..7c97172 100644 --- a/openapi_client/models/name_match_candidates_out.py +++ b/openapi_client/models/name_match_candidates_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/name_matched_out.py b/openapi_client/models/name_matched_out.py index af43e35..bbcdac2 100644 --- a/openapi_client/models/name_matched_out.py +++ b/openapi_client/models/name_matched_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -125,6 +125,12 @@ def match_status(self, match_status): :param match_status: The match_status of this NameMatchedOut. # noqa: E501 :type: str """ + allowed_values = ["Match", "Mismatch"] # noqa: E501 + if match_status not in allowed_values: + raise ValueError( + "Invalid value for `match_status` ({0}), must be one of {1}" # noqa: E501 + .format(match_status, allowed_values) + ) self._match_status = match_status diff --git a/openapi_client/models/personal_name_gendered_out.py b/openapi_client/models/personal_name_gendered_out.py index 08b2b39..e569af7 100644 --- a/openapi_client/models/personal_name_gendered_out.py +++ b/openapi_client/models/personal_name_gendered_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -176,7 +176,7 @@ def likely_gender(self, likely_gender): def gender_scale(self): """Gets the gender_scale of this PersonalNameGenderedOut. # noqa: E501 - Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value # noqa: E501 + Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. # noqa: E501 :return: The gender_scale of this PersonalNameGenderedOut. # noqa: E501 :rtype: float @@ -187,11 +187,15 @@ def gender_scale(self): def gender_scale(self, gender_scale): """Sets the gender_scale of this PersonalNameGenderedOut. - Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value # noqa: E501 + Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value. # noqa: E501 :param gender_scale: The gender_scale of this PersonalNameGenderedOut. # noqa: E501 :type: float """ + if gender_scale is not None and gender_scale > 1: # noqa: E501 + raise ValueError("Invalid value for `gender_scale`, must be a value less than or equal to `1`") # noqa: E501 + if gender_scale is not None and gender_scale < -1: # noqa: E501 + raise ValueError("Invalid value for `gender_scale`, must be a value greater than or equal to `-1`") # noqa: E501 self._gender_scale = gender_scale @@ -226,7 +230,7 @@ def score(self, score): def probability_calibrated(self): """Gets the probability_calibrated of this PersonalNameGenderedOut. # noqa: E501 - The calibrated probability for inferred gender to have been guessed correctly. # noqa: E501 + The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. # noqa: E501 :return: The probability_calibrated of this PersonalNameGenderedOut. # noqa: E501 :rtype: float @@ -237,11 +241,15 @@ def probability_calibrated(self): def probability_calibrated(self, probability_calibrated): """Sets the probability_calibrated of this PersonalNameGenderedOut. - The calibrated probability for inferred gender to have been guessed correctly. # noqa: E501 + The calibrated probability for inferred gender to have been guessed correctly. -1 = still calibrating. # noqa: E501 :param probability_calibrated: The probability_calibrated of this PersonalNameGenderedOut. # noqa: E501 :type: float """ + if probability_calibrated is not None and probability_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_calibrated is not None and probability_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 self._probability_calibrated = probability_calibrated diff --git a/openapi_client/models/personal_name_geo_in.py b/openapi_client/models/personal_name_geo_in.py index 8290f5f..0843f9e 100644 --- a/openapi_client/models/personal_name_geo_in.py +++ b/openapi_client/models/personal_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/personal_name_geo_out.py b/openapi_client/models/personal_name_geo_out.py index 2eb438b..8412870 100644 --- a/openapi_client/models/personal_name_geo_out.py +++ b/openapi_client/models/personal_name_geo_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -337,7 +337,7 @@ def countries_top(self, countries_top): def probability_calibrated(self): """Gets the probability_calibrated of this PersonalNameGeoOut. # noqa: E501 - The calibrated probability for country to have been guessed correctly. # noqa: E501 + The calibrated probability for country to have been guessed correctly. -1 = still calibrating. # noqa: E501 :return: The probability_calibrated of this PersonalNameGeoOut. # noqa: E501 :rtype: float @@ -348,11 +348,15 @@ def probability_calibrated(self): def probability_calibrated(self, probability_calibrated): """Sets the probability_calibrated of this PersonalNameGeoOut. - The calibrated probability for country to have been guessed correctly. # noqa: E501 + The calibrated probability for country to have been guessed correctly. -1 = still calibrating. # noqa: E501 :param probability_calibrated: The probability_calibrated of this PersonalNameGeoOut. # noqa: E501 :type: float """ + if probability_calibrated is not None and probability_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_calibrated is not None and probability_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 self._probability_calibrated = probability_calibrated @@ -360,7 +364,7 @@ def probability_calibrated(self, probability_calibrated): def probability_alt_calibrated(self): """Gets the probability_alt_calibrated of this PersonalNameGeoOut. # noqa: E501 - The calibrated probability for country OR countryAlt to have been guessed correctly. # noqa: E501 + The calibrated probability for country OR countryAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 :return: The probability_alt_calibrated of this PersonalNameGeoOut. # noqa: E501 :rtype: float @@ -371,11 +375,15 @@ def probability_alt_calibrated(self): def probability_alt_calibrated(self, probability_alt_calibrated): """Sets the probability_alt_calibrated of this PersonalNameGeoOut. - The calibrated probability for country OR countryAlt to have been guessed correctly. # noqa: E501 + The calibrated probability for country OR countryAlt to have been guessed correctly. -1 = still calibrating. # noqa: E501 :param probability_alt_calibrated: The probability_alt_calibrated of this PersonalNameGeoOut. # noqa: E501 :type: float """ + if probability_alt_calibrated is not None and probability_alt_calibrated > 1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value less than or equal to `1`") # noqa: E501 + if probability_alt_calibrated is not None and probability_alt_calibrated < -1: # noqa: E501 + raise ValueError("Invalid value for `probability_alt_calibrated`, must be a value greater than or equal to `-1`") # noqa: E501 self._probability_alt_calibrated = probability_alt_calibrated diff --git a/openapi_client/models/personal_name_in.py b/openapi_client/models/personal_name_in.py index 1b928ff..ce9b2bb 100644 --- a/openapi_client/models/personal_name_in.py +++ b/openapi_client/models/personal_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/personal_name_parsed_out.py b/openapi_client/models/personal_name_parsed_out.py index 4e55f4a..4dfec61 100644 --- a/openapi_client/models/personal_name_parsed_out.py +++ b/openapi_client/models/personal_name_parsed_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -163,6 +163,12 @@ def name_parser_type(self, name_parser_type): :param name_parser_type: The name_parser_type of this PersonalNameParsedOut. # noqa: E501 :type: str """ + allowed_values = ["FN1LN1", "LN1FN1", "FN1LN2", "LN2FN1", "FN1LNx", "LNxFN1", "FN2LN1", "LN1FN2", "FN2LN2", "LN2FN2", "FN2LNx", "LNxFN2", "FNxLN1", "LN1FNx", "FNxLN2", "LN2FNx", "FNxLNx", "LNxFNx"] # noqa: E501 + if name_parser_type not in allowed_values: + raise ValueError( + "Invalid value for `name_parser_type` ({0}), must be one of {1}" # noqa: E501 + .format(name_parser_type, allowed_values) + ) self._name_parser_type = name_parser_type @@ -186,6 +192,12 @@ def name_parser_type_alt(self, name_parser_type_alt): :param name_parser_type_alt: The name_parser_type_alt of this PersonalNameParsedOut. # noqa: E501 :type: str """ + allowed_values = ["FN1LN1", "LN1FN1", "FN1LN2", "LN2FN1", "FN1LNx", "LNxFN1", "FN2LN1", "LN1FN2", "FN2LN2", "LN2FN2", "FN2LNx", "LNxFN2", "FNxLN1", "LN1FNx", "FNxLN2", "LN2FNx", "FNxLNx", "LNxFNx"] # noqa: E501 + if name_parser_type_alt not in allowed_values: + raise ValueError( + "Invalid value for `name_parser_type_alt` ({0}), must be one of {1}" # noqa: E501 + .format(name_parser_type_alt, allowed_values) + ) self._name_parser_type_alt = name_parser_type_alt diff --git a/openapi_client/models/proper_noun_categorized_out.py b/openapi_client/models/proper_noun_categorized_out.py index 04b0ce9..ac3f246 100644 --- a/openapi_client/models/proper_noun_categorized_out.py +++ b/openapi_client/models/proper_noun_categorized_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/models/software_version_out.py b/openapi_client/models/software_version_out.py index 8a4e3d2..f9856ef 100644 --- a/openapi_client/models/software_version_out.py +++ b/openapi_client/models/software_version_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/openapi_client/rest.py b/openapi_client/rest.py index 5e07e83..fa139c3 100644 --- a/openapi_client/rest.py +++ b/openapi_client/rest.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/run-python.bash b/run-python.bash index 25fd199..5184fd3 100755 --- a/run-python.bash +++ b/run-python.bash @@ -2,7 +2,7 @@ echo update openapi-generator ./bin/utils/openapi-generator-cli.sh rm -Rf ./namsor/client/python/* echo run openapi-generator -java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate --git-repo-id namsor-python-sdk2 --git-user-id namsor --skip-validate-spec -i https://v2.namsor.com/NamSorAPIv2/api2/openapi.json -g python -o namsor/client/python --additional-properties packageVersion=2.0.15 +java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate --git-repo-id namsor-python-sdk2 --git-user-id namsor --skip-validate-spec -i https://v2.namsor.com/NamSorAPIv2/api2/openapi.json -g python -o namsor/client/python --additional-properties packageVersion=2.0.18 #~/dropbox_uploader.sh upload namsor-sdk2-1.0.0.jar namsor-sdk2-1.0.0.jar #~/dropbox_uploader.sh upload namsor-sdk2-1.0.0-javadoc.jar namsor-sdk2-1.0.0-javadoc.jar #~/dropbox_uploader.sh upload namsor-sdk2-1.0.0-sources.jar namsor-sdk2-1.0.0-sources.jar diff --git a/setup.py b/setup.py index 0e00b69..14f323c 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "openapi-client" -VERSION = "2.0.15" +VERSION = "2.0.18" # To install the library, run the following # # python setup.py install diff --git a/test/test_admin_api.py b/test/test_admin_api.py index db77de3..8fc7903 100644 --- a/test/test_admin_api.py +++ b/test/test_admin_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -36,6 +36,20 @@ def test_anonymize(self): """ pass + def test_anonymize1(self): + """Test case for anonymize1 + + Activate/deactivate anonymization for a source. # noqa: E501 + """ + pass + + def test_api_key_info(self): + """Test case for api_key_info + + Read API Key info. # noqa: E501 + """ + pass + def test_api_status(self): """Test case for api_status @@ -85,6 +99,13 @@ def test_learnable(self): """ pass + def test_learnable1(self): + """Test case for learnable1 + + Activate/deactivate learning from a source. # noqa: E501 + """ + pass + def test_software_version(self): """Test case for software_version diff --git a/test/test_api_billing_period_usage_out.py b/test/test_api_billing_period_usage_out.py index 3f6b761..5032ddb 100644 --- a/test/test_api_billing_period_usage_out.py +++ b/test/test_api_billing_period_usage_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_classifier_out.py b/test/test_api_classifier_out.py index 3668d11..8675ed6 100644 --- a/test/test_api_classifier_out.py +++ b/test/test_api_classifier_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_classifier_taxonomy_out.py b/test/test_api_classifier_taxonomy_out.py index e1c9a58..6d48637 100644 --- a/test/test_api_classifier_taxonomy_out.py +++ b/test/test_api_classifier_taxonomy_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_classifiers_status_out.py b/test/test_api_classifiers_status_out.py index f3c427c..0505f23 100644 --- a/test/test_api_classifiers_status_out.py +++ b/test/test_api_classifiers_status_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_counter_v2_out.py b/test/test_api_counter_v2_out.py index 44316a4..3a49bf0 100644 --- a/test/test_api_counter_v2_out.py +++ b/test/test_api_counter_v2_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_key_out.py b/test/test_api_key_out.py index b4a9914..6437dae 100644 --- a/test/test_api_key_out.py +++ b/test/test_api_key_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_period_usage_out.py b/test/test_api_period_usage_out.py index bfc3337..46914cd 100644 --- a/test/test_api_period_usage_out.py +++ b/test/test_api_period_usage_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_plan_subscription_out.py b/test/test_api_plan_subscription_out.py index 61333a0..ba7354e 100644 --- a/test/test_api_plan_subscription_out.py +++ b/test/test_api_plan_subscription_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_service_out.py b/test/test_api_service_out.py index 1fd2826..583283b 100644 --- a/test/test_api_service_out.py +++ b/test/test_api_service_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_services_out.py b/test/test_api_services_out.py index 896138b..8be4ab4 100644 --- a/test/test_api_services_out.py +++ b/test/test_api_services_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_usage_aggregated_out.py b/test/test_api_usage_aggregated_out.py index 8bedd2b..12a36b4 100644 --- a/test/test_api_usage_aggregated_out.py +++ b/test/test_api_usage_aggregated_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_api_usage_history_out.py b/test/test_api_usage_history_out.py index 69e722a..bfd7482 100644 --- a/test/test_api_usage_history_out.py +++ b/test/test_api_usage_history_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_corridor_in.py b/test/test_batch_corridor_in.py index 05c6fcc..5dead63 100644 --- a/test/test_batch_corridor_in.py +++ b/test/test_batch_corridor_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_corridor_out.py b/test/test_batch_corridor_out.py index 6a941e9..4bcf920 100644 --- a/test/test_batch_corridor_out.py +++ b/test/test_batch_corridor_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_diasporaed_out.py b/test/test_batch_first_last_name_diasporaed_out.py index 13c68b2..4588845 100644 --- a/test/test_batch_first_last_name_diasporaed_out.py +++ b/test/test_batch_first_last_name_diasporaed_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_gender_in.py b/test/test_batch_first_last_name_gender_in.py index 57886c7..74aefd5 100644 --- a/test/test_batch_first_last_name_gender_in.py +++ b/test/test_batch_first_last_name_gender_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_gendered_out.py b/test/test_batch_first_last_name_gendered_out.py index bc8903e..1af5d5c 100644 --- a/test/test_batch_first_last_name_gendered_out.py +++ b/test/test_batch_first_last_name_gendered_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_geo_in.py b/test/test_batch_first_last_name_geo_in.py index 7eac227..016e468 100644 --- a/test/test_batch_first_last_name_geo_in.py +++ b/test/test_batch_first_last_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_geo_subclassification_out.py b/test/test_batch_first_last_name_geo_subclassification_out.py new file mode 100644 index 0000000..dcafe55 --- /dev/null +++ b/test/test_batch_first_last_name_geo_subclassification_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.18 + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.models.batch_first_last_name_geo_subclassification_out import BatchFirstLastNameGeoSubclassificationOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNameGeoSubclassificationOut(unittest.TestCase): + """BatchFirstLastNameGeoSubclassificationOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNameGeoSubclassificationOut(self): + """Test BatchFirstLastNameGeoSubclassificationOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_geo_subclassification_out.BatchFirstLastNameGeoSubclassificationOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_geo_zipped_in.py b/test/test_batch_first_last_name_geo_zipped_in.py index c94adf3..3297b7b 100644 --- a/test/test_batch_first_last_name_geo_zipped_in.py +++ b/test/test_batch_first_last_name_geo_zipped_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_in.py b/test/test_batch_first_last_name_in.py index 7051b91..93631db 100644 --- a/test/test_batch_first_last_name_in.py +++ b/test/test_batch_first_last_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_origined_out.py b/test/test_batch_first_last_name_origined_out.py index 1438125..32e0d63 100644 --- a/test/test_batch_first_last_name_origined_out.py +++ b/test/test_batch_first_last_name_origined_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_phone_coded_out.py b/test/test_batch_first_last_name_phone_coded_out.py index 3f435ca..4281123 100644 --- a/test/test_batch_first_last_name_phone_coded_out.py +++ b/test/test_batch_first_last_name_phone_coded_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_phone_number_geo_in.py b/test/test_batch_first_last_name_phone_number_geo_in.py index 3f822fe..2ca208f 100644 --- a/test/test_batch_first_last_name_phone_number_geo_in.py +++ b/test/test_batch_first_last_name_phone_number_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_phone_number_in.py b/test/test_batch_first_last_name_phone_number_in.py index 71a735b..3bd3f72 100644 --- a/test/test_batch_first_last_name_phone_number_in.py +++ b/test/test_batch_first_last_name_phone_number_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_first_last_name_us_race_ethnicity_out.py b/test/test_batch_first_last_name_us_race_ethnicity_out.py index c9e3bd3..ecbc4c8 100644 --- a/test/test_batch_first_last_name_us_race_ethnicity_out.py +++ b/test/test_batch_first_last_name_us_race_ethnicity_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_match_personal_first_last_name_in.py b/test/test_batch_match_personal_first_last_name_in.py index 041d923..eec4a46 100644 --- a/test/test_batch_match_personal_first_last_name_in.py +++ b/test/test_batch_match_personal_first_last_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_name_geo_in.py b/test/test_batch_name_geo_in.py index e7b6fcf..f661fd4 100644 --- a/test/test_batch_name_geo_in.py +++ b/test/test_batch_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_name_in.py b/test/test_batch_name_in.py index 075e722..9e115ad 100644 --- a/test/test_batch_name_in.py +++ b/test/test_batch_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_name_match_candidates_out.py b/test/test_batch_name_match_candidates_out.py index 1413df5..ca10de9 100644 --- a/test/test_batch_name_match_candidates_out.py +++ b/test/test_batch_name_match_candidates_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_name_matched_out.py b/test/test_batch_name_matched_out.py index ed01d45..e91dc6a 100644 --- a/test/test_batch_name_matched_out.py +++ b/test/test_batch_name_matched_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_personal_name_gendered_out.py b/test/test_batch_personal_name_gendered_out.py index f84361b..68d9d63 100644 --- a/test/test_batch_personal_name_gendered_out.py +++ b/test/test_batch_personal_name_gendered_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_personal_name_geo_in.py b/test/test_batch_personal_name_geo_in.py index 8eec3f9..151809b 100644 --- a/test/test_batch_personal_name_geo_in.py +++ b/test/test_batch_personal_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_personal_name_geo_out.py b/test/test_batch_personal_name_geo_out.py index 16af726..464e2f6 100644 --- a/test/test_batch_personal_name_geo_out.py +++ b/test/test_batch_personal_name_geo_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_personal_name_in.py b/test/test_batch_personal_name_in.py index 736c6aa..fd05963 100644 --- a/test/test_batch_personal_name_in.py +++ b/test/test_batch_personal_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_personal_name_parsed_out.py b/test/test_batch_personal_name_parsed_out.py index 5dbedbe..62896a3 100644 --- a/test/test_batch_personal_name_parsed_out.py +++ b/test/test_batch_personal_name_parsed_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_batch_proper_noun_categorized_out.py b/test/test_batch_proper_noun_categorized_out.py index ede52b8..f33723a 100644 --- a/test/test_batch_proper_noun_categorized_out.py +++ b/test/test_batch_proper_noun_categorized_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_chinese_api.py b/test/test_chinese_api.py index c487699..f5b770f 100644 --- a/test/test_chinese_api.py +++ b/test/test_chinese_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_corridor_in.py b/test/test_corridor_in.py index 73188b0..c8e8c9c 100644 --- a/test/test_corridor_in.py +++ b/test/test_corridor_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_corridor_out.py b/test/test_corridor_out.py index 25f0f9e..2a54ebb 100644 --- a/test/test_corridor_out.py +++ b/test/test_corridor_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_feedback_loop_out.py b/test/test_feedback_loop_out.py index d83b4b2..de4efe2 100644 --- a/test/test_feedback_loop_out.py +++ b/test/test_feedback_loop_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_diasporaed_out.py b/test/test_first_last_name_diasporaed_out.py index 435e903..a27cae3 100644 --- a/test/test_first_last_name_diasporaed_out.py +++ b/test/test_first_last_name_diasporaed_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_gender_in.py b/test/test_first_last_name_gender_in.py index 85f7978..c386de1 100644 --- a/test/test_first_last_name_gender_in.py +++ b/test/test_first_last_name_gender_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_gendered_out.py b/test/test_first_last_name_gendered_out.py index b1f6807..3eea237 100644 --- a/test/test_first_last_name_gendered_out.py +++ b/test/test_first_last_name_gendered_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_geo_in.py b/test/test_first_last_name_geo_in.py index 0d8f26f..7d9d210 100644 --- a/test/test_first_last_name_geo_in.py +++ b/test/test_first_last_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_geo_subclassification_out.py b/test/test_first_last_name_geo_subclassification_out.py new file mode 100644 index 0000000..fb2fd71 --- /dev/null +++ b/test/test_first_last_name_geo_subclassification_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.18 + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.models.first_last_name_geo_subclassification_out import FirstLastNameGeoSubclassificationOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNameGeoSubclassificationOut(unittest.TestCase): + """FirstLastNameGeoSubclassificationOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNameGeoSubclassificationOut(self): + """Test FirstLastNameGeoSubclassificationOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_geo_subclassification_out.FirstLastNameGeoSubclassificationOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_geo_zipped_in.py b/test/test_first_last_name_geo_zipped_in.py index 863c95f..d33b0be 100644 --- a/test/test_first_last_name_geo_zipped_in.py +++ b/test/test_first_last_name_geo_zipped_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_in.py b/test/test_first_last_name_in.py index bd7a95e..f142503 100644 --- a/test/test_first_last_name_in.py +++ b/test/test_first_last_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_origined_out.py b/test/test_first_last_name_origined_out.py index 0651e3f..4daf9ff 100644 --- a/test/test_first_last_name_origined_out.py +++ b/test/test_first_last_name_origined_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_out.py b/test/test_first_last_name_out.py index 9b1ebef..611158c 100644 --- a/test/test_first_last_name_out.py +++ b/test/test_first_last_name_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_phone_coded_out.py b/test/test_first_last_name_phone_coded_out.py index 961a46a..cb8b65b 100644 --- a/test/test_first_last_name_phone_coded_out.py +++ b/test/test_first_last_name_phone_coded_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_phone_number_geo_in.py b/test/test_first_last_name_phone_number_geo_in.py index d964a35..ab59b74 100644 --- a/test/test_first_last_name_phone_number_geo_in.py +++ b/test/test_first_last_name_phone_number_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_phone_number_in.py b/test/test_first_last_name_phone_number_in.py index b3a1267..7ab3f40 100644 --- a/test/test_first_last_name_phone_number_in.py +++ b/test/test_first_last_name_phone_number_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_first_last_name_us_race_ethnicity_out.py b/test/test_first_last_name_us_race_ethnicity_out.py index 2251b60..4169bc5 100644 --- a/test/test_first_last_name_us_race_ethnicity_out.py +++ b/test/test_first_last_name_us_race_ethnicity_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_general_api.py b/test/test_general_api.py index 5264bac..e114692 100644 --- a/test/test_general_api.py +++ b/test/test_general_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_japanese_api.py b/test/test_japanese_api.py index c341a57..4db6c34 100644 --- a/test/test_japanese_api.py +++ b/test/test_japanese_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -67,14 +67,14 @@ def test_japanese_name_gender_kanji_candidates_batch(self): def test_japanese_name_kanji_candidates(self): """Test case for japanese_name_kanji_candidates - Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. # noqa: E501 + Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae # noqa: E501 """ pass def test_japanese_name_kanji_candidates1(self): """Test case for japanese_name_kanji_candidates1 - Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae # noqa: E501 + Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. # noqa: E501 """ pass diff --git a/test/test_match_personal_first_last_name_in.py b/test/test_match_personal_first_last_name_in.py index 0cd7aa9..140037a 100644 --- a/test/test_match_personal_first_last_name_in.py +++ b/test/test_match_personal_first_last_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_name_geo_in.py b/test/test_name_geo_in.py index b9ab936..c98d5cc 100644 --- a/test/test_name_geo_in.py +++ b/test/test_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_name_in.py b/test/test_name_in.py index b2452ae..73d8a10 100644 --- a/test/test_name_in.py +++ b/test/test_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_name_match_candidate_out.py b/test/test_name_match_candidate_out.py index 33efe82..2456efe 100644 --- a/test/test_name_match_candidate_out.py +++ b/test/test_name_match_candidate_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_name_match_candidates_out.py b/test/test_name_match_candidates_out.py index ea499e1..9c13f9d 100644 --- a/test/test_name_match_candidates_out.py +++ b/test/test_name_match_candidates_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_name_matched_out.py b/test/test_name_matched_out.py index 0e9d181..34382cd 100644 --- a/test/test_name_matched_out.py +++ b/test/test_name_matched_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_personal_api.py b/test/test_personal_api.py index 6b2bc79..d60f781 100644 --- a/test/test_personal_api.py +++ b/test/test_personal_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ @@ -78,6 +78,13 @@ def test_gender(self): """ pass + def test_gender1(self): + """Test case for gender1 + + Infer the likely gender of a just a fiven name, assuming default 'US' local context. Please use preferably full names and local geographic context for better accuracy. # noqa: E501 + """ + pass + def test_gender_batch(self): """Test case for gender_batch @@ -169,6 +176,20 @@ def test_parse_name_geo_batch(self): """ pass + def test_subclassification(self): + """Test case for subclassification + + [USES 10 UNITS PER NAME] Infer the likely origin of a name at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). # noqa: E501 + """ + pass + + def test_subclassification_batch(self): + """Test case for subclassification_batch + + [USES 10 UNITS PER NAME] Infer the likely origin of a list of up to 100 names at a country subclassification level (state or regeion). Initially, this is only supported for India (ISO2 code 'IN'). # noqa: E501 + """ + pass + def test_us_race_ethnicity(self): """Test case for us_race_ethnicity diff --git a/test/test_personal_name_gendered_out.py b/test/test_personal_name_gendered_out.py index 4c5a21a..7d78ba8 100644 --- a/test/test_personal_name_gendered_out.py +++ b/test/test_personal_name_gendered_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_personal_name_geo_in.py b/test/test_personal_name_geo_in.py index 384397c..148f05e 100644 --- a/test/test_personal_name_geo_in.py +++ b/test/test_personal_name_geo_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_personal_name_geo_out.py b/test/test_personal_name_geo_out.py index d8ab106..78a76dd 100644 --- a/test/test_personal_name_geo_out.py +++ b/test/test_personal_name_geo_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_personal_name_in.py b/test/test_personal_name_in.py index 949ab3b..026f32e 100644 --- a/test/test_personal_name_in.py +++ b/test/test_personal_name_in.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_personal_name_parsed_out.py b/test/test_personal_name_parsed_out.py index 5657568..e0c5421 100644 --- a/test/test_personal_name_parsed_out.py +++ b/test/test_personal_name_parsed_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_proper_noun_categorized_out.py b/test/test_proper_noun_categorized_out.py index 5352a39..0714af0 100644 --- a/test/test_proper_noun_categorized_out.py +++ b/test/test_proper_noun_categorized_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_social_api.py b/test/test_social_api.py index 0aa5684..a122994 100644 --- a/test/test_social_api.py +++ b/test/test_social_api.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_software_version_out.py b/test/test_software_version_out.py index a2c26e8..b0b9a5f 100644 --- a/test/test_software_version_out.py +++ b/test/test_software_version_out.py @@ -5,7 +5,7 @@ NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 - OpenAPI spec version: 2.0.15 + OpenAPI spec version: 2.0.18 Contact: contact@namsor.com Generated by: https://openapi-generator.tech """