Skip to content

Commit

Permalink
docs: update usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyu94 committed Sep 12, 2023
1 parent d735d85 commit 799c42c
Show file tree
Hide file tree
Showing 4 changed files with 1,454 additions and 1,140 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ A collection of utility functions to process the query returns from the query fu
pip install libprocess
```

## Usage Example

Query and process metadata in [David Rumsey Map Collection](https://www.davidrumsey.com/):

```python
from libprocess import DavidRumseyMapCollection
querier = DavidRumseyMapCollection("./metadata/", "./imgs/")
querier.fetch_metadata(["https://www.davidrumsey.com/luna/servlet/as/search?q=type=chart"])
querier.process_metadata(save_path="processedMetadata.json")
```

## Documentation

See our [documentation website](https://oldvis.github.io/libprocess/).
2 changes: 1 addition & 1 deletion docs/guide/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ querier.fetch_metadata(
"https://www.davidrumsey.com/luna/servlet/as/search?q=type=chart",
]
)
querier.process_metadata(path="processedMetadata.json", img_dir=None)
querier.process_metadata(save_path="processedMetadata.json")
```

More examples can be found in the API Reference.
Loading

0 comments on commit 799c42c

Please sign in to comment.