13 lines
299 B
Markdown
13 lines
299 B
Markdown
```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())
|
|
```
|