Skip to content

pqaidevteam/pqai-db

Repository files navigation

Python Linting: pylint Docker build: automated Code style: black GitHub license

PQAI Data Storage Service

REST API for storing and retrieving documents. Documents can belong to patent or non-patent literature. The default format of data is JSON but other formats are supported. Drawings & figures are also supported.

For more detailed information, please refer to PQAI Wiki.

Routes

Method Endpoint Comments
GET /patents/[docId] Returns a document’s JSON data
GET /patents/[docId]/drawings Returns a list of document’s drawing identifiers
GET /patents/[docId]/drawings/[n] Returns a single patent drawing
* GET /patents/[docId]/thumbnails/[n] Returns a single patent thumbnail

*Yet to be implemented

How to run?

From command line

  1. Clone this repository
  2. Create a .env file using /env template and set environment variable values
  3. Create a virtual environment and install dependencies: pip install -r requirements.txt
  4. Run the service: python3 main.py

As docker container

  1. Clone this repository
  2. Create a .env file using /env template and set environment variable values
  3. Give execution permission to the deployment script: chmod +x deploy.sh
  4. Run deployment script: bash deploy.sh

License

The project is open-source under the MIT license.

Contribute

We welcome contributions.

To make a contribution, please follow these steps:

  1. Fork this repository.
  2. Create a new branch with a descriptive name
  3. Make the changes you want and add new tests, if needed
  4. Make sure all tests are passing
  5. Commit your changes
  6. Submit a pull request

Support

Please create an issue if you need help.

About

Document database service for PQAI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5