Skip to main content

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

  1. update the xprompt-common version in pyproject.toml
  2. bump version in pyproject.toml
  3. poetry build
  4. poetry publish
  5. git tag -a v0.1.0 -m "version 0.1.0"

Test out the client published

  1. create a new venv
  2. install the client pip install xprompt
  3. 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)

Source distribution for xprompt-client 0.1.4
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)

Table of built distributions (wheels) for xprompt-client 0.1.4
File Interpreter ABI Platform Actions
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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page