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
Metadata
Release files for nexussdk5 5.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nexussdk5-5.1.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nexussdk5-5.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / nexussdk5-5.1.0.tar.gz
| Download URL | nexussdk5-5.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1010fcb58662155c910ac5618c1d7c048846123dbe47166454153243703e9721
|
|
BLAKE2b-256 checksum How to use checksums |
3ccf69fd2010d7a174d1e0b6a9ea181857b5eeb7916e406674538e62a93b4664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / nexussdk5-5.1.0-py3-none-any.whl
| Download URL | nexussdk5-5.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d492573f19542cc60164425a0fcb747f8f837a1829ed03eb9b732c751e92e1a
|
|
BLAKE2b-256 checksum How to use checksums |
c4a9cf9ad602b11f37f6978b01f4e877fc06f0c0aa2e7555ec50eaba27252b19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|