Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ functions
Functions
870 in github.com/dabeaz/python-cookbook
⨍
Functions
870
◇
Types & classes
318
↳
Endpoints
3
↓ 1 callers
Function
echo_server
(address)
src/11/adding_ssl_to_network_servers/echoserv.py:17
↓ 1 callers
Function
echo_server
(address)
src/11/simple_authentication_of_clients/server.py:16
↓ 1 callers
Function
echo_server
(address, backlog=5)
src/11/creating_a_tcp_server/echoserv5.py:14
↓ 1 callers
Function
example1
()
src/14/raising_an_exception_in_response_to_another_exception/example.py:6
↓ 1 callers
Function
example2
()
src/14/raising_an_exception_in_response_to_another_exception/example.py:15
↓ 1 callers
Function
example3
()
src/14/raising_an_exception_in_response_to_another_exception/example.py:22
↓ 1 callers
Method
exists
(self, name)
src/11/simple_remote_procedure_call_with_xmlrpc/keyserv.py:20
↓ 1 callers
Method
expr
expression ::= term { ('+'|'-') term }
src/2/writing_a_simple_recursive_descent_parser/example.py:115
↓ 1 callers
Method
fileno
(self)
src/11/event_driven_io_explained/threadpool.py:47
↓ 1 callers
Function
find_all_robots
Find all hosts across and entire sequence of files
src/12/simple_parallel_programming/findrobots.py:19
↓ 1 callers
Function
find_all_robots
Find all hosts across and entire sequence of files
src/12/simple_parallel_programming/findrobots_par.py:20
↓ 1 callers
Function
foo
()
src/15/diagnosing_segmentation_faults/example.py:4
↓ 1 callers
Method
foo
(self)
src/8/delegation_and_proxies/example4.py:5
↓ 1 callers
Function
frange
(start, stop, increment)
src/4/creating_new_iteration_patterns_with_generators/example.py:1
↓ 1 callers
Method
from_file
(cls, f)
src/6/reading_nested_and_variable_sized_binary_structures/example3.py:64
↓ 1 callers
Method
from_file
(cls, f)
src/6/reading_nested_and_variable_sized_binary_structures/example2.py:39
↓ 1 callers
Method
generate_code
(self, node)
src/8/implementing_the_visitor_pattern/example.py:72
↓ 1 callers
Function
generate_opcodes
(codebytes)
src/9/disassembling_python_byte_code/example.py:5
↓ 1 callers
Function
generate_tokens
(text)
src/2/writing_a_simple_recursive_descent_parser/example.py:24
↓ 1 callers
Function
generate_tokens
(pat, text)
src/2/tokenizing_text/example.py:19
↓ 1 callers
Method
get_code
(self, fullname)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/urlimport.py:105
↓ 1 callers
Function
get_exchange
(name)
src/12/implementing_publish_subscribe_messaging/exchange1.py:21
↓ 1 callers
Function
get_exchange
(name)
src/12/implementing_publish_subscribe_messaging/exchange2.py:33
↓ 1 callers
Function
get_month_range
(start_date=None)
src/3/finding_the_date_range_for_the_current_month/example.py:4
↓ 1 callers
Method
get_source
(self, fullname)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/urlimport.py:115
↓ 1 callers
Method
get_spam
(self, name)
src/8/creating_cached_instances/example2.py:6
↓ 1 callers
Function
grok
()
src/9/defining_decorators_as_part_of_a_class/example1.py:31
↓ 1 callers
Method
grok
(x)
src/9/using_metaclasses_to_control_instance_creation/example1.py:11
↓ 1 callers
Method
handle_receive
Perform the receive operation
src/11/event_driven_io_explained/eventhandler.py:10
↓ 1 callers
Method
handle_send
Send outgoing data
src/11/event_driven_io_explained/eventhandler.py:18
↓ 1 callers
Method
handle_yield
(self, sched, task)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:6
↓ 1 callers
Function
handler
(result)
src/7/carrying_extra_state_with_callback_functions/example.py:47
↓ 1 callers
Method
incr
Increment the counter with locking
src/12/how_to_lock_critical_sections/example1.py:11
↓ 1 callers
Method
instance_method
(self, n)
src/9/applying_decorators_to_class_and_static_methods/example.py:18
↓ 1 callers
Method
iter_as
(self, code)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:79
↓ 1 callers
Method
keys
(self)
src/11/simple_remote_procedure_call_with_xmlrpc/keyserv.py:23
↓ 1 callers
Method
load_module
(self, fullname)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/urlimport.py:95
↓ 1 callers
Function
localtime
(environ, start_response)
src/11/creating_a_simple_rest_based_interface/example1.py:30
↓ 1 callers
Function
main
(out=sys.stderr, verbosity=2)
src/14/logging_test_output_to_a_file/test.py:29
↓ 1 callers
Function
main
()
src/13/simple_logging_for_scripts/example2.py:4
↓ 1 callers
Function
main
()
src/13/simple_logging_for_scripts/example1.py:3
↓ 1 callers
Function
main
()
src/12/launching_a_daemon_process_on_unix/daemon.py:58
↓ 1 callers
Function
make_sig
(*names)
src/9/enforcing_an_argument_signature/example2.py:5
↓ 1 callers
Function
modified_within
(top, seconds)
src/13/finding_files/modified_within.py:6
↓ 1 callers
Function
named_tuple
(classname, fieldnames)
src/9/defining_classes_programmatically/example2.py:7
↓ 1 callers
Method
open
(self)
src/8/implementing_stateful_objects_or_state_machines/example1.py:14
↓ 1 callers
Function
parse_and_remove
(filename, path)
src/6/incremental_parsing_of_huge_xml_files/example.py:10
↓ 1 callers
Function
parse_data
(filename)
src/4/iterate_over_the_index-value_pairs_of_a_list/example.py:2
↓ 1 callers
Function
printer
()
src/12/using_generators_as_an_alternative_to_threads/actorsched.py:36
↓ 1 callers
Method
public_method
(self)
src/8/how_to_encapsulate_names_in_a_class/example.py:10
↓ 1 callers
Function
read_polys
(filename)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:105
↓ 1 callers
Function
read_records
(format, f)
src/6/reading_and_writing_binary_arrays_of_structures/readrecords.py:3
↓ 1 callers
Function
readline
(sock)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:119
↓ 1 callers
Function
recv_fd
Receive a single file descriptor
src/11/passing_a_socket_file_descriptor_between_processes/worker.py:5
↓ 1 callers
Function
recv_into
(arr, source)
src/11/zero_copy_sending_and_receiving_of_large_arrays/zerocopy.py:9
↓ 1 callers
Method
respond
(self, result, addr)
src/11/event_driven_io_explained/threadpool.py:59
↓ 1 callers
Function
rpc_server
(handler, address, authkey)
src/11/implementing_remote_procedure_call/rpcserver.py:29
↓ 1 callers
Function
rpc_server
(handler, address, authkey)
src/11/implementing_remote_procedure_call/jsonrpcserver.py:29
↓ 1 callers
Method
run
Run until there are no more tasks
src/12/using_generators_as_an_alternative_to_threads/simple.py:30
↓ 1 callers
Method
run
Run as long as there are pending messages.
src/12/using_generators_as_an_alternative_to_threads/actorsched.py:23
↓ 1 callers
Method
run
Run the task scheduler until there are no tasks
src/12/using_generators_as_an_alternative_to_threads/netsched.py:52
↓ 1 callers
Method
run
(self, func, args=(), kwargs={},*,callback)
src/11/event_driven_io_explained/threadpool.py:20
↓ 1 callers
Function
sample
()
src/7/accessing_variables_defined_inside_a_closure/example1.py:3
↓ 1 callers
Function
search
(lines, pattern, history=5)
src/1/keeping_the_last_n_items/example.py:3
↓ 1 callers
Function
send_fd
Send a single file descriptor.
src/11/passing_a_socket_file_descriptor_between_processes/server.py:5
↓ 1 callers
Function
send_from
(arr, dest)
src/11/zero_copy_sending_and_receiving_of_large_arrays/zerocopy.py:3
↓ 1 callers
Method
serve_forever
(self)
src/11/simple_remote_procedure_call_with_xmlrpc/keyserv.py:26
↓ 1 callers
Function
server
(work_address, port)
src/11/passing_a_socket_file_descriptor_between_processes/server.py:14
↓ 1 callers
Function
server
(work_address, port)
src/11/passing_a_socket_file_descriptor_between_processes/servermp.py:6
↓ 1 callers
Function
server_authenticate
Request client authentication.
src/11/simple_authentication_of_clients/auth.py:17
↓ 1 callers
Method
server_loop
(self,addr)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:136
↓ 1 callers
Function
set_max_runtime
(seconds)
src/13/putting_limits_on_memory_and_cpu_usage/example.py:9
↓ 1 callers
Method
set_result
(self, value)
src/12/defining_an_actor_task/worker.py:9
↓ 1 callers
Function
spam
()
src/15/diagnosing_segmentation_faults/example.py:12
↓ 1 callers
Function
spam
()
src/9/defining_a_decorator_that_takes_arguments/example.py:29
↓ 1 callers
Function
spam
()
src/9/defining_decorators_as_part_of_a_class/example1.py:26
↓ 1 callers
Function
spam
()
src/9/defining_a_decorator_that_takes_an_optional_argument/example.py:27
↓ 1 callers
Method
spam
(self, x)
src/8/delegation_and_proxies/example1.py:2
↓ 1 callers
Method
spam
(self)
src/8/calling_a_method_on_a_parent_class/example3.py:20
↓ 1 callers
Method
spam
(self)
src/10/splitting_a_module_into_multiple_files/mymodule/a.py:4
↓ 1 callers
Method
spam
(self)
src/9/monkeypatching_class_definitions/example.py:19
↓ 1 callers
Method
static_method
(n)
src/9/applying_decorators_to_class_and_static_methods/example.py:32
↓ 1 callers
Function
sub
(x, y)
src/9/defining_a_decorator_that_takes_an_optional_argument/example.py:23
↓ 1 callers
Method
subscribe
(self, *tasks)
src/12/implementing_publish_subscribe_messaging/exchange2.py:15
↓ 1 callers
Method
terminate
(self)
src/12/how_to_start_and_stop_threads/example.py:8
↓ 1 callers
Function
test
(func)
src/14/make_your_programs_run_faster/example.py:2
↓ 1 callers
Function
test
()
src/9/executing_code_with_local_side_effects/example.py:1
↓ 1 callers
Function
test1
()
src/9/executing_code_with_local_side_effects/example.py:8
↓ 1 callers
Function
test2
()
src/9/executing_code_with_local_side_effects/example.py:13
↓ 1 callers
Function
test3
()
src/9/executing_code_with_local_side_effects/example.py:21
↓ 1 callers
Function
test4
()
src/9/executing_code_with_local_side_effects/example.py:30
↓ 1 callers
Function
time_server
(address)
src/11/creating_a_udp_server/timeserv2.py:4
↓ 1 callers
Function
timethis
(label)
src/9/defining_context_managers_the_easy_way/example1.py:5
↓ 1 callers
Method
unaryop
(self, node, instruction)
src/8/implementing_the_visitor_pattern/example.py:97
↓ 1 callers
Function
unpack_records
(format, data)
src/6/reading_and_writing_binary_arrays_of_structures/unpackrecords.py:3
↓ 1 callers
Method
wants_to_receive
Return True if receiving is allowed
src/11/event_driven_io_explained/eventhandler.py:6
↓ 1 callers
Method
wants_to_send
Return True if sending is requested
src/11/event_driven_io_explained/eventhandler.py:14
↓ 1 callers
Function
worker
(server_address)
src/11/passing_a_socket_file_descriptor_between_processes/workermp.py:8
↓ 1 callers
Function
worker
(server_address)
src/11/passing_a_socket_file_descriptor_between_processes/worker.py:17
↓ 1 callers
Function
write_polys
(filename, polys)
src/6/reading_nested_and_variable_sized_binary_structures/writepolys.py:10
← previous
next →
201–300 of 870, ranked by callers