Skip to content

Commit 6747410

Browse files
committed
Add comprehensive codec management functionality
1 parent d8cba03 commit 6747410

6 files changed

Lines changed: 1991 additions & 0 deletions

File tree

multicodec/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,32 @@
44
__email__ = "dhruv@dhruvb.com"
55
__version__ = "0.2.1"
66

7+
# Core Code type
8+
from .code import (
9+
RESERVED_END,
10+
RESERVED_START,
11+
Code,
12+
is_reserved,
13+
known_codes,
14+
)
15+
16+
# Original multicodec functions
717
from .multicodec import add_prefix, extract_prefix, get_codec, get_prefix, is_codec, remove_prefix
818

919
__all__ = [
20+
"RESERVED_END",
21+
# Constants
22+
"RESERVED_START",
23+
# Code type
24+
"Code",
25+
# Original functions
1026
"add_prefix",
1127
"extract_prefix",
1228
"get_codec",
1329
"get_prefix",
1430
"is_codec",
31+
"is_reserved",
32+
# Functions
33+
"known_codes",
1534
"remove_prefix",
1635
]

0 commit comments

Comments
 (0)