Skip to main content

Flow strings through language models.

Project description

StringFlow

GitHub Release crates.io PyPI CI License: MIT

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!")],
)

Note: Streaming (chat_stream()) and async (chat_async()) APIs are currently Rust-only. Python provides synchronous chat() and health_check() only.

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.2.1.tar.gz (23.2 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.2.1-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.2.1-cp311-abi3-manylinux_2_38_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.38+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

stringflow-0.2.1-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.2.1.tar.gz.

File metadata

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

File hashes

Hashes for stringflow-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ad1f499e3edf029f445d11f4cc4afd7f4aaadc589a95782214e57b011fd3a886
MD5 9c2b179423dc3f78f99a2b2600e5f5d2
BLAKE2b-256 5f8109fe8d83e99f67dafd1d8b5990ef97501e7f7e0b18163204946b8f174aad

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.2.1.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.2.1-cp311-abi3-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for stringflow-0.2.1-cp311-abi3-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 4ef914979eb98402922b6103dd7ea24fe30d09ac58aee2b7d1888708b92b93b2
MD5 4791556803afbb5e1b55cb772e684da8
BLAKE2b-256 647b44cdccb6f59b5aa194b68b60ba234f6c6c4b80482603828a929d319c14e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.2.1-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.2.1-cp311-abi3-manylinux_2_38_aarch64.whl.

File metadata

File hashes

Hashes for stringflow-0.2.1-cp311-abi3-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 7e7f25939edf88d2e78dc78d652ea7bb4e275114aa0a5b3894a484e6483f753e
MD5 e8158983fad7879228d2a3c4f8a1790a
BLAKE2b-256 4fefead0dd2abe5a317d702c24e5630811e02952da31f0e78d8f05adb0961ecd

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.2.1-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.2.1-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for stringflow-0.2.1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3437d717aee5c5afa54d8237d3fb093ad81d32cac520b3662b386856b877b067
MD5 4740d3a8616bce6161f7039dd80e8ca6
BLAKE2b-256 8ed249fb53bb76f1e13f2da219316057594a89f56d215e4e525563ae95760d8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.2.1-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.2.1-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for stringflow-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3a768a0bcd16ac69c297fe7fb77ac5048a5548ed6a03e7014d668eb9d37d098d
MD5 81d30882f8a0a6537a54b49fa79c827c
BLAKE2b-256 5ce24d3006642c4718c684cae60e38b569c00a80437e67d066abb55ca57a6569

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringflow-0.2.1-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