skai
skai is a simple and easy-to-use AI library for Python.
It allows you to interact with AI models with minimal code.
Installation
You can install skai directly from PyPI:
pip install skai
Make sure you have Python 3.7 or higher installed.
Install Dependencies
skai depends on the openai library. It will be installed automatically with pip.
If needed, you can install it manually:
pip install openai
---
Setup
Before using the library, set your API key and choose a model:
import skai
# Set your API key
skai.setapi("YOUR_API_KEY")
# Set the AI model (examples: "gpt-3.5-turbo", "gpt-4")
skai.setmodel("gpt-4")
---
Usage
Ask AI
# Ask a question
user_input = skai.askai(input("You: "))
Print AI Response
# Display AI response
skai.awnser("bot: ", user_input)
---
Example Script
import skai
skai.setapi("YOUR_API_KEY")
skai.setmodel("gpt-4")
question = skai.askai(input("You: "))
skai.awnser("bot: ", question)
Sample Run:
You: What is the capital of France?
bot: Paris
---
License
This project is licensed under the MIT License.
Metadata
Release files for askyai 0.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 | Provenance | |
|---|---|---|---|---|
| askyai-0.1.0.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| askyai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / askyai-0.1.0.tar.gz
| Download URL | askyai-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e11444e0bb726de01b75ffe3d9cca637c50d63317a5459ff10eb54eea5c7142
|
|
BLAKE2b-256 checksum How to use checksums |
0fa2a3bd74016690af93ac80e7df3ac0e62deef604f447e9cefe2e16560e1d5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / askyai-0.1.0-py3-none-any.whl
| Download URL | askyai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0131beedac3c1f9bf107a4dc07bd3a02962ebb658f07572e75134f3da1e2a096
|
|
BLAKE2b-256 checksum How to use checksums |
a9072e2a9abced5ab715d1e32b60baab2abd8604d9d250debbfe8fd7dd245f6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for askyai 0.1.0
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.