Skip to main content

Flow strings through language models.

Project description

stringflow

Flow strings through language models.

Install

cargo add stringflow
uv add stringflow

Usage

Rust

use stringflow::{AuthConfig, ChatMessage, ProviderConfig, WireFormat, chat_async};

let config = ProviderConfig {
    name: "local".to_string(),
    base_url: "http://localhost:8080".to_string(),
    wire_format: WireFormat::Messages,
    auth: AuthConfig::None,
    model: None,
    max_tokens: None,
};

let messages = vec![
    ChatMessage { role: "user".to_string(), content: "Hello!".to_string() },
];

let response = chat_async(&config, &messages).await?;

Python

import stringflow

response = stringflow.chat(
    base_url="http://localhost:8080",
    messages=[("user", "Hello!")],
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stringflow-0.1.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

stringflow-0.1.0-cp311-abi3-manylinux_2_38_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.38+ x86-64

stringflow-0.1.0-cp311-abi3-manylinux_2_38_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.38+ ARM64

stringflow-0.1.0-cp311-abi3-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

stringflow-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

Details for the file stringflow-0.1.0.tar.gz.

File metadata

  • Download URL: stringflow-0.1.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stringflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c28493eb3b968e2051c7f0dba6d52a83e4a558d952c803abba2130d0b9451b73
MD5 b5643bf102d7d42cf147a1afae9d016e
BLAKE2b-256 422c73ee0d5c20d64571ef8cbfa96aa84cc30aa55274c4458d7da1cb1dcb7e9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.1.0.tar.gz:

Publisher: release-python.yml on dkdc-io/stringflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stringflow-0.1.0-cp311-abi3-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for stringflow-0.1.0-cp311-abi3-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 6606616327c9197a01103c0b96c7f3d08213ebc544e24db64f80765abd3c547b
MD5 4ad9d1eda03eef6614fc2a6ec5a5e4a3
BLAKE2b-256 00e81b41d6602e26b747b3529d6a8924c50e242003ebf56219eaccb8bcb35518

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.1.0-cp311-abi3-manylinux_2_38_x86_64.whl:

Publisher: release-python.yml on dkdc-io/stringflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stringflow-0.1.0-cp311-abi3-manylinux_2_38_aarch64.whl.

File metadata

File hashes

Hashes for stringflow-0.1.0-cp311-abi3-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 c375b09ef84f0ffff4006936f5e5d5ec70ae60527122ca9cb9a8365e61008d62
MD5 c43f1d05ebd9e960c9b776408b1caacd
BLAKE2b-256 efcf52de0659ec27337e32bc94d689bff6f72ff498b1876be8fdbe1e0870c8e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.1.0-cp311-abi3-manylinux_2_38_aarch64.whl:

Publisher: release-python.yml on dkdc-io/stringflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stringflow-0.1.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stringflow-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0b3a1696dc79cd9b590d8e1ec71242f660b2ca116f78b0dc4ad178beaa11e1c
MD5 9c1b8c0cca282d800c09d002051a0468
BLAKE2b-256 755bfb073ce7dbb687939c887b330f6b61ae007f3cff72db158ad979441dac35

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.1.0-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: release-python.yml on dkdc-io/stringflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stringflow-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for stringflow-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b5cfefcf225d54ec0b5300fc921f29b2803fb79cda1b1cf21750d61fb796e222
MD5 849ba8f28a59e7695b67cc8b22b3b9b2
BLAKE2b-256 b057e50c4388aeec977acae5b614085b0d918b63a0a5ed53e35ac48c66c2463a

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl:

Publisher: release-python.yml on dkdc-io/stringflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page