XPrompt client
client for XPrompt
Example
import xprmopt
api_key_response = xprompt.login(user_email='..', password='..')
xprompt.api_key = api_key_response['access_token']
xprompt.openai_api_key = ""
prompt = """tell me a joke"""
r = xprompt.OpenAIChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": prompt}], temperature=0)
print(r)
Publish client
- update the xprompt-common version in
pyproject.toml - bump version in
pyproject.toml poetry buildpoetry publishgit tag -a v0.1.0 -m "version 0.1.0"
Test out the client published
- create a new venv
- install the client
pip install xprompt - run the example above
Metadata
Release files for xprompt-client 0.1.4
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 |
|---|---|---|---|---|
| xprompt_client-0.1.4.tar.gz | 5.2 kB | Without provenance | Details for xprompt_client-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xprompt_client-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for xprompt_client-0.1.4-py3-none-any.whl |
Total release size: 12.9 kB
Release files / xprompt_client-0.1.4.tar.gz
| Download URL | xprompt_client-0.1.4.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
033bebc0386bb25d407788bef9905e5118ba88beb96527fd187f74bb22f7d7f7
|
|
BLAKE2b-256 checksum How to use checksums |
49e67f72d24dad002aa25b6ff7da72f9d0506d26aeab291911f35e89626879ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.11 Darwin/23.2.0
|
Release files / xprompt_client-0.1.4-py3-none-any.whl
| Download URL | xprompt_client-0.1.4-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4979123ab438bd828186d295bec9bbb4c24bbf51a9cdeaf30ada43cfe8c31bd5
|
|
BLAKE2b-256 checksum How to use checksums |
05bdb3559d30cd5344f28bf4b3ef18dc4054f5e8430ed3bd9cf0eb127ad5f82e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.11 Darwin/23.2.0
|
Security for xprompt-client 0.1.4
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.