Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GeoInsights/ChinaAQIData
/ functions
Functions
251 in github.com/GeoInsights/ChinaAQIData
⨍
Functions
251
◇
Types & classes
67
↓ 53 callers
Method
read
(self, *args, **kwargs)
python-wcfbin/proxy.py:308
↓ 19 callers
Method
write
(self, *args, **kwargs)
python-wcfbin/proxy.py:307
↓ 18 callers
Method
to_bytes
>>> AttributeRecord('x', 'test', TrueTextRecord()).to_bytes() b'\\x05\\x01x\\x04test\\x86'
python-wcfbin/wcf/records/attributes.py:99
↓ 17 callers
Method
parse
>>> from io import BytesIO >>> fp = BytesIO(b'\\x01x\\x04test\\x86') >>> ar = AttributeRecord.parse(fp) >>> str(ar.pr
python-wcfbin/wcf/records/attributes.py:115
↓ 12 callers
Method
close
(self)
python-wcfbin/proxy.py:310
↓ 10 callers
Method
to_bytes
Generates the representing bytes of the record >>> from wcf.records import * >>> Record(0xff).to_bytes() b'\\xff'
python-wcfbin/wcf/records/base.py:60
↓ 9 callers
Method
to_bytes
r""" >>> Int8TextRecord(42).to_bytes() b'\x88*'
python-wcfbin/wcf/records/text.py:114
↓ 8 callers
Method
error
(self, message)
python-wcfbin/wcf/MyHTMLParser.py:123
↓ 8 callers
Method
to_bytes
>>> ElementRecord('x', 'Envelope').to_bytes() b'A\\x01x\\x08Envelope'
python-wcfbin/wcf/records/elements.py:100
↓ 6 callers
Method
add_records
adds records to the lookup table :param records: list of Record subclasses :type records: list(Record)
python-wcfbin/wcf/records/base.py:47
↓ 6 callers
Method
parse
>>> from io import BytesIO >>> buf = BytesIO(b'\\x00\\x00\\x06\\x00\\x00\\x00\\x00\\x00\\x80-N\\x00\\x00\\x00\\x00\\x00') >>>
python-wcfbin/wcf/datatypes.py:211
↓ 6 callers
Method
parse
r""" >>> from io import BytesIO >>> fp = BytesIO(b'\x01x\x08Envelope') >>> er = ElementRecord.parse(fp) >>> str(er)
python-wcfbin/wcf/records/elements.py:117
↓ 6 callers
Method
to_bytes
>>> Utf8String("abc").to_bytes() b'\\x03\x61\x62\x63' >>> Utf8String("\xfcber").to_bytes() b'\\x05\\xc3\\xbcber'
python-wcfbin/wcf/datatypes.py:133
↓ 5 callers
Function
dump_records
returns the byte representation of a given record tree :param records: the record tree :type records: wcf.records.Record :returns: a
python-wcfbin/wcf/records/__init__.py:90
↓ 5 callers
Method
handle_data
(self, data)
python-wcfbin/wcf/MyHTMLParser.py:354
↓ 5 callers
Method
parse
Parses the binary data from fp into Record objects :param fp: file like object to read from :returns: a root Record object w
python-wcfbin/wcf/records/base.py:77
↓ 4 callers
Method
__init__
(self, prefix, name, value)
python-wcfbin/wcf/records/attributes.py:94
↓ 4 callers
Method
_parse_data
(self, data, is_cdata=False)
python-wcfbin/wcf/xml2records.py:91
↓ 4 callers
Method
_store_data
(self, data, end=False, is_cdata=False)
python-wcfbin/wcf/xml2records.py:81
↓ 4 callers
Method
handle_data
(self, data)
python-wcfbin/wcf/xml2records.py:250
↓ 4 callers
Method
to_bytes
>>> MultiByteInt31(268435456).to_bytes() b'\\x80\\x80\\x80\\x80\\x01' >>> MultiByteInt31(0x7f).to_bytes() b'\\x7f'
python-wcfbin/wcf/datatypes.py:45
↓ 3 callers
Method
feed
r"""Feed data to the parser. Call this as often as you want, with as little or as much text as you want (may include '\n').
python-wcfbin/wcf/MyHTMLParser.py:110
↓ 3 callers
Function
print_records
prints the given record tree into a file like object :param records: a tree of record objects :type records: wcf.records.Record :para
python-wcfbin/wcf/records/__init__.py:42
↓ 2 callers
Method
__init__
(self, prefix, name, *args, **kwargs)
python-wcfbin/wcf/records/elements.py:96
↓ 2 callers
Method
_connect_to
(self, netloc, soc)
python-wcfbin/proxy.py:55
↓ 2 callers
Method
_parse_attr
(self, name, value)
python-wcfbin/wcf/xml2records.py:177
↓ 2 callers
Method
_parse_tag
(self, tag)
python-wcfbin/wcf/xml2records.py:49
↓ 2 callers
Method
goahead
(self, end)
python-wcfbin/wcf/MyHTMLParser.py:141
↓ 2 callers
Method
handle_endtag
(self, tag)
python-wcfbin/wcf/MyHTMLParser.py:342
↓ 2 callers
Method
handle_starttag
(self, tag, attrs)
python-wcfbin/wcf/MyHTMLParser.py:338
↓ 2 callers
Method
parse
(cls, fp)
python-wcfbin/wcf/records/text.py:82
↓ 2 callers
Method
unescape
(self, s)
python-wcfbin/wcf/MyHTMLParser.py:374
↓ 2 callers
Function
usage
(msg=None)
python-wcfbin/proxy.py:287
↓ 1 callers
Method
__init__
(self)
python-wcfbin/proxy.py:306
↓ 1 callers
Method
__str__
(self)
python-wcfbin/wcf/records/text.py:78
↓ 1 callers
Method
_read_write
(self, soc, max_idling=20, local=False)
python-wcfbin/proxy.py:221
↓ 1 callers
Method
_send_with_handler
(self, soc)
python-wcfbin/proxy.py:140
↓ 1 callers
Method
check_for_whole_start_tag
(self, i)
python-wcfbin/wcf/MyHTMLParser.py:287
↓ 1 callers
Method
clear_cdata_mode
(self)
python-wcfbin/wcf/MyHTMLParser.py:135
↓ 1 callers
Method
close
Handle any buffered data.
python-wcfbin/wcf/MyHTMLParser.py:119
↓ 1 callers
Function
daemonize
(logger)
python-wcfbin/proxy.py:304
↓ 1 callers
Function
data_from_xml_json
(xmlfile)
xml2json.py:8
↓ 1 callers
Function
encode_decode
(headers, data)
python-wcfbin/WcfPlugin.py:12
↓ 1 callers
Function
escape
(text)
python-wcfbin/wcf/records/text.py:49
↓ 1 callers
Function
escapecp
(cp)
python-wcfbin/wcf/records/text.py:45
↓ 1 callers
Method
fileno
(self)
python-wcfbin/proxy.py:309
↓ 1 callers
Method
handle_charref
(self, name)
python-wcfbin/wcf/MyHTMLParser.py:346
↓ 1 callers
Method
handle_entityref
(self, name)
python-wcfbin/wcf/MyHTMLParser.py:350
↓ 1 callers
Method
handle_pi
(self, data)
python-wcfbin/wcf/MyHTMLParser.py:366
↓ 1 callers
Method
handle_startendtag
(self, tag, attrs)
python-wcfbin/wcf/MyHTMLParser.py:333
↓ 1 callers
Function
logSetup
(filename, log_size, daemon)
python-wcfbin/proxy.py:263
↓ 1 callers
Method
log_error
(self, format, *args)
python-wcfbin/proxy.py:252
↓ 1 callers
Function
main
()
python-wcfbin/proxy.py:338
↓ 1 callers
Method
parse_endtag
(self, i)
python-wcfbin/wcf/MyHTMLParser.py:317
↓ 1 callers
Method
parse_pi
(self, i)
python-wcfbin/wcf/MyHTMLParser.py:224
↓ 1 callers
Method
parse_starttag
(self, i)
python-wcfbin/wcf/MyHTMLParser.py:236
↓ 1 callers
Method
reset
Reset this instance. Loses all unprocessed data.
python-wcfbin/wcf/MyHTMLParser.py:103
↓ 1 callers
Method
set_cdata_mode
(self)
python-wcfbin/wcf/MyHTMLParser.py:132
↓ 1 callers
Method
to_bytes
>>> Decimal(False, 0, 5123456, 6).to_bytes() b'\\x00\\x00\\x06\\x00\\x00\\x00\\x00\\x00\\x80-N\\x00\\x00\\x00\\x00\\x00'
python-wcfbin/wcf/datatypes.py:176
↓ 1 callers
Method
unknown_decl
(self, data)
python-wcfbin/wcf/MyHTMLParser.py:369
↓ 1 callers
Function
xmlparse
parse air quality xml data to dict list
xml2json.py:19
Method
__init__
(self, server_address, RequestHandlerClass, logger=None)
python-wcfbin/proxy.py:258
Method
__init__
(self, obj)
python-wcfbin/proxy.py:312
Method
__init__
(self, *args, **kwargs)
python-wcfbin/tests/alltests.py:47
Method
__init__
(self, msg, position=(None, None))
python-wcfbin/wcf/MyHTMLParser.py:61
Method
__init__
Initialize and reset this instance.
python-wcfbin/wcf/MyHTMLParser.py:99
Method
__init__
(self, *args)
python-wcfbin/wcf/datatypes.py:42
Method
__init__
(self, *args)
python-wcfbin/wcf/datatypes.py:128
Method
__init__
(self, sign, high, low, scale)
python-wcfbin/wcf/datatypes.py:167
Method
__init__
(self, value)
python-wcfbin/wcf/records/text.py:111
Method
__init__
(self, value)
python-wcfbin/wcf/records/text.py:227
Method
__init__
(self, string)
python-wcfbin/wcf/records/text.py:258
Method
__init__
(self, prefix, index)
python-wcfbin/wcf/records/text.py:360
Method
__init__
(self, value)
python-wcfbin/wcf/records/text.py:401
Method
__init__
(self, value)
python-wcfbin/wcf/records/text.py:445
Method
__init__
(self, value)
python-wcfbin/wcf/records/text.py:489
Method
__init__
(self, value, tz)
python-wcfbin/wcf/records/text.py:518
Method
__init__
(self, value)
python-wcfbin/wcf/records/text.py:569
Method
__init__
(self, *args, **kwargs)
python-wcfbin/wcf/records/text.py:662
Method
__init__
(self, data)
python-wcfbin/wcf/records/text.py:705
Method
__init__
(self, data)
python-wcfbin/wcf/records/text.py:738
Method
__init__
(self, data)
python-wcfbin/wcf/records/text.py:771
Method
__init__
(self, value)
python-wcfbin/wcf/records/text.py:816
Method
__init__
(self, index)
python-wcfbin/wcf/records/text.py:845
Method
__init__
(self, name, *args, **kwargs)
python-wcfbin/wcf/records/elements.py:54
Method
__init__
(self, index, *args, **kwargs)
python-wcfbin/wcf/records/elements.py:133
Method
__init__
(self, prefix, index, *args, **kwargs)
python-wcfbin/wcf/records/elements.py:175
Method
__init__
(self, name)
python-wcfbin/wcf/records/elements.py:223
Method
__init__
(self, index)
python-wcfbin/wcf/records/elements.py:254
Method
__init__
(self, type=None)
python-wcfbin/wcf/records/base.py:56
Method
__init__
(self, comment, *args, **kwargs)
python-wcfbin/wcf/records/base.py:160
Method
__init__
(self, element, data, attributes)
python-wcfbin/wcf/records/base.py:202
Method
__init__
(self, name, value)
python-wcfbin/wcf/records/attributes.py:55
Method
__init__
(self, index, value)
python-wcfbin/wcf/records/attributes.py:138
Method
__init__
(self, prefix, index, value)
python-wcfbin/wcf/records/attributes.py:179
Method
__init__
(self, index)
python-wcfbin/wcf/records/attributes.py:224
Method
__init__
(self, prefix, index)
python-wcfbin/wcf/records/attributes.py:258
Method
__init__
(self, value, *args, **kwargs)
python-wcfbin/wcf/records/attributes.py:297
Method
__init__
(self, name, value, *args, **kwargs)
python-wcfbin/wcf/records/attributes.py:329
Method
__init__
(self, name, value)
python-wcfbin/wcf/records/attributes.py:361
next →
1–100 of 251, ranked by callers