docs: Add setup with pypi to Readme (#7)
Signed-off-by: Christoph Auer <60343111+cau-git@users.noreply.github.com>
This commit is contained in:
parent
5c88574d03
commit
2803222ee1
18
README.md
18
README.md
@ -14,9 +14,19 @@ Docling bundles PDF document conversion to JSON and Markdown in an easy, self-co
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
You need Python 3.11 and poetry. Install poetry from [here](https://python-poetry.org/docs/#installing-with-the-official-installer).
|
For general usage, you can simply install `docling` through `pip` from the pypi package index.
|
||||||
|
```
|
||||||
|
pip install docling
|
||||||
|
```
|
||||||
|
|
||||||
Once you have `poetry` installed, create an environment and install the package:
|
**Notes**:
|
||||||
|
* Works on macOS and Linux environments. Windows platforms are currently not tested.
|
||||||
|
|
||||||
|
### Development setup
|
||||||
|
|
||||||
|
To develop for `docling`, you need Python 3.11 and `poetry`. Install poetry from [here](https://python-poetry.org/docs/#installing-with-the-official-installer).
|
||||||
|
|
||||||
|
Once you have `poetry` installed and cloned this repo, create an environment and install `docling` from the repo root:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
poetry env use $(which python3.11)
|
poetry env use $(which python3.11)
|
||||||
@ -24,10 +34,6 @@ poetry shell
|
|||||||
poetry install
|
poetry install
|
||||||
```
|
```
|
||||||
|
|
||||||
**Notes**:
|
|
||||||
* Works on macOS and Linux environments. Windows platforms are currently not tested.
|
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
For basic usage, see the [convert.py](https://github.com/DS4SD/docling/blob/main/examples/convert.py) example module. Run with:
|
For basic usage, see the [convert.py](https://github.com/DS4SD/docling/blob/main/examples/convert.py) example module. Run with:
|
||||||
|
Loading…
Reference in New Issue
Block a user