Skip to main content

Structured Text Generation in Rust

Project description

Outlines-core Logo

Contributors

Structured generation (in Rust).

This package provides the core functionality for structured generation, formerly implemented in Outlines, with a focus on performance and portability.

Install

We provide bindings to the following languages:

The latest release of the Python bindings is available on PyPi using pip:

pip install outlines-core

The current development branch of outlines-core can be installed from GitHub, also using pip:

pip install git+https://github.com/outlines-dev/outlines-core

Or install in a rust project with cargo:

cargo add outlines-core

How to contribute?

Setup

First, fork the repository on GitHub and clone the fork locally:

git clone git@github.com/YourUserName/outlines-core.git
cd outlines-core

Create a new virtual environment:

python -m venv .venv
source .venv/bin/activate

Then install the dependencies in editable mode, and install the pre-commit hooks:

pip install -e ".[test]"
pre-commit install

Before pushing your code

Run the tests:

pytest

And run the code style checks:

pre-commit run --all-files

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

outlines_core-0.1.13-cp311-cp311-win_amd64.whl (224.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

outlines_core-0.1.13-cp311-cp311-win32.whl (217.6 kB view details)

Uploaded CPython 3.11 Windows x86

outlines_core-0.1.13-cp311-cp311-musllinux_1_1_x86_64.whl (359.4 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

outlines_core-0.1.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (326.8 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

outlines_core-0.1.13-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (335.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

outlines_core-0.1.13-cp311-cp311-macosx_11_0_arm64.whl (288.7 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

outlines_core-0.1.13-cp311-cp311-macosx_10_9_x86_64.whl (307.5 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

outlines_core-0.1.13-cp310-cp310-win_amd64.whl (224.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

outlines_core-0.1.13-cp310-cp310-win32.whl (217.9 kB view details)

Uploaded CPython 3.10 Windows x86

outlines_core-0.1.13-cp310-cp310-musllinux_1_1_x86_64.whl (359.8 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

outlines_core-0.1.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (327.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

outlines_core-0.1.13-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (335.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

outlines_core-0.1.13-cp310-cp310-macosx_11_0_arm64.whl (288.9 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

outlines_core-0.1.13-cp310-cp310-macosx_10_9_x86_64.whl (307.7 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

outlines_core-0.1.13-cp39-cp39-win_amd64.whl (225.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

outlines_core-0.1.13-cp39-cp39-win32.whl (218.0 kB view details)

Uploaded CPython 3.9 Windows x86

outlines_core-0.1.13-cp39-cp39-musllinux_1_1_x86_64.whl (360.2 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

outlines_core-0.1.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (327.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

outlines_core-0.1.13-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (336.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

outlines_core-0.1.13-cp39-cp39-macosx_11_0_arm64.whl (289.2 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

outlines_core-0.1.13-cp39-cp39-macosx_10_9_x86_64.whl (308.1 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

outlines_core-0.1.13-cp38-cp38-win_amd64.whl (225.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

outlines_core-0.1.13-cp38-cp38-win32.whl (218.0 kB view details)

Uploaded CPython 3.8 Windows x86

outlines_core-0.1.13-cp38-cp38-musllinux_1_1_x86_64.whl (360.3 kB view details)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

outlines_core-0.1.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (327.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

outlines_core-0.1.13-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (336.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

outlines_core-0.1.13-cp38-cp38-macosx_11_0_arm64.whl (289.2 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

outlines_core-0.1.13-cp38-cp38-macosx_10_9_x86_64.whl (308.0 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file outlines_core-0.1.13-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9e87f85261ce702675243a8c73f31a3586a62c3301310216f3aaf08c560a8aee
MD5 1fb9ecac805392c87de7fab8d1292048
BLAKE2b-256 526389afd3f2801161724e2ca5826132399e675fa03eee9a566d610881c551d0

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 700074f3c113dee075fee1235a2f6bee32e848e1a79505d1ae69bc12b1c0d6b2
MD5 d436ca2d66cde8cf380b6ba68716d0d7
BLAKE2b-256 cc4403480266e245ebc4af53ffbeace6314d53d89a5d7d507adce0b7fd8217c0

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 185e44db657a18f0a3e61942e1804ad9a86adc680b6be6610a6893178c6af623
MD5 bf50e970d1225f3d9d14257b2d28944f
BLAKE2b-256 c2527f938e88f77847254124f036b3e8b83494fcdc39ee6a06b406b7327daa35

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 38869b4a9bf42efb1b32ccfb547d1ef26538bcad12cb6d6c7ff6de6d2772dc73
MD5 b1a89a036f208a550e8677833253373a
BLAKE2b-256 e279a31e243d011a99679a130863a08080f127d988859eebcf2ebd3d6735ffce

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 5095a4b663f0eba5e5886c11eb7ad5928aa730e9e5d27158576bf9cb437619b1
MD5 040428dce4d043a7c753e3dba2923986
BLAKE2b-256 dc745e1de6f31d555f456fa2760f53df36e384bcd6b02bbc28afbd4d178e7200

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f36081184ebe671589d3bdc7b4ff3cdc552368ad1d0f23f7b8e426f05c9ba20
MD5 147f192273690d09f95aa67d2e408dc2
BLAKE2b-256 7ffb1f94a0b12833d9560004b073ecbe4ab434ef03c2662885c8f62992c2b9ba

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1065c77c54a43eab486e79a2baaecebb03921af61ca7fd5ca4bd1f155349d952
MD5 996efe9b268f7187967191b55b92c3fc
BLAKE2b-256 409120e4ba448f94260d5076b243f0848d9e2a9f9f222eb046f2bcd957eda07c

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 42dc569be96d8120a71f76a8cf28cf6f9abb1454aaa01e2ce33e4a73ced2dfa3
MD5 8cf486b51bd43f4410a4c98d7dd585a0
BLAKE2b-256 3ddbcebc25477d84fed1acf44ef452d3880ff68d22f2df0c1dfc2d97feb2d408

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7f3dab9286a299c5f873f89783b00f085a83788e1d9772f3ec67124e189132eb
MD5 2911afef5675b5689f40205a249f8a9c
BLAKE2b-256 d96e669d0a9d490ea73ac60618c8cfc602caaef52d3b111c8e0277010938182c

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 958b959304dd3e59edfb191f16e4a0bdc07948887d52c3663c892e97dbbfab06
MD5 4040ddda09a2757a4a35b46ab5531ac2
BLAKE2b-256 fff91bf6dc80753ccbc5b359b410e4b863d9e167c672c89c94547bdfc27b267a

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cefa90b37a52dc950c34afc83bb8093d46a3b32c894419abf32c284ff9dfa90f
MD5 6144a115f1c1d90785c4db9dab1a7602
BLAKE2b-256 b109dd8710025ad890c02c282e6e8f23c8ff6cac06fd45c143283445342bd709

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c6cd5bdd727f7b0cc283ce7163b4667dda0cd9a84b8fce67f8520feaa149a6eb
MD5 761721fe843bb781a572927b2f641f57
BLAKE2b-256 454148936cc3b5f7b8a30a57e7443221c3ba6282a3cbe3021529f5b4aa1cfb47

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d823ae7f88bfa852384e1e8ab9d5ae41b319459d79c56be44ae9ad741032de72
MD5 169d7bc782e59b8c7581f6ec0c71912f
BLAKE2b-256 d7448c2f53525602842f4a1878a04e9d1a516c6e27e84c5d90076ab256a10294

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ed3e0806cc909857db3197b3549bd5341fd7e024f14a67c785b0b42cc7a3604c
MD5 fea3c454fd5b595d91337036080fc45d
BLAKE2b-256 3e1b41447017daddaca1d428509d131f2725be59b90ec7fdad837089391a5449

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c041d2ae0115379b276d374c5c76b279415769c9e0f6346ab94018928320e23f
MD5 2544f373a5987983f9bcc8e735f8f131
BLAKE2b-256 ca4a82cbf19b7a237361d6fbe048a1db8c3b662caf8794420cd801c1f979d206

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp39-cp39-win32.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7ae8490009048f2d3c153bc53edbf3f438d70ed71e73f9f46a2c7154469c9ebd
MD5 d5c74c84f85308892da7dcd6f6ec4130
BLAKE2b-256 95da098ee052644c1a9fdbe07c0c68619f2711b5c0e6f76a92dc67828b8de055

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 625cd9964a0b9bc78e2c9a20f68bded96007110bd8deb8f82df5e8a94b6c2c9f
MD5 e71e86a881d93cde1e8044a5e475ede7
BLAKE2b-256 cf91b4563b5c2153b21d107cc4139988fdb2cc7320ada20a1c4708dea28f96ff

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a6eae5cad27b496d34556312000499feb2676b621e330f80cb29d3c15bd5b44
MD5 6ed6d3f5ebd1c9c4d5770906409262e4
BLAKE2b-256 8acf39937fdf7f5cb8d6bf8232289b38b14c9aebf0002138d12cdb30b133c121

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 fdb4e2392740c51d862a8873488b39636c6de4eb0fe155f36d05d64bb5d677c5
MD5 fb1e3602e9985dbc17c57a5a69d1c9ee
BLAKE2b-256 6c0836d8666dde54e47af08a7787ed081f64e6d5330fc07995eee4430499b551

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e3a761fa9caa17d052fc7fa9794e2ff1a28238be3801b37c0f4ff1c0857fe87
MD5 f9230130742cf8dd81da890ce250552f
BLAKE2b-256 68589219806891c067c6a1819dee76af9c538e7d0253b2ee1dbd8b28e51c31e6

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e02c4b32054e2b40a7f9d5e4fe521da7b3183b10fec4d28f348816184ff1afa4
MD5 ec96bdf50e3a4007645edfa5abc888e8
BLAKE2b-256 b003b1062b204368148a3a61626dfd2376b343a326a67b14f5d05c53d572db57

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e57cc1ba9809439d95a0168edaaa2a89e06fab621b9388ea5ccfee09c85a43d6
MD5 7cd4b006fc7f394e15cb0ed952943636
BLAKE2b-256 229183b8d7518beb474102b3d1cb7c32e9b2c5ea0e96b1dc309c8ad46bee6b6a

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp38-cp38-win32.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 72a1d78645a0304e94bd86da3237694ab300a0ed0ca603cb046ace9ca3ad75af
MD5 6571cb5cbea083269c01bc495274493e
BLAKE2b-256 f09054d3476e7dc2ae4945b1c41637e66f08b5b5977550a5cfc61a5812e4d77e

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp38-cp38-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d3658db7537fc9edca961c7ab5af5b251bc2f696462159843a69ea3d944111aa
MD5 ed96bab8adfc798a39809a9d78fc7b9d
BLAKE2b-256 9701a6ff4d8f7c2355382884ce2bc9234f7fef33eb6f250dc16f09662fed85ab

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 257f4675f775daa0437950c9b60d7b293484490e3deeb325fb8314bdcc575dbd
MD5 9b4e07c5a2369cccb86bb5610445dbe0
BLAKE2b-256 c041e5e4558349feb5e191cb1ead95e2b4e2cafb45c9cb38922bd363e9568967

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d2f656588cfedf07bbbb5bc4f63da5563eea24d697cc434f3d899df4c6dd8865
MD5 27f98916d546a3d013f65db5cfebb895
BLAKE2b-256 1eaddab3ba3490d0a10a8b0ca1a6b561378d8e1a25f0c9331f70c8752a2cf32f

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3533f7a577ea190097188f1a172fe7dcd175244cfb34297f6881b551d758de1b
MD5 48db4d7334628603530651282f1b1f3a
BLAKE2b-256 f1221cf05147180f862aef029583b0cd55aeab15696798d55b265ae129c29aab

See more details on using hashes here.

File details

Details for the file outlines_core-0.1.13-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for outlines_core-0.1.13-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 eac298db626f4cb1512ca568f4df2e5df787a12c4cbae93669920963ed53003e
MD5 0adeab5d49e3ffae9101db5f7d5328ad
BLAKE2b-256 a2efe6d716217f434d780a73f3dadf102733dafc5ae540e103110564d99cc03b

See more details on using hashes here.

Supported by

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