Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MrS0m30n3/google-translate
/ functions
Functions
572 in github.com/MrS0m30n3/google-translate
⨍
Functions
572
◇
Types & classes
28
↳
Endpoints
56
Method
test_load_from_HTTP
(self, mock_get_from_http, mock_append_to_list)
tests/test_useragent_selector.py:106
Method
test_load_from_HTTP_nomock
(self)
tests/test_useragent_selector.py:194
Method
test_load_from_file
(self, mock_path_exists, mock_open, mock_decode_string)
tests/test_utils.py:125
Method
test_load_from_file
(self, mock_load_from_file, mock_append_to_list)
tests/test_useragent_selector.py:80
Method
test_load_from_file_and_HTTP
(self, mock_load_from_file, mock_get_from_http, mock_append_to_list)
tests/test_useragent_selector.py:135
Method
test_load_success
(self, mock_get_dict)
tests/test_cache.py:267
Method
test_load_success_cache_smaller_than_file
(self, mock_get_dict)
tests/test_cache.py:287
Method
test_make_request
(self, mock_build_opener, mock_proxy_handler)
tests/test_utils.py:166
Method
test_multiple_from_file
(self, mock_load_from_file, mock_valid_proxy)
tests/test_proxy_selector.py:250
Method
test_multiple_from_file_overwrite
(self, mock_load_from_file, mock_valid_proxy)
tests/test_proxy_selector.py:272
Method
test_multiple_ua_overwrite
(self)
tests/test_useragent_selector.py:151
Method
test_multiple_ua_single_mode
(self, mock_get_useragent)
tests/test_useragent_selector.py:160
Method
test_parse_reply
(self, mock_ungzip, mock_decode_string)
tests/test_utils.py:218
Method
test_quote_unicode
(self)
tests/test_utils.py:80
Method
test_random_selection
(self, mock_rand_choice, mock_get_from_http)
tests/test_useragent_selector.py:171
Method
test_remove_inputs
(self)
tests/test_proxy_selector.py:99
Method
test_remove_old
(self, mock_valid_timestamp)
tests/test_cache.py:221
Method
test_remove_old_empty_cache
(self, mock_valid_timestamp)
tests/test_cache.py:234
Method
test_remove_reset_counter
(self)
tests/test_proxy_selector.py:194
Method
test_remove_with_multiple_proxies
(self)
tests/test_proxy_selector.py:123
Method
test_remove_with_multiple_proxies_fallback_prevention
(self)
tests/test_proxy_selector.py:140
Method
test_remove_with_multiple_proxies_overwrite
(self)
tests/test_proxy_selector.py:150
Method
test_remove_with_multiple_proxies_overwrite_fallback_prevention
(self)
tests/test_proxy_selector.py:167
Method
test_remove_with_single_proxy
(self)
tests/test_proxy_selector.py:116
Method
test_remove_with_single_proxy_fallback_prevention
(self)
tests/test_proxy_selector.py:133
Method
test_repr
(self)
tests/test_cache.py:113
Method
test_romanize
(self, mock_get_info)
tests/test_google_translate.py:764
Method
test_romanize
(self, mock_do_work, mock_val_lang)
tests/test_google_translate.py:1015
Method
test_romanize_full
(self)
tests/test_google_translate.py:1030
Method
test_single_ua_mode
(self)
tests/test_useragent_selector.py:128
Method
test_size
(self)
tests/test_cache.py:122
Method
test_split_text_empty_text
(self)
tests/test_utils.py:39
Method
test_split_text_invalid_maxchunk
(self)
tests/test_utils.py:32
Method
test_split_text_invalid_text
(self)
tests/test_utils.py:28
Method
test_split_text_large_text
(self)
tests/test_utils.py:61
Method
test_split_text_length_greater_than_maxchunk
(self)
tests/test_utils.py:47
Method
test_split_text_length_smaller_than_maxchunk
(self)
tests/test_utils.py:43
Method
test_split_text_quoted_text
(self)
tests/test_utils.py:66
Method
test_store_failure
(self, mock_write_dict)
tests/test_cache.py:257
Method
test_store_success
(self, mock_write_dict)
tests/test_cache.py:247
Method
test_string_to_json
(self, mock_json_loads)
tests/test_google_translate.py:241
Method
test_string_to_json_old
(self, mock_json_loads)
tests/test_google_translate.py:223
Method
test_translate
(self, mock_get_info)
tests/test_google_translate.py:663
Method
test_translate
(self, mock_do_work, mock_val_lang)
tests/test_google_translate.py:932
Method
test_translate_full
(self)
tests/test_google_translate.py:950
Method
test_try_make_request
(self, mock_make_request, mock_wait, mock_get_proxy, mock_get_headers)
tests/test_google_translate.py:516
Method
test_try_make_request_remove_proxy
(self, mock_make_request, mock_wait, mock_get_proxy)
tests/test_google_translate.py:500
Method
test_ungzip_stream
(self, mock_stringio, mock_gzipfile)
tests/test_utils.py:148
Method
test_unquote_unicode
(self)
tests/test_utils.py:91
Method
test_user_specified_proxy
(self, mock_load_from_file, mock_valid_proxy)
tests/test_proxy_selector.py:243
Method
test_user_specified_ua
(self)
tests/test_useragent_selector.py:68
Method
test_valid_timestamp_false
(self, mock_time)
tests/test_cache.py:58
Method
test_valid_timestamp_true
(self, mock_time)
tests/test_cache.py:43
Method
test_validate_language
(self)
tests/test_google_translate.py:623
Method
test_validate_word
(self, mock_quote_unicode)
tests/test_google_translate.py:645
Method
test_wait
(self, mock_sleep, mock_rand_uniform)
tests/test_google_translate.py:208
Method
test_word_exists
(self, mock_get_info)
tests/test_google_translate.py:805
Method
test_write_dict_failure_on_makedirs
(self, mock_makedirs, mock_dirname, mock_isdir)
tests/test_utils.py:304
Method
test_write_dict_failure_on_open
(self, mock_dirname, mock_open)
tests/test_utils.py:293
Method
test_write_dict_invalid_dictionary
(self)
tests/test_utils.py:317
Method
test_write_dict_invalid_filename
(self)
tests/test_utils.py:314
Method
test_write_dict_success_no_dirname
(self, mock_dirname, mock_jdump, mock_open)
tests/test_utils.py:253
Method
test_write_dict_success_path_exists
(self, mock_dirname, mock_isdir, mock_jdump, mock_open)
tests/test_utils.py:265
Method
test_write_dict_success_path_not_exists
(self, mock_makedirs, mock_dirname, mock_isdir, mock_jdump, mock_open)
tests/test_utils.py:280
Function
tick
()
docs/docs/_static/jquery-1.11.1.js:7291
Function
tick
()
docs/docs/_static/jquery-3.1.0.js:6907
Function
unloadHandler
()
docs/docs/_static/jquery-3.1.0.js:720
Function
unquote_unicode
urllib2.unquote wrapper to handle unicode items.
google_translate/utils.py:247
Function
v
(a,b)
docs/docs/_static/jquery.js:2
Method
valid_period
(self)
google_translate/cache.py:84
Function
wrapper
(obj)
docs/docs/_static/underscore-1.3.1.js:946
Function
z
(b)
docs/docs/_static/js/modernizr.min.js:4
← previous
501–572 of 572, ranked by callers