Kusai
Building
git clone https://codeberg.org/kasefuchs/kusai.git
mkdir cmake-build && cd cmake-build
cmake ..
cmake --build .
Install to system with
cmake --build . --target install
Using
CMake
find_package(kusai REQUIRED)
target_link_libraries(<your-target> kusai::textchain)
Or FetchContent version
include(FetchContent)
FetchContent_Declare(kusai
GIT_REPOSITORY https://codeberg.org/kasefuchs/kusai.git
GIT_TAG <tag>
)
FetchContent_MakeAvailable(kusai)
target_link_libraries(<your-target> kusai::textchain)
Hello World
#include <kusai/graph/MemoryGraph.hpp>
#include <kusai/markov/SimpleMarkov.hpp>
#include <kusai/tokenizer/SimpleTokenizer.hpp>
#include <kusai/textchain/TextChain.hpp>
int main() {
const auto graph = std::make_shared<kusai::MemoryGraph>();
const auto markov = std::make_shared<kusai::SimpleMarkov>(graph);
const auto tokenizer = std::make_shared<kusai::SimpleTokenizer>();
const auto chain = std::make_shared<kusai::TextChain>(markov, tokenizer);
chain->train({
"wur a fox",
"fox the chorni"
});
std::cout << chain->generateText("wur") << std::endl;
chain->serializeToOstream(std::cout);
return 0;
}
Metadata
Release files for kusai 0.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kusai-0.13.0.tar.gz | 16.3 kB | Without provenance | Details for kusai-0.13.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kusai-0.13.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 | Details for kusai-0.13.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
Total release size: 290.2 kB
Release files / kusai-0.13.0.tar.gz
| Download URL | kusai-0.13.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e2861539470eed14098eeb1c7dc5e9c8ffc9b564a77ec3cfe5b078ad96feaf1
|
|
BLAKE2b-256 checksum How to use checksums |
dd1714f88b069d787cb6756447f55d155febccee032a90ca036e86c3d2b98f01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"AlmaLinux","version":"8.10","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / kusai-0.13.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | kusai-0.13.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 273.9 kB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
4885c0fda88be55b2f9438d3baa171e3f02ecbca35d12b1b74fda02f470b80ab
|
|
BLAKE2b-256 checksum How to use checksums |
929a906901221681ee2badc05b85f8269e42466c332a044e8d1250c24b53a3de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"AlmaLinux","version":"8.10","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for kusai 0.13.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.