MCPcopy Create free account

hub / github.com/Tsche/magic_codec / functions

Functions33 in github.com/Tsche/magic_codec

↓ 12 callersFunctionassert_token_sequence
(source: str, expected_tokens: list[tuple[int, str]])
tests/incdec/test_incdec.py:7
↓ 12 callersMethoddecode
(self, data, final=False)
src/magic_codec/codec.py:25
↓ 12 callersFunctionidentifier
(name: str)
tests/incdec/test_incdec.py:33
↓ 8 callersFunctionparenthesize
(tokens: Iterable[tuple[int, str]])
tests/incdec/test_incdec.py:16
↓ 4 callersFunctionnumber
(value: int)
tests/incdec/test_incdec.py:41
↓ 4 callersFunctionoperator
(text: str)
tests/incdec/test_incdec.py:37
↓ 4 callersFunctionsubscript
(index: int)
tests/incdec/test_incdec.py:27
↓ 2 callersMethodfrom_tokens
(tokens: tuple[TokenInfo, TokenInfo, TokenInfo])
src/magic_codec/builtin/incdec.py:22
↓ 2 callersFunctionget_preprocessor
(module_name: str, package_name: Optional[str] = None)
src/magic_codec/codec.py:38
↓ 2 callersFunctionis_valid_name
(token)
src/magic_codec/builtin/incdec.py:11
↓ 2 callersFunctionis_valid_unary_operator
(token)
src/magic_codec/builtin/incdec.py:7
↓ 2 callersMethodto_tokens
(self)
src/magic_codec/builtin/incdec.py:41
↓ 1 callersMethoddo_decode
(data: bytes, errors='strict')
src/magic_codec/codec.py:16
↓ 1 callersFunctionmake_decoder
(preprocessor: Callable)
src/magic_codec/codec.py:11
↓ 1 callersFunctiontest_can_run
()
tests/incdec/test_incdec.py:120
↓ 1 callersFunctiontest_invalid_strings
()
tests/incdec/test_incdec.py:84
↓ 1 callersFunctiontest_valid
()
tests/incdec/test_incdec.py:50
↓ 1 callersFunctiontransform
(data)
src/magic_codec/builtin/incdec.py:60
↓ 1 callersFunctiontransform
(data: str)
src/magic_codec/builtin/braces.py:6
Method__init__
(self, name: str, operator: str, prefix: bool)
src/magic_codec/builtin/incdec.py:16
Method__str__
(self)
src/magic_codec/builtin/incdec.py:32
Method_buffer_decode
not used
src/magic_codec/codec.py:13
Functionfind_codec
(encoding: str)
src/magic_codec/codec.py:54
Functionmain
()
src/magic_codec/builtin/toml.py:17
Functionmain
tests/cpp/test.cpp:4
Functionpreprocess
(data: str)
example/src/magic_example/extension.py:1
Functionpreprocess
(data: str)
src/magic_codec/builtin/incdec.py:88
Functionpreprocess
(data: str)
src/magic_codec/builtin/braces.py:44
Functionpreprocess
(data: str)
src/magic_codec/builtin/toml.py:8
Functionpreprocess
(data: str)
src/magic_codec/builtin/cpp.py:1
Methodrun
(self)
setup.py:7
Functiontest_dummy
()
tests/test_dummy.py:1
Methodto_python
(self)
src/magic_codec/builtin/incdec.py:37