This commit is contained in:
12
docs/snippets/python/getting-started/install_verify.md
Normal file
12
docs/snippets/python/getting-started/install_verify.md
Normal file
@@ -0,0 +1,12 @@
|
||||
```python title="Python"
|
||||
import asyncio
|
||||
from kreuzberg import extract_file, __version__
|
||||
|
||||
async def main() -> None:
|
||||
print(f"Kreuzberg version: {__version__}")
|
||||
|
||||
result = await extract_file("document.pdf")
|
||||
print(f"Extraction successful: {len(result.content) > 0}")
|
||||
|
||||
asyncio.run(main())
|
||||
```
|
||||
Reference in New Issue
Block a user