marktip 0.1.0__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- marktip/__init__.py +39 -0
- marktip/_core.cp313-win_amd64.pyd +0 -0
- marktip-0.1.0.dist-info/DELVEWHEEL +2 -0
- marktip-0.1.0.dist-info/METADATA +73 -0
- marktip-0.1.0.dist-info/RECORD +9 -0
- marktip-0.1.0.dist-info/WHEEL +5 -0
- marktip-0.1.0.dist-info/licenses/LICENSE +21 -0
- marktip-0.1.0.dist-info/licenses/third_party/md4c/LICENSE.md +22 -0
- marktip.libs/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll +0 -0
marktip/__init__.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Fast Markdown conversion for Tiptap-style JSON."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# start delvewheel patch
|
|
5
|
+
def _delvewheel_patch_1_13_0():
|
|
6
|
+
import os
|
|
7
|
+
if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'marktip.libs'))):
|
|
8
|
+
os.add_dll_directory(libs_dir)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
_delvewheel_patch_1_13_0()
|
|
12
|
+
del _delvewheel_patch_1_13_0
|
|
13
|
+
# end delvewheel patch
|
|
14
|
+
|
|
15
|
+
try:
|
|
16
|
+
from ._core import Document, __version__, from_dict, from_markdown
|
|
17
|
+
except ImportError: # pragma: no cover - development-only CMake build fallback
|
|
18
|
+
import importlib.util
|
|
19
|
+
import pathlib
|
|
20
|
+
import sys
|
|
21
|
+
|
|
22
|
+
_root = pathlib.Path(__file__).resolve().parents[2]
|
|
23
|
+
_candidates = sorted(_root.glob("build/**/_core*.so")) + sorted(_root.glob("build/**/_core*.pyd"))
|
|
24
|
+
if not _candidates:
|
|
25
|
+
raise
|
|
26
|
+
|
|
27
|
+
_spec = importlib.util.spec_from_file_location("marktip._core", _candidates[0])
|
|
28
|
+
if _spec is None or _spec.loader is None:
|
|
29
|
+
raise
|
|
30
|
+
_module = importlib.util.module_from_spec(_spec)
|
|
31
|
+
sys.modules[_spec.name] = _module
|
|
32
|
+
_spec.loader.exec_module(_module)
|
|
33
|
+
|
|
34
|
+
__version__ = _module.__version__
|
|
35
|
+
Document = _module.Document
|
|
36
|
+
from_dict = _module.from_dict
|
|
37
|
+
from_markdown = _module.from_markdown
|
|
38
|
+
|
|
39
|
+
__all__ = ["__version__", "Document", "from_markdown", "from_dict"]
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Version: 1.13.0
|
|
2
|
+
Arguments: ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-vvw_q7wx\\cp313-win_amd64\\build\\venv\\Scripts\\delvewheel', 'repair', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-vvw_q7wx\\cp313-win_amd64\\repaired_wheel', '-v', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-vvw_q7wx\\cp313-win_amd64\\built_wheel\\marktip-0.1.0-cp313-cp313-win_amd64.whl']
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: marktip
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Fast C++/MD4C Markdown parser and canonical Markdown serializer for Tiptap-style JSON
|
|
5
|
+
Keywords: markdown,tiptap,md4c,parser
|
|
6
|
+
Author: Saneaven (Minjae Kyung)
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
License-File: third_party/md4c/LICENSE.md
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Operating System :: MacOS
|
|
13
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
14
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
15
|
+
Classifier: Programming Language :: C++
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Topic :: Text Processing :: Markup :: Markdown
|
|
24
|
+
Requires-Python: >=3.9
|
|
25
|
+
Provides-Extra: test
|
|
26
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# marktip
|
|
30
|
+
|
|
31
|
+
Fast C++/MD4C Markdown conversion for Tiptap-style JSON.
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
python -m pip install marktip
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Release wheels are built for common CPython versions on Linux, macOS, and
|
|
40
|
+
Windows. If a wheel is not available for a platform, pip can build from the
|
|
41
|
+
source distribution with a C++17 compiler and standard Python build tooling.
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
import marktip as tm
|
|
47
|
+
|
|
48
|
+
doc = tm.from_markdown("# Hello")
|
|
49
|
+
ast = doc.to_dict()
|
|
50
|
+
markdown = doc.to_markdown()
|
|
51
|
+
|
|
52
|
+
doc = tm.from_dict(ast)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The first version targets GFM core syntax and canonical Markdown output rather
|
|
56
|
+
than byte-identical source preservation.
|
|
57
|
+
|
|
58
|
+
## Development
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
python -m pip install .[test]
|
|
62
|
+
python -m pytest
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
For a direct local CMake build:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
|
|
69
|
+
-Dpybind11_DIR="$(python -m pybind11 --cmakedir)"
|
|
70
|
+
cmake --build build
|
|
71
|
+
PYTHONPATH=python python -m pytest
|
|
72
|
+
PYTHONPATH=python python scripts/benchmark.py
|
|
73
|
+
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
marktip/_core.cp313-win_amd64.pyd,sha256=QbuUBZaCnBnRhwRxCXyYHw5Sq6E1EXHz7UoGcO42rac,415232
|
|
2
|
+
marktip/__init__.py,sha256=3blyIdLWfPBrlEdscj3OdWSeHysU8IlGGuobTrnaMIA,1310
|
|
3
|
+
marktip-0.1.0.dist-info/DELVEWHEEL,sha256=x-MxQgqM7i9nuM4yLBpxTdMw7IAcWipRhrnB-Z7-xPY,406
|
|
4
|
+
marktip-0.1.0.dist-info/METADATA,sha256=8_wxHTRDb9ynVEzJYAeXYGGAZSqpVK9tKGpVg9K8agw,2074
|
|
5
|
+
marktip-0.1.0.dist-info/RECORD,,
|
|
6
|
+
marktip-0.1.0.dist-info/WHEEL,sha256=UZrbbE4r80xj7Ncfa6JoeTVe-77bdXLkKUA63V8pKWQ,106
|
|
7
|
+
marktip-0.1.0.dist-info/licenses/LICENSE,sha256=Xa1qEekAIUarSf_oIMYGpmsKItn1GqDvz4Ow299g76E,1090
|
|
8
|
+
marktip-0.1.0.dist-info/licenses/third_party/md4c/LICENSE.md,sha256=mcdSBiukl8QbXDqQFSeMIK0wt9D7i05cj0BX0wPzcQI,1118
|
|
9
|
+
marktip.libs/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll,sha256=pMIim9wqKmMKzcCVtNhgCOXD47x3cxdDVPPaT1vrnN4,575056
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Minjae Kyung
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
# The MIT License (MIT)
|
|
3
|
+
|
|
4
|
+
Copyright © 2016-2024 Martin Mitáš
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
7
|
+
copy of this software and associated documentation files (the “Software”),
|
|
8
|
+
to deal in the Software without restriction, including without limitation
|
|
9
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
10
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
11
|
+
Software is furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included
|
|
14
|
+
in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
17
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
19
|
+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
22
|
+
IN THE SOFTWARE.
|
|
Binary file
|