Skip to main content

Flow strings through language models.

Project description

StringFlow

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

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

Uploaded CPython 3.11+manylinux: glibc 2.38+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

stringflow-0.2.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.2.0.tar.gz.

File metadata

  • Download URL: stringflow-0.2.0.tar.gz
  • Upload date:
  • Size: 23.0 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.0.tar.gz
Algorithm Hash digest
SHA256 586ccedf2c08b935a8dc51fcde27db0073c3c085e27ca83bb3af0aad3acf3e04
MD5 4973d9fc01affab177738c815dc5a365
BLAKE2b-256 94f53d8813c710f60fea1c2004fec7a219bdded462eb02988541887908b87465

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for stringflow-0.2.0-cp311-abi3-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 804cac82b77cca6c5f0243ab30661be641618f38cefebfd14a42378dde8f6240
MD5 4282a57a1007aab6b85c7ccb77ad4ef8
BLAKE2b-256 26f7b643cf66e8edbedc7a319ec394c7787b9855c5e559887e86d912543e4459

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for stringflow-0.2.0-cp311-abi3-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 b218be938de19db61cfaafef5e78c53b8cbb8672e20d15985a646c3143da197e
MD5 ad950468fae8b37cc7e3aebcb081a4c5
BLAKE2b-256 e34d147c475d7cc416edec268a87a7075ed4e10bfb644a256a31d59fea4c9dbb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for stringflow-0.2.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7b2357b5d8d328305e82bf5f27e0c36a9b2b7dfdcb7e2442b35e9f39aa2cb6f
MD5 10c805b6318997e6f981f968f3d59c1d
BLAKE2b-256 1fef81b72dd6f91f3ba150e36126d729820fe2d980802b0e737fd900fa79a321

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for stringflow-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 86653cbc087b9db2db3cbddad2c8424d574f03eeaaa39acb202b01f92133a3e8
MD5 22f26e87625572c0c91beda28c1d00cb
BLAKE2b-256 86f7975eb07c2312d15b04a4382b01b2c8159a627aa73f31f2a00cac4ff178b0

See more details on using hashes here.

Provenance

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