Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To build a data connector between a FastAPI service and the Data management system that needs to be built using Frappe #1

Open
KaranrajM opened this issue Nov 14, 2024 · 4 comments
Assignees
Labels
C4GT Bounty Successful closure has a monetary reward C4GT coding Coding related C4GT Community Assignable to C4GT community developers

Comments

@KaranrajM
Copy link
Contributor

KaranrajM commented Nov 14, 2024

Description

There is a need to store data into a management system from a FastAPI service. The management system should be built using the Frappe framework to store data seamlessly. Write a Frappe connector that connects with the FastAPI service (which provides data) to store the data into the management system.

Goal

To create a generic connector that helps to transfer and store data into a management system built using Frappe.

Expected Outcome

FastAPI Service

  • To send the input JSON object

Frappe Setup

  • To receive data through an API and store it into the database in a generic way so that it can be displayed on the dashboard (for now in a basic table format).

Acceptance Criteria

Context-specific details triggered from the API are to be stored in the database and visualized on the Dashboard page built using Frappe.

Implementation Details

  1. Build a FastAPI service that can send a JSON object to any open API service.
  2. Set up Frappe on a local machine using the guide here:
  3. Store the details into the database (preferably PostgreSQL) based on the following details:
    • context_title: Represents the table name in the database
    • context_details: Represents the column names and values within the table
  4. Build a dashboard in Frappe that shows the context-specific details in a table format.

For Example

Below are the sample JSON objects sent from the FastAPI Service to Frappe API.

Example 1

{
  "context_title": "user_details",
  "context_details": {
    "Name": "XYZ",
    "Age": 28,
    "Gender": "Male"
  }
}

Example 2

{
  "context_title": "user_details",
  "context_details": {
     "query": "ABC",
     "phone_no": 28231231,
     "rti_pdf": "abc.pdf"
  }
}

The Dashboard should look something like below [Please note that the given data stored in a generic way as in the user can display the data in chart form as well]-

User Details

Name Age Gender
XYZ 28 Male

RTI Details

Query PhoneNo RTI_pdf
ABC 281819111 abc.pdf

Mockups/Wireframes

NOT APPLICABLE

Product Name

Jugalbandi

Organisation Name

OpenNyAI

Domain

Legal

Tech Skills Needed

  • Python
  • Frappe

Complexity

Medium

Category

Backend

@Lekhanrao Lekhanrao added C4GT Community Assignable to C4GT community developers C4GT coding Coding related C4GT Bounty Successful closure has a monetary reward labels Nov 15, 2024
@NEGRAH-S
Copy link

Hello @KaranrajM , @Lekhanrao , I am interested to work on this issue .

@Savio629
Copy link

Savio629 commented Dec 9, 2024

Hi team, is there any additional briefing or context about the issue that I should keep in mind? Also, thank you for shortlisting me through the process!

@Lekhanrao
Copy link
Collaborator

@Savio629, Assigned this ticket to you.
@KaranrajM will help you with Technical details.

@Lekhanrao
Copy link
Collaborator

@Savio629, Karan will reach out to you for a quick Intro call this week. And then we plan to have a weekly connect call as well.
@KaranrajM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C4GT Bounty Successful closure has a monetary reward C4GT coding Coding related C4GT Community Assignable to C4GT community developers
Projects
None yet
Development

No branches or pull requests

4 participants