Skip to main content

A Python SDK for the Nexus Question Generation API

Project description

Example usage in README.md:

from nexussdk5 import HackathonNexusAPI

api = HackathonNexusAPI(api_key="your_gemini_api_key_here")

# Generate questions
files = ["path/to/file1.pdf", "path/to/file2.jpg"]
result = api.generate_questions(files, num_questions=5, difficulty="medium")
print(result)

FOR Validate answer

validation = api.check_answer(
    question="What is the capital of France?", #Need to pass the generated questions here 
    correct_answer="Paris", #Correct answer here
    user_answer="London" #Pass user answer here too (The API will take care of the rest)
)
print(validation)

Install with:

pip install nexussdk5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexussdk5-5.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexussdk5-5.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file nexussdk5-5.1.0.tar.gz.

File metadata

  • Download URL: nexussdk5-5.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for nexussdk5-5.1.0.tar.gz
Algorithm Hash digest
SHA256 1010fcb58662155c910ac5618c1d7c048846123dbe47166454153243703e9721
MD5 4ada77a7dc4a57f2d1b287d91fd9c387
BLAKE2b-256 3ccf69fd2010d7a174d1e0b6a9ea181857b5eeb7916e406674538e62a93b4664

See more details on using hashes here.

File details

Details for the file nexussdk5-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: nexussdk5-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for nexussdk5-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d492573f19542cc60164425a0fcb747f8f837a1829ed03eb9b732c751e92e1a
MD5 69e3fd0c1d33b45fcc51d25d660e5a2e
BLAKE2b-256 c4a9cf9ad602b11f37f6978b01f4e877fc06f0c0aa2e7555ec50eaba27252b19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page