AskJSON
As the name suggests, AskJSON helps you fetch answers or data from your json using natural language. It uses OpenAI API.
How to Use AskJSON:
-
Install the package using pip:
pip install AskJSON -
Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY='your_api_key_here' -
In your Python script, import
ask_jsonand call it with your JSON and query:from askjson import ask_json my_json_data = {...} # Your JSON data here my_query = "How many items are in the list?" result_code = ask_json(my_json_data, my_query) print(result_code)
Todo:
- have support for codellama
Metadata
Release files for AskJSON 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| AskJSON-0.1.2.tar.gz | 13.5 kB | Without provenance | Details for AskJSON-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| AskJSON-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for AskJSON-0.1.2-py3-none-any.whl |
Total release size: 22.8 kB
Release files / AskJSON-0.1.2.tar.gz
| Download URL | AskJSON-0.1.2.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95f2e61460b457c4099b741fcb3150cb44df2d8d26a3321dbeb0b9b932e7464e
|
|
BLAKE2b-256 checksum How to use checksums |
d1a165913dc135170cb94d60b74148a2dd59c3b7809fc41cf69364fe0fa368b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / AskJSON-0.1.2-py3-none-any.whl
| Download URL | AskJSON-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1763dd7aa59b82ed53df0852db2e4c7dcc141051d12724fe192dd78b27ea618e
|
|
BLAKE2b-256 checksum How to use checksums |
92bac8fd1a0005f6b6f6f83cde5064aa2ebe2b5108657cb2058c0feec7f387b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for AskJSON 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.