dulwich.protocol
module documentationdulwich
Function | agent_string | Undocumented |
Function | capability_agent | Undocumented |
Function | capability_symref | Undocumented |
Function | extract_capability_names | Undocumented |
Function | parse_capability | Undocumented |
Function | symref_capabilities | Undocumented |
Class | ProtocolFile | A dummy file for network ops that expect file-like objects. |
Function | pkt_line | Wrap data in a pkt-line. |
Class | Protocol | Class for interacting with a remote git process over the wire. |
Class | ReceivableProtocol | Variant of Protocol that allows reading up to a size without blocking. |
Function | extract_capabilities | Extract a capabilities list from a string, if present. |
Function | extract_want_line_capabilities | Extract a capabilities list from a want line, if present. |
Function | ack_type | Extract the ack type from a capabilities list. |
Class | BufferedPktLineWriter | Writer that wraps its data in pkt-lines and has an independent buffer. |
Class | PktLineParser | Packet line parser that hands completed packets off to a callback. |
Parameters | data | The data to wrap, as a str or None. |
Returns | The data prefixed with its length in pkt-line format; if data was None, returns the flush-pkt ('0000'). |
Parameters | text | String to extract from |
Returns | Tuple with text with capabilities removed and list of capabilities |
Extract a capabilities list from a want line, if present.
Note that want lines have capabilities separated from the rest of the line by a space instead of a null byte. Thus want lines have the form:
want obj-id cap1 cap2 ...
Parameters | text | Want line to extract from |
Returns | Tuple with text with capabilities removed and list of capabilities |