SYMBOL INDEX (184 symbols across 24 files) FILE: ckanapi/cli/action.py function action (line 13) | def action(ckan, arguments, stdin=None): FILE: ckanapi/cli/batch.py function batch_actions (line 16) | def batch_actions(ckan, arguments, function batch_actions_worker (line 104) | def batch_actions_worker(ckan, arguments, function _worker_command_line (line 179) | def _worker_command_line(arguments): FILE: ckanapi/cli/ckan_click.py function api (line 9) | def api(context, args): FILE: ckanapi/cli/delete.py function delete_things (line 19) | def delete_things(ckan, thing, arguments, function extract_ids_or_names (line 114) | def extract_ids_or_names(line): function delete_things_worker (line 156) | def delete_things_worker(ckan, thing, arguments, function _worker_command_line (line 215) | def _worker_command_line(thing, arguments): FILE: ckanapi/cli/dump.py function dump_things (line 20) | def dump_things(ckan, thing, arguments, function dump_things_worker (line 137) | def dump_things_worker(ckan, thing, arguments, function _worker_command_line (line 209) | def _worker_command_line(thing, arguments): function populate_res_views (line 234) | def populate_res_views(ckan, res): FILE: ckanapi/cli/load.py function load_things (line 20) | def load_things(ckan, thing, arguments, function load_things_worker (line 113) | def load_things_worker(ckan, thing, arguments, function _worker_command_line (line 237) | def _worker_command_line(thing, arguments): function _copy_from_existing_for_update (line 261) | def _copy_from_existing_for_update(obj, existing, thing): function _upload_resources (line 277) | def _upload_resources(ckan,obj,arguments): function _upload_logo (line 296) | def _upload_logo(ckan,obj_orig): FILE: ckanapi/cli/main.py function parse_arguments (line 111) | def parse_arguments(): function main (line 116) | def main(running_with_ckan_command=False): function _switch_to_ckan_click (line 195) | def _switch_to_ckan_click(arguments): FILE: ckanapi/cli/search.py function search_datasets (line 17) | def search_datasets(ckan, arguments, stdin=None, stdout=None, stderr=None): FILE: ckanapi/cli/utils.py function completion_stats (line 11) | def completion_stats(window=1): function quiet_int_pipe (line 28) | def quiet_int_pipe(): function compact_json (line 43) | def compact_json(r, sort_keys=False): function pretty_json (line 51) | def pretty_json(r): FILE: ckanapi/cli/workers.py function worker_pool (line 4) | def worker_pool(popen_arg, num_workers, job_iterable, FILE: ckanapi/common.py class ActionShortcut (line 20) | class ActionShortcut(object): method __init__ (line 45) | def __init__(self, ckan): method __getattr__ (line 48) | def __getattr__(self, name): function is_file_like (line 64) | def is_file_like(v): function prepare_action (line 74) | def prepare_action(action, data_dict=None, apikey=None, files=None, function reverse_apicontroller_action (line 104) | def reverse_apicontroller_action(url, status, response): FILE: ckanapi/datapackage.py function create_resource (line 19) | def create_resource(resource, filename, datapackage_dir, stderr, apikey): function create_datapackage (line 44) | def create_datapackage(record, base_path, stderr, apikey): function resource_filename (line 83) | def resource_filename(dres): function populate_schema_from_datastore (line 93) | def populate_schema_from_datastore(cres, dres): function populate_datastore_res_fields (line 122) | def populate_datastore_res_fields(ckan, res): function _convert_to_datapackage_resource (line 146) | def _convert_to_datapackage_resource(resource_dict): function dataset_to_datapackage (line 185) | def dataset_to_datapackage(dataset_dict): function _rename_dict_key (line 228) | def _rename_dict_key(original_key, destination_key): function _parse_ckan_url (line 239) | def _parse_ckan_url(dataset_dict): function _parse_notes (line 248) | def _parse_notes(dataset_dict): function _parse_license (line 257) | def _parse_license(dataset_dict): function _parse_author_and_source (line 274) | def _parse_author_and_source(dataset_dict): function _parse_maintainer (line 291) | def _parse_maintainer(dataset_dict): function _parse_tags (line 306) | def _parse_tags(dataset_dict): function _parse_extras (line 317) | def _parse_extras(dataset_dict): FILE: ckanapi/errors.py class ServerIncompatibleError (line 1) | class ServerIncompatibleError(Exception): class CKANAPIError (line 8) | class CKANAPIError(Exception): method __init__ (line 19) | def __init__(self, extra_msg=None): method __str__ (line 22) | def __str__(self): class CLIError (line 26) | class CLIError(Exception): class NotAuthorized (line 39) | class NotAuthorized(CKANAPIError): class ValidationError (line 42) | class ValidationError(CKANAPIError): method __init__ (line 43) | def __init__(self, error_dict): method __str__ (line 45) | def __str__(self): class NotFound (line 48) | class NotFound(CKANAPIError): method __init__ (line 49) | def __init__(self, extra_msg=None): method __str__ (line 51) | def __str__(self): class SearchQueryError (line 54) | class SearchQueryError(CKANAPIError): class SearchError (line 57) | class SearchError(CKANAPIError): class SearchIndexError (line 60) | class SearchIndexError(CKANAPIError): FILE: ckanapi/localckan.py class LocalCKAN (line 8) | class LocalCKAN(object): method __init__ (line 18) | def __init__(self, username=None, context=None): method get_site_username (line 28) | def get_site_username(self): method call_action (line 32) | def call_action(self, action, data_dict=None, context=None, apikey=None, function _write_temp_file (line 80) | def _write_temp_file(f): FILE: ckanapi/remoteckan.py class RemoteCKAN (line 23) | class RemoteCKAN(object): method __init__ (line 38) | def __init__(self, address, apikey=None, user_agent=None, get_only=Fal... method call_action (line 59) | def call_action(self, action, data_dict=None, context=None, apikey=None, method _request_fn (line 96) | def _request_fn(self, url, data, headers, files, requests_kwargs): method _request_fn_get (line 106) | def _request_fn_get(self, url, data_dict, headers, requests_kwargs): method close (line 111) | def close(self): method __enter__ (line 117) | def __enter__(self): method __exit__ (line 120) | def __exit__(self, *args): FILE: ckanapi/testappckan.py class TestAppCKAN (line 7) | class TestAppCKAN(object): method __init__ (line 16) | def __init__(self, test_app, apikey=None): method call_action (line 21) | def call_action(self, action, data_dict=None, context=None, apikey=None, FILE: ckanapi/tests/mock/mock_ckan.py function mock_ckan (line 8) | def mock_ckan(environ, start_response): FILE: ckanapi/tests/test_call.py class TestCallAction (line 5) | class TestCallAction(unittest.TestCase): method test_local_fail (line 6) | def test_local_fail(self): method test_remote_fail (line 16) | def test_remote_fail(self): method test_test_fail (line 22) | def test_test_fail(self): FILE: ckanapi/tests/test_cli_action.py class MockCKAN (line 8) | class MockCKAN(object): method __init__ (line 9) | def __init__(self, expected_name, expected_args, response, method call_action (line 16) | def call_action(self, name, args, context=None, apikey=None, files=None, class TestCLIAction (line 28) | class TestCLIAction(unittest.TestCase): method test_pretty (line 29) | def test_pretty(self): method test_compact (line 50) | def test_compact(self): method test_compact_fallback (line 64) | def test_compact_fallback(self): method test_jsonl (line 78) | def test_jsonl(self): method test_stdin_json (line 92) | def test_stdin_json(self): method test_key_json (line 108) | def test_key_json(self): method test_bad_arg (line 122) | def test_bad_arg(self): method test_bad_key_json (line 136) | def test_bad_key_json(self): method test_key_string_or_json (line 150) | def test_key_string_or_json(self): method test_key_json_or_string (line 164) | def test_key_json_or_string(self): FILE: ckanapi/tests/test_cli_dump.py class MockCKAN (line 12) | class MockCKAN(object): method call_action (line 13) | def call_action(self, name, data_dict, requests_kwargs=None): class TestCLIDump (line 64) | class TestCLIDump(unittest.TestCase): method setUp (line 65) | def setUp(self): method test_worker_one (line 70) | def test_worker_one(self): method test_worker_two (line 82) | def test_worker_two(self): method test_worker_error (line 99) | def test_worker_error(self): method test_worker_group (line 109) | def test_worker_group(self): method test_worker_organization (line 119) | def test_worker_organization(self): method test_parent_dump_all (line 129) | def test_parent_dump_all(self): method test_parent_parallel_limit (line 159) | def test_parent_parallel_limit(self): method test_parent_id_argument (line 189) | def test_parent_id_argument(self): method test_parent_maintain_order (line 220) | def test_parent_maintain_order(self): method test_parent_datapackages (line 254) | def test_parent_datapackages(self): method test_resource_views (line 307) | def test_resource_views(self): method test_include_params_default (line 360) | def test_include_params_default(self): method test_include_params_true (line 393) | def test_include_params_true(self): method _mock_worker_pool (line 430) | def _mock_worker_pool(self, cmd, processes, job_iter): method _mock_worker_pool_reversed (line 439) | def _mock_worker_pool_reversed(self, cmd, processes, job_iter): method _worker_pool_with_data (line 443) | def _worker_pool_with_data(self, cmd, processes, job_iter): method _worker_pool_with_resource_views (line 457) | def _worker_pool_with_resource_views(self, cmd, proccesses, job_iter): FILE: ckanapi/tests/test_cli_load.py class MockCKAN (line 8) | class MockCKAN(object): method call_action (line 9) | def call_action(self, name, data_dict, requests_kwargs=None): class TestCLILoad (line 57) | class TestCLILoad(unittest.TestCase): method setUp (line 58) | def setUp(self): method test_create_with_no_resources (line 63) | def test_create_with_no_resources(self): method test_create_with_corrupted_resources (line 79) | def test_create_with_corrupted_resources(self): method test_create_with_complete_resources (line 95) | def test_create_with_complete_resources(self): method test_create_only (line 113) | def test_create_only(self): method test_create_empty_dict (line 129) | def test_create_empty_dict(self): method test_create_bad_option (line 145) | def test_create_bad_option(self): method test_update_with_no_resources (line 160) | def test_update_with_no_resources(self): method test_update_with_corrupted_resources (line 175) | def test_update_with_corrupted_resources(self): method test_update_with_complete_resources (line 191) | def test_update_with_complete_resources(self): method test_update_only (line 209) | def test_update_only(self): method test_update_bad_option (line 225) | def test_update_bad_option(self): method test_update_unauthorized (line 241) | def test_update_unauthorized(self): method test_update_group (line 257) | def test_update_group(self): method test_update_organization_two (line 273) | def test_update_organization_two(self): method test_update_organization_with_users_unchanged (line 297) | def test_update_organization_with_users_unchanged(self): method test_update_organization_with_users_cleared (line 313) | def test_update_organization_with_users_cleared(self): method test_parent_load_two (line 329) | def test_parent_load_two(self): method test_parent_load_start_max (line 364) | def test_parent_load_start_max(self): method test_parent_parallel_limit (line 401) | def test_parent_parallel_limit(self): method _mock_worker_pool (line 433) | def _mock_worker_pool(self, cmd, processes, job_iter): FILE: ckanapi/tests/test_cli_workers.py class _MockPopen (line 7) | class _MockPopen(object): method __init__ (line 8) | def __init__(self, popen_args, stdin, stdout): method stdout_write (line 18) | def stdout_write(self, data): method stdin_readline (line 22) | def stdin_readline(self): method close_pipes (line 25) | def close_pipes(self): class TestCLIWorkers (line 30) | class TestCLIWorkers(unittest.TestCase): method test_one (line 31) | def test_one(self): method test_two (line 55) | def test_two(self): method test_uneven (line 86) | def test_uneven(self): method test_overkill (line 117) | def test_overkill(self): method test_batch (line 138) | def test_batch(self): FILE: ckanapi/tests/test_datapackage.py class TestDatasetToDataPackage (line 11) | class TestDatasetToDataPackage(unittest.TestCase): method test_simple_dataset (line 12) | def test_simple_dataset(self): method test_full_dataset (line 45) | def test_full_dataset(self): method test_resource_names_are_unique (line 135) | def test_resource_names_are_unique(self): class TestCreateResource (line 172) | class TestCreateResource(fake_filesystem_unittest.TestCase): method setUp (line 173) | def setUp(self): method test_simple (line 176) | def test_simple(self): class TestCreateDataPackage (line 202) | class TestCreateDataPackage(fake_filesystem_unittest.TestCase): method setUp (line 203) | def setUp(self): method test_simple (line 206) | def test_simple(self): class TestResourceFilename (line 250) | class TestResourceFilename(unittest.TestCase): method test_simple (line 251) | def test_simple(self): class TestPopulateSchemaFromDatastore (line 263) | class TestPopulateSchemaFromDatastore(unittest.TestCase): method test_simple (line 264) | def test_simple(self): FILE: ckanapi/tests/test_remote.py class TestRemoteAction (line 24) | class TestRemoteAction(unittest.TestCase): method setUpClass (line 26) | def setUpClass(cls): method test_good_oldstyle (line 47) | def test_good_oldstyle(self): method test_good (line 54) | def test_good(self): method test_missing (line 60) | def test_missing(self): method test_default_ua (line 67) | def test_default_ua(self): method test_custom_ua (line 72) | def test_custom_ua(self): method test_default_content_type (line 77) | def test_default_content_type(self): method test_resource_upload (line 82) | def test_resource_upload(self): method test_resource_upload_extra_param (line 89) | def test_resource_upload_extra_param(self): method test_resource_upload_unicode_param (line 96) | def test_resource_upload_unicode_param(self): method test_resource_upload_content_type (line 104) | def test_resource_upload_content_type(self): method test_default_timeout (line 111) | def test_default_timeout(self): method test_custom_timeout (line 123) | def test_custom_timeout(self): method tearDownClass (line 138) | def tearDownClass(cls):