Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tsche/magic_codec
/ functions
Functions
33 in github.com/Tsche/magic_codec
⨍
Functions
33
◇
Types & classes
4
↓ 12 callers
Function
assert_token_sequence
(source: str, expected_tokens: list[tuple[int, str]])
tests/incdec/test_incdec.py:7
↓ 12 callers
Method
decode
(self, data, final=False)
src/magic_codec/codec.py:25
↓ 12 callers
Function
identifier
(name: str)
tests/incdec/test_incdec.py:33
↓ 8 callers
Function
parenthesize
(tokens: Iterable[tuple[int, str]])
tests/incdec/test_incdec.py:16
↓ 4 callers
Function
number
(value: int)
tests/incdec/test_incdec.py:41
↓ 4 callers
Function
operator
(text: str)
tests/incdec/test_incdec.py:37
↓ 4 callers
Function
subscript
(index: int)
tests/incdec/test_incdec.py:27
↓ 2 callers
Method
from_tokens
(tokens: tuple[TokenInfo, TokenInfo, TokenInfo])
src/magic_codec/builtin/incdec.py:22
↓ 2 callers
Function
get_preprocessor
(module_name: str, package_name: Optional[str] = None)
src/magic_codec/codec.py:38
↓ 2 callers
Function
is_valid_name
(token)
src/magic_codec/builtin/incdec.py:11
↓ 2 callers
Function
is_valid_unary_operator
(token)
src/magic_codec/builtin/incdec.py:7
↓ 2 callers
Method
to_tokens
(self)
src/magic_codec/builtin/incdec.py:41
↓ 1 callers
Method
do_decode
(data: bytes, errors='strict')
src/magic_codec/codec.py:16
↓ 1 callers
Function
make_decoder
(preprocessor: Callable)
src/magic_codec/codec.py:11
↓ 1 callers
Function
test_can_run
()
tests/incdec/test_incdec.py:120
↓ 1 callers
Function
test_invalid_strings
()
tests/incdec/test_incdec.py:84
↓ 1 callers
Function
test_valid
()
tests/incdec/test_incdec.py:50
↓ 1 callers
Function
transform
(data)
src/magic_codec/builtin/incdec.py:60
↓ 1 callers
Function
transform
(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
Function
find_codec
(encoding: str)
src/magic_codec/codec.py:54
Function
main
()
src/magic_codec/builtin/toml.py:17
Function
main
tests/cpp/test.cpp:4
Function
preprocess
(data: str)
example/src/magic_example/extension.py:1
Function
preprocess
(data: str)
src/magic_codec/builtin/incdec.py:88
Function
preprocess
(data: str)
src/magic_codec/builtin/braces.py:44
Function
preprocess
(data: str)
src/magic_codec/builtin/toml.py:8
Function
preprocess
(data: str)
src/magic_codec/builtin/cpp.py:1
Method
run
(self)
setup.py:7
Function
test_dummy
()
tests/test_dummy.py:1
Method
to_python
(self)
src/magic_codec/builtin/incdec.py:37