How renan3172/nfe-extractor2 works
This is a small fiscal-document lookup application: a user submits an image and Gemini API key, the service reads the access key, then queries public consultation services for the document. The source also contains XML/PDF response handling and fiscal entity extraction. The excerpt does not show the full route implementation or frontend behavior, so those links are left unverified; the graph reflects only visible calls and documented workflow stages.
Main entry points: index.py Fiscal document lookup · index.html Upload page
Components 10
User interface
- Upload page
public/index.html
Document service
- Processing route
api/index.py - Image key reading
api/index.py - Fiscal document lookup
api/index.py - XML/PDF handling
api/index.py - Fiscal entity extraction
api/index.py
External services
- Gemini API
- Public consultation site
- Consultation API
Other components
- User
Connections 9
- User → Upload page: submits image
- Upload page → Processing route: sends document
- Processing route → Image key reading: reads key
api/index.py - Image key reading → Gemini API: requests reading
api/index.py - Processing route → Fiscal document lookup: queries document
api/index.py - Fiscal document lookup → Public consultation site: posts access key
api/index.py - Fiscal document lookup → Consultation API: posts access key
api/index.py - Fiscal document lookup → XML/PDF handling: handles responses
api/index.py - XML/PDF handling → Fiscal entity extraction: extracts entities
api/index.py