Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashwanthkumar/pdf-diff-service
Exposing https://github.com/JoshData/pdf-diff/ as FastAPI service.
https://github.com/ashwanthkumar/pdf-diff-service
fast-api pdf-diff
Last synced: about 6 hours ago
JSON representation
Exposing https://github.com/JoshData/pdf-diff/ as FastAPI service.
- Host: GitHub
- URL: https://github.com/ashwanthkumar/pdf-diff-service
- Owner: ashwanthkumar
- Created: 2020-07-13T10:12:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-14T21:59:37.000Z (over 1 year ago)
- Last Synced: 2024-04-14T09:19:02.219Z (7 months ago)
- Topics: fast-api, pdf-diff
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pdf-diff-service
Requires Python 3+.
## Usage
```
# Start the service on port 8000
$ docker run --rm -it -p "8000:8000" ashwanthkumar/pdf-diff-service:latest
$ curl --location --request POST 'localhost:8000/diff/' --form 'prev=@/path/to/prev.pdf' --form 'current=@/path/to/current.pdf' > diff.png
# open diff.png to view the actual diff
```## Development Setup
```
$ virtualenv --python python3 DENV
$ source DENV/bin/activate
$ pip install -r requirements.txt# Start the server on localhost:8000/
$ uvicorn main:app --reload --log-level trace
```