Skip to content

Conversation

@google-labs-jules
Copy link

This change adds a FastAPI service to the project, allowing users to perform document redlining through a web API. The service is containerized using Docker and includes API token authentication and a file size limit for security.

The following changes are included:

  • A new FastAPI application in src/python_redlines/api.py.
  • A Dockerfile and docker-compose.yml for containerization.
  • Updated build and test configurations in pyproject.toml.
  • New tests for the API in tests/test_api.py.
  • An updated build script in build_differ.py.
  • A .gitignore file to exclude build artifacts.
  • A .env.example file for environment variable configuration.

PR created automatically by Jules for task 9152917385086058746

JSv4 and others added 30 commits April 1, 2024 14:43
…-docs Bump version and add notes to README.
…ag is passed to the constructor. Also updated the docs to fix a typo with quickstart.
The code has been updated to include support for macOS in the build and extraction process of the project. A new section is added to perform build and compression for macOS, in addition to existing mechanisms for Windows and Linux. The extraction method in engines.py is also modified to handle macOS specific binaries.
ross-mcnairn-dev and others added 4 commits June 4, 2024 20:59
Merge pull request JSv4#9 from ross-mcnairn-dev/main
This commit introduces a FastAPI application to provide a web interface for the document redlining functionality. The key features of this change are: - A FastAPI application with two endpoints: - `/redline/single`: Accepts two `.docx` files and returns a single redlined document. - `/redline/double`: Accepts two `.docx` files and returns a zip archive with two redlined documents (original vs. modified and modified vs. original). - API token authentication to secure the endpoints. - A 10MB file size limit to prevent abuse. - A `Dockerfile` and `docker-compose.yml` for easy containerization and deployment. - An updated build script (`build_differ.py`) to correctly build and package the C# binaries for multiple platforms. - Comprehensive tests for the new API endpoints, including tests for authentication and file size limits. - An updated `pyproject.toml` to manage dependencies and configure the test environment. - A `.gitignore` file to exclude build artifacts and environment files. - A `.env.example` file to provide a template for setting the API token.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai
Copy link

coderabbitai bot commented Oct 8, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants