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
↓ 2 callers
Function
cidr_range
(cidr_address)
src/13/generating_a_range_of_ip_addresses_from_a_cidr_address/example.py:3
↓ 2 callers
Method
client_handler
(self,client)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:145
↓ 2 callers
Function
countdown
(n)
src/13/making_a_stopwatch/stopwatch.py:37
↓ 2 callers
Function
countdown
(n)
src/12/using_generators_as_an_alternative_to_threads/simple.py:4
↓ 2 callers
Function
countdown
(n)
src/9/defining_decorators_as_classes/example3.py:40
↓ 2 callers
Function
countdown
(n)
src/9/defining_a_decorator_with_user_adjustable_attributes/example1.py:65
↓ 2 callers
Function
countdown2
(n)
src/9/defining_a_decorator_with_user_adjustable_attributes/example1.py:72
↓ 2 callers
Function
daterange
(start, stop, step)
src/3/finding_the_date_range_for_the_current_month/example.py:17
↓ 2 callers
Method
depth_first
(self)
src/4/easy_implementation_of_the_iterator_protocol/hardexample.py:17
↓ 2 callers
Method
detach
(self, task)
src/12/implementing_publish_subscribe_messaging/exchange1.py:10
↓ 2 callers
Method
end
(self)
src/13/making_a_stopwatch/stopwatch.py:14
↓ 2 callers
Method
expr
expression ::= term { ('+'|'-') term }*
src/2/writing_a_simple_recursive_descent_parser/example.py:67
↓ 2 callers
Method
factor
factor ::= NUM | ( expr )
src/2/writing_a_simple_recursive_descent_parser/example.py:93
↓ 2 callers
Method
factor
factor ::= NUM | ( expr )
src/2/writing_a_simple_recursive_descent_parser/example.py:141
↓ 2 callers
Function
flatten
(items, ignore_types=(str, bytes))
src/4/how_to_flatten_a_nested_sequence/example.py:5
↓ 2 callers
Method
from_file
(cls, f)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:64
↓ 2 callers
Function
gen_concatenate
Chain a sequence of iterators together into a single sequence.
src/4/creating_data_processing_pipelines/example.py:30
↓ 2 callers
Function
gen_find
Find all filenames in a directory tree that match a shell wildcard pattern
src/4/creating_data_processing_pipelines/example.py:7
↓ 2 callers
Function
gen_grep
Look for a regex pattern in a sequence of lines
src/4/creating_data_processing_pipelines/example.py:37
↓ 2 callers
Function
gen_opener
Open a sequence of filenames one at a time producing a file object. The file is closed immediately when proceeding to the next iteration.
src/4/creating_data_processing_pipelines/example.py:15
↓ 2 callers
Method
get
(self, name)
src/11/simple_remote_procedure_call_with_xmlrpc/keyserv.py:11
↓ 2 callers
Method
handle_resume
(self, sched, task)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:8
↓ 2 callers
Function
list_transaction
(orig_list)
src/9/defining_context_managers_the_easy_way/example2.py:4
↓ 2 callers
Function
load_module
(url)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/explicit_load.py:7
↓ 2 callers
Method
load_module
(self, fullname)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/urlimport.py:136
↓ 2 callers
Function
logged
(func)
src/10/monkeypatching_modules_on_import/example2.py:5
↓ 2 callers
Function
make_element
(name,value,**attrs)
src/7/functions_that_accept_any_number_of_arguments/example.py:11
↓ 2 callers
Function
make_handler
()
src/7/carrying_extra_state_with_callback_functions/example.py:45
↓ 2 callers
Function
minimum
(*values, clip=None)
src/7/functions_that_only_accept_keyword_arguments/example.py:14
↓ 2 callers
Method
new_actor
Admit a newly started actor to the scheduler and give it a name
src/12/using_generators_as_an_alternative_to_threads/actorsched.py:8
↓ 2 callers
Method
read
(self)
src/8/implementing_stateful_objects_or_state_machines/example2.py:9
↓ 2 callers
Method
read
(self)
src/8/implementing_stateful_objects_or_state_machines/example1.py:8
↓ 2 callers
Function
recv
(maxsize, *, block=True)
src/7/functions_that_only_accept_keyword_arguments/example.py:4
↓ 2 callers
Method
recv
(self, maxbytes)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:104
↓ 2 callers
Method
register
(self, name, uri)
src/6/parsing_xml_documents_with_namespaces/example.py:12
↓ 2 callers
Method
register_function
(self, func)
src/11/implementing_remote_procedure_call/jsonrpcserver.py:8
↓ 2 callers
Method
run
Run method to be implemented by the user
src/12/defining_an_actor_task/actor.py:53
↓ 2 callers
Method
set
(self, name, value)
src/11/simple_remote_procedure_call_with_xmlrpc/keyserv.py:14
↓ 2 callers
Method
spam
(self)
src/8/delegation_and_proxies/example4.py:2
↓ 2 callers
Method
spam
(self)
src/8/calling_a_method_on_a_parent_class/example1.py:2
↓ 2 callers
Method
term
term ::= factor { ('*'|'/') factor }*
src/2/writing_a_simple_recursive_descent_parser/example.py:80
↓ 2 callers
Method
term
term ::= factor { ('*'|'/') factor }
src/2/writing_a_simple_recursive_descent_parser/example.py:128
↓ 2 callers
Function
test
()
src/7/inlining_callback_functions/example.py:41
↓ 2 callers
Function
typed_property
(name, expected_type)
src/9/avoiding_repetitive_property_methods/example1.py:1
↓ 2 callers
Method
visit
(self, node)
src/8/implementing_the_visitor_pattern_without_recursion/example3.py:14
↓ 2 callers
Method
wait_for_tick
Wait for the next tick of the timer
src/12/how_to_determine_if_a_thread_has_started/example2.py:25
↓ 1 callers
Function
Stack
()
src/7/accessing_variables_defined_inside_a_closure/example2.py:17
↓ 1 callers
Method
__init__
(self, name, shares, price)
src/8/implementing_a_data_model_or_type_system/example.py:104
↓ 1 callers
Method
__init__
(self)
src/8/how_to_encapsulate_names_in_a_class/example.py:5
↓ 1 callers
Method
__init__
(self)
src/8/calling_a_method_on_a_parent_class/example2.py:2
↓ 1 callers
Method
__init__
(self, name)
src/9/using_metaclasses_to_control_instance_creation/example3.py:21
↓ 1 callers
Method
__init__
(self)
src/9/using_metaclasses_to_control_instance_creation/example2.py:18
↓ 1 callers
Method
__new__
(cls, name, bases, ns, *, debug=False, synchronize=False)
src/9/defining_a_metaclass_that_takes_optional_arguments/example.py:11
↓ 1 callers
Method
__private_method
(self)
src/8/how_to_encapsulate_names_in_a_class/example.py:7
↓ 1 callers
Method
_complete
(self, callback, r)
src/11/event_driven_io_explained/threadpool.py:15
↓ 1 callers
Method
_iopoll
(self)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:20
↓ 1 callers
Method
_visit
(self, node)
src/8/implementing_the_visitor_pattern_without_recursion/node.py:30
↓ 1 callers
Method
_visit
(self, node)
src/8/implementing_the_visitor_pattern_without_recursion/example3.py:31
↓ 1 callers
Method
_write_wait
(self, fileno, evt, task)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:49
↓ 1 callers
Function
add
(x, y)
src/9/defining_a_decorator_that_takes_arguments/example.py:25
↓ 1 callers
Function
add
(x, y)
src/9/unwrapping_a_decorator/example.py:21
↓ 1 callers
Function
add
(x, y)
src/9/defining_a_decorator_that_takes_an_optional_argument/example.py:19
↓ 1 callers
Function
apply_async
(func, args, *, callback)
src/7/inlining_callback_functions/example.py:5
↓ 1 callers
Method
as_csv
(self)
src/9/capturing_class_attribute_definition_order/example1.py:43
↓ 1 callers
Method
attach
(self, task)
src/12/implementing_publish_subscribe_messaging/exchange2.py:8
↓ 1 callers
Function
bar
()
src/15/diagnosing_segmentation_faults/example.py:8
↓ 1 callers
Method
bar
(self, y)
src/8/delegation_and_proxies/example2.py:33
↓ 1 callers
Method
bar
(self)
src/8/delegation_and_proxies/example1.py:12
↓ 1 callers
Method
bar
(self)
src/10/splitting_a_module_into_multiple_files/mymodule/b.py:6
↓ 1 callers
Method
class_method
(cls, n)
src/9/applying_decorators_to_class_and_static_methods/example.py:25
↓ 1 callers
Function
client_authenticate
Authenticate client to a remote service. connection represents a network connection. secret_key is a key known only to both client/server
src/11/simple_authentication_of_clients/auth.py:6
↓ 1 callers
Method
close
(self)
src/8/implementing_stateful_objects_or_state_machines/example1.py:17
↓ 1 callers
Function
combine
(source, maxsize)
src/2/combining_and_concatenating_strings/example.py:22
↓ 1 callers
Function
compute_cost
(records)
src/1/mapping_names_to_sequence_elements/example1.py:7
↓ 1 callers
Function
countdown
(n)
src/14/profiling_and_timing_your_program/timethis.py:18
↓ 1 callers
Function
countdown
(n)
src/15/consuming_an_iterable_from_c/example.py:5
↓ 1 callers
Function
countdown
Counts down
src/9/preserving_function_metadata_when_writing_decorators/example.py:19
↓ 1 callers
Function
countdown1
(n)
src/9/parsing_and_analyzing_python_source/namelower.py:56
↓ 1 callers
Function
countdown2
(n)
src/9/parsing_and_analyzing_python_source/namelower.py:61
↓ 1 callers
Function
counter
(sched)
src/12/using_generators_as_an_alternative_to_threads/actorsched.py:41
↓ 1 callers
Function
countup
(n)
src/12/using_generators_as_an_alternative_to_threads/simple.py:11
↓ 1 callers
Function
daemonize
(pidfile, *, stdin='/dev/null', stdout='/dev/null', stderr
src/12/launching_a_daemon_process_on_unix/daemon.py:9
↓ 1 callers
Method
decr
Decrement the counter with locking
src/12/how_to_lock_critical_sections/example1.py:18
↓ 1 callers
Function
dedupe
(items)
src/1/removing_duplicates_from_a_sequence_while_maintaining_order/example.py:5
↓ 1 callers
Function
dedupe
(items, key=None)
src/1/removing_duplicates_from_a_sequence_while_maintaining_order/example2.py:5
↓ 1 callers
Method
delete
(self, name)
src/11/simple_remote_procedure_call_with_xmlrpc/keyserv.py:17
↓ 1 callers
Method
delete
(self, name)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:26
↓ 1 callers
Method
depth_first
(self)
src/4/easy_implementation_of_the_iterator_protocol/example.py:19
↓ 1 callers
Method
detach
(self, task)
src/12/implementing_publish_subscribe_messaging/exchange2.py:11
↓ 1 callers
Function
do_bar
(s)
src/1/unpack_a_fixed_number_of_elements_from_iterables_of_arbitrary_length/example.py:14
↓ 1 callers
Function
do_foo
(x,y)
src/1/unpack_a_fixed_number_of_elements_from_iterables_of_arbitrary_length/example.py:11
↓ 1 callers
Function
echo_client
(client_sock, addr)
src/5/wrapping_an_existing_file_descriptor_as_a_file_object/echo.py:3
↓ 1 callers
Function
echo_client
(conn)
src/11/simple_communication_between_interpreters/echoserv.py:4
↓ 1 callers
Function
echo_client
(s)
src/11/adding_ssl_to_network_servers/echoserv.py:8
↓ 1 callers
Function
echo_handler
(client_sock)
src/11/simple_authentication_of_clients/server.py:6
↓ 1 callers
Function
echo_handler
(address, client_sock)
src/11/creating_a_tcp_server/echoserv5.py:5
↓ 1 callers
Function
echo_server
(address)
src/5/wrapping_an_existing_file_descriptor_as_a_file_object/echo.py:16
↓ 1 callers
Function
echo_server
(addr, nworkers)
src/12/how_to_create_a_thread_pool/example2.py:19
↓ 1 callers
Function
echo_server
(addr)
src/12/how_to_create_a_thread_pool/example1.py:17
↓ 1 callers
Function
echo_server
(address, authkey)
src/11/simple_communication_between_interpreters/echoserv.py:12
← previous
next →
101–200 of 870, ranked by callers