Skip to main content

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.

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

Uploaded CPython 3.11+manylinux: glibc 2.38+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

stringflow-0.2.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for stringflow-0.2.2.tar.gz
Algorithm Hash digest
SHA256 bb47c7397b73d0fd46518f23d95165f39fde51bc3bdf7227cf727dfcbc3f92f6
MD5 2e0499ed83bbbf49eb75f008c9f7ddce
BLAKE2b-256 038a758dc831a1b9310d2d4f2e1d7993ad5a6278d99b05dfcc843d167f57fc37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for stringflow-0.2.2-cp311-abi3-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 3284ff31022ff582d59181b1b9850df30ec25327206fc87e92c6bf60307a32dc
MD5 b618051a315f1e65b9c0c9928281ccd2
BLAKE2b-256 6de3edd847319bdc814e0b1ae3d61992402b31def477700ff8d1bb68a23dee85

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for stringflow-0.2.2-cp311-abi3-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 1312a79676af0944ab2b95821c397f944918a83a3721642ae3e44447e2cd3465
MD5 b28f6b3008ae86820d77b87fe2ff4ef9
BLAKE2b-256 80f0b0126f5514065e27c8a5f34ba47f74d60ead9b479c24bac5da0afe342bac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for stringflow-0.2.2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c8a778dcb9e75693f80a7f209e123c23812370c185e2fbd1180ca9f77c248d5
MD5 eaa8d084434a44b3987b6b1cf8a10ace
BLAKE2b-256 e5dd4fb02755e7bd1b886035049dfcf9d56752cc803f20e384727ee7ac1f06fa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for stringflow-0.2.2-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 561806e3f55f00d087c10ee20ad192a2cfdfc7a3809a2ffdb0d5bbdefe9609bb
MD5 5c821f46d86226d73747d4a6f19feeff
BLAKE2b-256 9d7678d4ca248f980b6cd980c15471f71b45de7637d7dbbed793d50f1a6e795a

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.2.2 This release

5 files

0.2.1

5 files

0.2.0

5 files

0.1.0

5 files

0.0.2

2 files

0.0.1

2 files

Supported by

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