├── Chapter01 ├── 01_assign_values.py ├── 02_access_values.py ├── 03_update_string.py ├── 04_string_formatting.py ├── 06_access_lists.py ├── 07_update_lists.py ├── 08_delete_lists.py ├── 09_access_tuples.py ├── 10_update_tuples.py ├── 11_delete_tuples.py ├── 12_argv_example.py ├── 13_if_example.py ├── 14_if_else_example.py ├── 15_if_elif_example.py ├── 16_for_example.py ├── 17_range_example.py ├── 18_while_example.py ├── 19_iterator_example.py ├── 20_generator_example.py ├── 21_function_example.py ├── 22_return_statement.py ├── 23_lambda_using_filter.py ├── 24_lambda_using_map.py ├── add.py └── sample.py ├── Chapter02 ├── cprof_example.py ├── exception_example.py ├── pdb_example.py ├── timeit_example.py └── trace_example.py ├── Chapter03 ├── __pycache__ │ ├── if_example.cpython-35.pyc │ └── test_if.cpython-35.pyc ├── arithmetic.py ├── if_example.py ├── test_addition.py ├── test_if.py └── trace_example.py ├── Chapter04 ├── accept_by_input_file.py ├── accept_by_pipe.py ├── capture_output.py ├── execute_external_commands.py ├── generate_warnings.py ├── getpass_example.py ├── handling_password.py ├── list_dir.py ├── log.txt ├── logging_example.py ├── logging_warnings_codes.py ├── no_prompt.py ├── open_web.py ├── os_dir_example.py ├── password_prompt_again.py ├── put_cpu_limit.py ├── read_config_file.py ├── read_many_config_file.py ├── read_simple.ini ├── redirection.py ├── sample_output.txt ├── take_backup.py └── with_prompt.py ├── Chapter05 ├── Haltermanpythonbook.pdf ├── compare_data.py ├── compress_a_directory.py ├── examine_tar_file_content.py ├── hello.py ├── merge_data.py ├── metadata_example.py ├── pattern_match.py ├── shutil_copy_example.py ├── shutil_move_example.py ├── student1.csv ├── student2.csv ├── tarfile_example.py ├── unzip_a_directory.py └── welcome.py ├── Chapter06 ├── .extract_contents.py.swp ├── add_to_archive.py ├── check_archive_file.py ├── check_zip_file.py ├── extract_contents.py ├── make_zip_file.py ├── read_metadata.py ├── read_zip_metadata.py ├── shutil_make_archive.py ├── shutil_unpack_archive.py └── work_sample.tar.gz ├── Chapter07 ├── dedent_example.py ├── indent_example.py ├── re_findall_example.py ├── re_match.py ├── re_search.py ├── re_sub.py ├── re_subn.py └── wrap_example.py ├── Chapter08 ├── format_example.py ├── input_example.py ├── print_example.py ├── send_email.py ├── send_email_attachment.py └── string_formatting.py ├── Chapter09 ├── Haltermanpythonbook.pdf ├── Sample - Superstore.csv ├── Sample - Superstore.xlsx ├── append_values.py ├── create_excel.py ├── csv_read.py ├── csv_write.py ├── extract_column_names.py ├── extract_text.py ├── rd_excel_pandas.py ├── rd_excel_pandas1.py ├── read_excel.py ├── read_multiple.py ├── read_pdf.py ├── rotate_pdf.py ├── text_read.py └── text_write.py ├── Chapter10 ├── client.py ├── get_example.py ├── get_ftp_files.py ├── get_welcome_msg.py ├── make_connection.py ├── post_example.py ├── send_command.py └── server.py ├── Chapter11 ├── add_attachment.py ├── add_html_content.py ├── all_emails.py ├── imap_email.py ├── latest_email.py ├── number_of_emails.py └── write_email_message.py ├── Chapter12 ├── fabfile.py ├── nmiko.py ├── pmiko.py ├── ssh_using_sub.py └── telnet_example.py ├── Chapter13 ├── box_layout.py └── print_message.py ├── Chapter14 ├── parse_ip_address.py ├── read_apache_log.py ├── sample.py ├── simple_log.py └── simple_log1.py ├── Chapter15 ├── json_to_python.py ├── python_object_to_json.py ├── python_to_json.py ├── rest_get_example.py ├── rest_post_example.py └── soap_example.py ├── Chapter16 ├── extract_from_class.py ├── extract_from_tag.py ├── extract_from_wikipedia.py └── parse_web_page.py ├── Chapter17 ├── bar_chart.py ├── contour_plotly.py ├── employee.csv ├── expo_array.py ├── histogram_example.py ├── line_scatter_plot.py ├── mult_dim_array.py ├── open_image.py ├── plotly_box_plot.py ├── read_csv_dataframe.py ├── sample_plotly.py ├── scatter_plot_plotly.py ├── scatterplot_example.py ├── series_with_index.py ├── series_without_index.py ├── simple_array.py ├── simple_plot.py ├── simple_plot2.py ├── simple_plot3.py ├── size_and_dtype.py └── sqrt_array.py ├── Chapter18 ├── connect_database.py ├── create_insert_data.py ├── create_table.py ├── delete_data.py ├── delete_sqlite_data.py ├── get_database_version.py ├── insert_data.py ├── retrieve_data.py ├── retrieve_sqlite_data.py ├── update_data.py └── update_sqlite_data.py └── README.md /Chapter01/01_assign_values.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/01_assign_values.py -------------------------------------------------------------------------------- /Chapter01/02_access_values.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/02_access_values.py -------------------------------------------------------------------------------- /Chapter01/03_update_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/03_update_string.py -------------------------------------------------------------------------------- /Chapter01/04_string_formatting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/04_string_formatting.py -------------------------------------------------------------------------------- /Chapter01/06_access_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/06_access_lists.py -------------------------------------------------------------------------------- /Chapter01/07_update_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/07_update_lists.py -------------------------------------------------------------------------------- /Chapter01/08_delete_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/08_delete_lists.py -------------------------------------------------------------------------------- /Chapter01/09_access_tuples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/09_access_tuples.py -------------------------------------------------------------------------------- /Chapter01/10_update_tuples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/10_update_tuples.py -------------------------------------------------------------------------------- /Chapter01/11_delete_tuples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/11_delete_tuples.py -------------------------------------------------------------------------------- /Chapter01/12_argv_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/12_argv_example.py -------------------------------------------------------------------------------- /Chapter01/13_if_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/13_if_example.py -------------------------------------------------------------------------------- /Chapter01/14_if_else_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/14_if_else_example.py -------------------------------------------------------------------------------- /Chapter01/15_if_elif_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/15_if_elif_example.py -------------------------------------------------------------------------------- /Chapter01/16_for_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/16_for_example.py -------------------------------------------------------------------------------- /Chapter01/17_range_example.py: -------------------------------------------------------------------------------- 1 | for i in range(5): 2 | print("The number is", i) 3 | -------------------------------------------------------------------------------- /Chapter01/18_while_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/18_while_example.py -------------------------------------------------------------------------------- /Chapter01/19_iterator_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/19_iterator_example.py -------------------------------------------------------------------------------- /Chapter01/20_generator_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/20_generator_example.py -------------------------------------------------------------------------------- /Chapter01/21_function_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/21_function_example.py -------------------------------------------------------------------------------- /Chapter01/22_return_statement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/22_return_statement.py -------------------------------------------------------------------------------- /Chapter01/23_lambda_using_filter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/23_lambda_using_filter.py -------------------------------------------------------------------------------- /Chapter01/24_lambda_using_map.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/24_lambda_using_map.py -------------------------------------------------------------------------------- /Chapter01/add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/add.py -------------------------------------------------------------------------------- /Chapter01/sample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter01/sample.py -------------------------------------------------------------------------------- /Chapter02/cprof_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter02/cprof_example.py -------------------------------------------------------------------------------- /Chapter02/exception_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter02/exception_example.py -------------------------------------------------------------------------------- /Chapter02/pdb_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter02/pdb_example.py -------------------------------------------------------------------------------- /Chapter02/timeit_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter02/timeit_example.py -------------------------------------------------------------------------------- /Chapter02/trace_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter02/trace_example.py -------------------------------------------------------------------------------- /Chapter03/__pycache__/if_example.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter03/__pycache__/if_example.cpython-35.pyc -------------------------------------------------------------------------------- /Chapter03/__pycache__/test_if.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter03/__pycache__/test_if.cpython-35.pyc -------------------------------------------------------------------------------- /Chapter03/arithmetic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter03/arithmetic.py -------------------------------------------------------------------------------- /Chapter03/if_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter03/if_example.py -------------------------------------------------------------------------------- /Chapter03/test_addition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter03/test_addition.py -------------------------------------------------------------------------------- /Chapter03/test_if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter03/test_if.py -------------------------------------------------------------------------------- /Chapter03/trace_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter03/trace_example.py -------------------------------------------------------------------------------- /Chapter04/accept_by_input_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/accept_by_input_file.py -------------------------------------------------------------------------------- /Chapter04/accept_by_pipe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/accept_by_pipe.py -------------------------------------------------------------------------------- /Chapter04/capture_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/capture_output.py -------------------------------------------------------------------------------- /Chapter04/execute_external_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/execute_external_commands.py -------------------------------------------------------------------------------- /Chapter04/generate_warnings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/generate_warnings.py -------------------------------------------------------------------------------- /Chapter04/getpass_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/getpass_example.py -------------------------------------------------------------------------------- /Chapter04/handling_password.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/handling_password.py -------------------------------------------------------------------------------- /Chapter04/list_dir.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/list_dir.py -------------------------------------------------------------------------------- /Chapter04/log.txt: -------------------------------------------------------------------------------- 1 | DEBUG:root:This message should go to the log file. 2 | -------------------------------------------------------------------------------- /Chapter04/logging_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/logging_example.py -------------------------------------------------------------------------------- /Chapter04/logging_warnings_codes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/logging_warnings_codes.py -------------------------------------------------------------------------------- /Chapter04/no_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/no_prompt.py -------------------------------------------------------------------------------- /Chapter04/open_web.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/open_web.py -------------------------------------------------------------------------------- /Chapter04/os_dir_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/os_dir_example.py -------------------------------------------------------------------------------- /Chapter04/password_prompt_again.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/password_prompt_again.py -------------------------------------------------------------------------------- /Chapter04/put_cpu_limit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/put_cpu_limit.py -------------------------------------------------------------------------------- /Chapter04/read_config_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/read_config_file.py -------------------------------------------------------------------------------- /Chapter04/read_many_config_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/read_many_config_file.py -------------------------------------------------------------------------------- /Chapter04/read_simple.ini: -------------------------------------------------------------------------------- 1 | [bug_tracker] 2 | url = https://www.baidu.com/ 3 | -------------------------------------------------------------------------------- /Chapter04/redirection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/redirection.py -------------------------------------------------------------------------------- /Chapter04/sample_output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/sample_output.txt -------------------------------------------------------------------------------- /Chapter04/take_backup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/take_backup.py -------------------------------------------------------------------------------- /Chapter04/with_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter04/with_prompt.py -------------------------------------------------------------------------------- /Chapter05/Haltermanpythonbook.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/Haltermanpythonbook.pdf -------------------------------------------------------------------------------- /Chapter05/compare_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/compare_data.py -------------------------------------------------------------------------------- /Chapter05/compress_a_directory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/compress_a_directory.py -------------------------------------------------------------------------------- /Chapter05/examine_tar_file_content.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/examine_tar_file_content.py -------------------------------------------------------------------------------- /Chapter05/hello.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/hello.py -------------------------------------------------------------------------------- /Chapter05/merge_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/merge_data.py -------------------------------------------------------------------------------- /Chapter05/metadata_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/metadata_example.py -------------------------------------------------------------------------------- /Chapter05/pattern_match.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/pattern_match.py -------------------------------------------------------------------------------- /Chapter05/shutil_copy_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/shutil_copy_example.py -------------------------------------------------------------------------------- /Chapter05/shutil_move_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/shutil_move_example.py -------------------------------------------------------------------------------- /Chapter05/student1.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/student1.csv -------------------------------------------------------------------------------- /Chapter05/student2.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/student2.csv -------------------------------------------------------------------------------- /Chapter05/tarfile_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/tarfile_example.py -------------------------------------------------------------------------------- /Chapter05/unzip_a_directory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/unzip_a_directory.py -------------------------------------------------------------------------------- /Chapter05/welcome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter05/welcome.py -------------------------------------------------------------------------------- /Chapter06/.extract_contents.py.swp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter06/add_to_archive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/add_to_archive.py -------------------------------------------------------------------------------- /Chapter06/check_archive_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/check_archive_file.py -------------------------------------------------------------------------------- /Chapter06/check_zip_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/check_zip_file.py -------------------------------------------------------------------------------- /Chapter06/extract_contents.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/extract_contents.py -------------------------------------------------------------------------------- /Chapter06/make_zip_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/make_zip_file.py -------------------------------------------------------------------------------- /Chapter06/read_metadata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/read_metadata.py -------------------------------------------------------------------------------- /Chapter06/read_zip_metadata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/read_zip_metadata.py -------------------------------------------------------------------------------- /Chapter06/shutil_make_archive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/shutil_make_archive.py -------------------------------------------------------------------------------- /Chapter06/shutil_unpack_archive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/shutil_unpack_archive.py -------------------------------------------------------------------------------- /Chapter06/work_sample.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter06/work_sample.tar.gz -------------------------------------------------------------------------------- /Chapter07/dedent_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter07/dedent_example.py -------------------------------------------------------------------------------- /Chapter07/indent_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter07/indent_example.py -------------------------------------------------------------------------------- /Chapter07/re_findall_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter07/re_findall_example.py -------------------------------------------------------------------------------- /Chapter07/re_match.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter07/re_match.py -------------------------------------------------------------------------------- /Chapter07/re_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter07/re_search.py -------------------------------------------------------------------------------- /Chapter07/re_sub.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter07/re_sub.py -------------------------------------------------------------------------------- /Chapter07/re_subn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter07/re_subn.py -------------------------------------------------------------------------------- /Chapter07/wrap_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter07/wrap_example.py -------------------------------------------------------------------------------- /Chapter08/format_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter08/format_example.py -------------------------------------------------------------------------------- /Chapter08/input_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter08/input_example.py -------------------------------------------------------------------------------- /Chapter08/print_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter08/print_example.py -------------------------------------------------------------------------------- /Chapter08/send_email.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter08/send_email.py -------------------------------------------------------------------------------- /Chapter08/send_email_attachment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter08/send_email_attachment.py -------------------------------------------------------------------------------- /Chapter08/string_formatting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter08/string_formatting.py -------------------------------------------------------------------------------- /Chapter09/Haltermanpythonbook.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/Haltermanpythonbook.pdf -------------------------------------------------------------------------------- /Chapter09/Sample - Superstore.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/Sample - Superstore.csv -------------------------------------------------------------------------------- /Chapter09/Sample - Superstore.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/Sample - Superstore.xlsx -------------------------------------------------------------------------------- /Chapter09/append_values.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/append_values.py -------------------------------------------------------------------------------- /Chapter09/create_excel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/create_excel.py -------------------------------------------------------------------------------- /Chapter09/csv_read.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/csv_read.py -------------------------------------------------------------------------------- /Chapter09/csv_write.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/csv_write.py -------------------------------------------------------------------------------- /Chapter09/extract_column_names.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/extract_column_names.py -------------------------------------------------------------------------------- /Chapter09/extract_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/extract_text.py -------------------------------------------------------------------------------- /Chapter09/rd_excel_pandas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/rd_excel_pandas.py -------------------------------------------------------------------------------- /Chapter09/rd_excel_pandas1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/rd_excel_pandas1.py -------------------------------------------------------------------------------- /Chapter09/read_excel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/read_excel.py -------------------------------------------------------------------------------- /Chapter09/read_multiple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/read_multiple.py -------------------------------------------------------------------------------- /Chapter09/read_pdf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/read_pdf.py -------------------------------------------------------------------------------- /Chapter09/rotate_pdf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/rotate_pdf.py -------------------------------------------------------------------------------- /Chapter09/text_read.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/text_read.py -------------------------------------------------------------------------------- /Chapter09/text_write.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter09/text_write.py -------------------------------------------------------------------------------- /Chapter10/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter10/client.py -------------------------------------------------------------------------------- /Chapter10/get_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter10/get_example.py -------------------------------------------------------------------------------- /Chapter10/get_ftp_files.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter10/get_ftp_files.py -------------------------------------------------------------------------------- /Chapter10/get_welcome_msg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter10/get_welcome_msg.py -------------------------------------------------------------------------------- /Chapter10/make_connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter10/make_connection.py -------------------------------------------------------------------------------- /Chapter10/post_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter10/post_example.py -------------------------------------------------------------------------------- /Chapter10/send_command.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter10/send_command.py -------------------------------------------------------------------------------- /Chapter10/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter10/server.py -------------------------------------------------------------------------------- /Chapter11/add_attachment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter11/add_attachment.py -------------------------------------------------------------------------------- /Chapter11/add_html_content.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter11/add_html_content.py -------------------------------------------------------------------------------- /Chapter11/all_emails.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter11/all_emails.py -------------------------------------------------------------------------------- /Chapter11/imap_email.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter11/imap_email.py -------------------------------------------------------------------------------- /Chapter11/latest_email.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter11/latest_email.py -------------------------------------------------------------------------------- /Chapter11/number_of_emails.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter11/number_of_emails.py -------------------------------------------------------------------------------- /Chapter11/write_email_message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter11/write_email_message.py -------------------------------------------------------------------------------- /Chapter12/fabfile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter12/fabfile.py -------------------------------------------------------------------------------- /Chapter12/nmiko.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter12/nmiko.py -------------------------------------------------------------------------------- /Chapter12/pmiko.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter12/pmiko.py -------------------------------------------------------------------------------- /Chapter12/ssh_using_sub.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter12/ssh_using_sub.py -------------------------------------------------------------------------------- /Chapter12/telnet_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter12/telnet_example.py -------------------------------------------------------------------------------- /Chapter13/box_layout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter13/box_layout.py -------------------------------------------------------------------------------- /Chapter13/print_message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter13/print_message.py -------------------------------------------------------------------------------- /Chapter14/parse_ip_address.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter14/parse_ip_address.py -------------------------------------------------------------------------------- /Chapter14/read_apache_log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter14/read_apache_log.py -------------------------------------------------------------------------------- /Chapter14/sample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter14/sample.py -------------------------------------------------------------------------------- /Chapter14/simple_log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter14/simple_log.py -------------------------------------------------------------------------------- /Chapter14/simple_log1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter14/simple_log1.py -------------------------------------------------------------------------------- /Chapter15/json_to_python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter15/json_to_python.py -------------------------------------------------------------------------------- /Chapter15/python_object_to_json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter15/python_object_to_json.py -------------------------------------------------------------------------------- /Chapter15/python_to_json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter15/python_to_json.py -------------------------------------------------------------------------------- /Chapter15/rest_get_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter15/rest_get_example.py -------------------------------------------------------------------------------- /Chapter15/rest_post_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter15/rest_post_example.py -------------------------------------------------------------------------------- /Chapter15/soap_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter15/soap_example.py -------------------------------------------------------------------------------- /Chapter16/extract_from_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter16/extract_from_class.py -------------------------------------------------------------------------------- /Chapter16/extract_from_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter16/extract_from_tag.py -------------------------------------------------------------------------------- /Chapter16/extract_from_wikipedia.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter16/extract_from_wikipedia.py -------------------------------------------------------------------------------- /Chapter16/parse_web_page.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter16/parse_web_page.py -------------------------------------------------------------------------------- /Chapter17/bar_chart.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/bar_chart.py -------------------------------------------------------------------------------- /Chapter17/contour_plotly.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/contour_plotly.py -------------------------------------------------------------------------------- /Chapter17/employee.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/employee.csv -------------------------------------------------------------------------------- /Chapter17/expo_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/expo_array.py -------------------------------------------------------------------------------- /Chapter17/histogram_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/histogram_example.py -------------------------------------------------------------------------------- /Chapter17/line_scatter_plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/line_scatter_plot.py -------------------------------------------------------------------------------- /Chapter17/mult_dim_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/mult_dim_array.py -------------------------------------------------------------------------------- /Chapter17/open_image.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/open_image.py -------------------------------------------------------------------------------- /Chapter17/plotly_box_plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/plotly_box_plot.py -------------------------------------------------------------------------------- /Chapter17/read_csv_dataframe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/read_csv_dataframe.py -------------------------------------------------------------------------------- /Chapter17/sample_plotly.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/sample_plotly.py -------------------------------------------------------------------------------- /Chapter17/scatter_plot_plotly.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/scatter_plot_plotly.py -------------------------------------------------------------------------------- /Chapter17/scatterplot_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/scatterplot_example.py -------------------------------------------------------------------------------- /Chapter17/series_with_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/series_with_index.py -------------------------------------------------------------------------------- /Chapter17/series_without_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/series_without_index.py -------------------------------------------------------------------------------- /Chapter17/simple_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/simple_array.py -------------------------------------------------------------------------------- /Chapter17/simple_plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/simple_plot.py -------------------------------------------------------------------------------- /Chapter17/simple_plot2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/simple_plot2.py -------------------------------------------------------------------------------- /Chapter17/simple_plot3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/simple_plot3.py -------------------------------------------------------------------------------- /Chapter17/size_and_dtype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/size_and_dtype.py -------------------------------------------------------------------------------- /Chapter17/sqrt_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter17/sqrt_array.py -------------------------------------------------------------------------------- /Chapter18/connect_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/connect_database.py -------------------------------------------------------------------------------- /Chapter18/create_insert_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/create_insert_data.py -------------------------------------------------------------------------------- /Chapter18/create_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/create_table.py -------------------------------------------------------------------------------- /Chapter18/delete_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/delete_data.py -------------------------------------------------------------------------------- /Chapter18/delete_sqlite_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/delete_sqlite_data.py -------------------------------------------------------------------------------- /Chapter18/get_database_version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/get_database_version.py -------------------------------------------------------------------------------- /Chapter18/insert_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/insert_data.py -------------------------------------------------------------------------------- /Chapter18/retrieve_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/retrieve_data.py -------------------------------------------------------------------------------- /Chapter18/retrieve_sqlite_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/retrieve_sqlite_data.py -------------------------------------------------------------------------------- /Chapter18/update_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/update_data.py -------------------------------------------------------------------------------- /Chapter18/update_sqlite_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/Chapter18/update_sqlite_data.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alanhou/python-scripting/HEAD/README.md --------------------------------------------------------------------------------