Created
March 18, 2025 07:41
-
-
Save fiddyschmitt/067e0f3a34cd0ea26a24365c9c5b4fc2 to your computer and use it in GitHub Desktop.
markitdown notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install -e packages/markitdown[all] | |
pip install pyinstaller | |
create a bootstrap file: | |
markitdown-main\packages\markitdown\src\runme.py | |
content: | |
import markitdown.__main__ | |
if __name__ == "__main__": | |
markitdown.__main__.main() | |
Now compile to exe: | |
//can also use --onefile | |
"C:\Users\smith\AppData\Roaming\Python\Python311\Scripts\pyinstaller.exe" --onedir --hidden-import=markitdown --clean --name "markitdown" --collect-submodules=markitdown --collect-all=magika runme.py | |
Test exe: | |
markitdown.exe "C:\Temp\test.pdf" -o "C:\Temp\test.md" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment