Skip to content

Add Python client example and corresponding README usage section#2

Open
SohamB-42 wants to merge 2 commits intoINDIAPOST-gov:mainfrom
SohamB-42:feature/python-client-example
Open

Add Python client example and corresponding README usage section#2
SohamB-42 wants to merge 2 commits intoINDIAPOST-gov:mainfrom
SohamB-42:feature/python-client-example

Conversation

@SohamB-42
Copy link
Copy Markdown

This PR adds a minimal Python client example for interacting with the DIGIPIN API and documents it in the README.

Changes:

  • New example file: examples/python/client.py
    • Simple CLI to:
      • Encode latitude/longitude to DIGIPIN using GET /api/digipin/encode
      • Decode DIGIPIN to coordinates using GET /api/digipin/decode
  • New README section: "Using the API from Python"
    • Shows how to start the Node.js server and run the Python example.

Purpose:
To help Python developers quickly test and integrate the DIGIPIN API.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant