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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1010fcb58662155c910ac5618c1d7c048846123dbe47166454153243703e9721
|
|
| MD5 |
4ada77a7dc4a57f2d1b287d91fd9c387
|
|
| BLAKE2b-256 |
3ccf69fd2010d7a174d1e0b6a9ea181857b5eeb7916e406674538e62a93b4664
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d492573f19542cc60164425a0fcb747f8f837a1829ed03eb9b732c751e92e1a
|
|
| MD5 |
69e3fd0c1d33b45fcc51d25d660e5a2e
|
|
| BLAKE2b-256 |
c4a9cf9ad602b11f37f6978b01f4e877fc06f0c0aa2e7555ec50eaba27252b19
|