spikuit-core
Core engine + lightweight RAG client for Spikuit — a knowledge base that gets smarter the more you use it.
⚠️ Pre-1.0 / under active development. Expect frequent breaking changes until v1.0.0.
spikuit-core ships in two profiles:
| Install | Pulls in | Use case |
|---|---|---|
pip install spikuit-core |
httpx, numpy |
Read-only RAG client over an exported brain.db bundle |
pip install spikuit-core[engine] |
+ fsrs, networkx, aiosqlite, sqlite-vec, msgspec |
Full Brain engine: FSRS scheduling, knowledge graph, spreading activation, STDP |
The minimal install is what you deploy to a server — the heavy engine deps stay on the authoring machine.
Quick start (RAG client)
Author a brain locally with the full engine (or via the spkt CLI from
spikuit-cli), export it once,
then retrieve from anywhere with just spikuit-core:
import asyncio
import os
from spikuit_core import QABot
os.environ["SPIKUIT_EMBEDDER_BASE_URL"] = "http://localhost:1234/v1"
brain = QABot.load("brain.db")
async def main() -> None:
hits = await brain.retrieve("What is a monad?", limit=5, domain="math")
for h in hits:
print(f"{h.score:.3f} {h.content[:80]}")
asyncio.run(main())
QABot.load resolves the embedder endpoint in this order:
SPIKUIT_EMBEDDER_BASE_URL/SPIKUIT_EMBEDDER_API_KEYenv varsbase_url=/api_key=keyword arguments- The hint stored in the bundle
If the bundle was exported with provider="none", QABot runs in keyword-only mode and never calls an embedding API.
Quick start (full engine)
import asyncio
from spikuit_core import Circuit, Neuron
async def main() -> None:
c = Circuit(db_path="brain.db")
await c.connect()
await c.add_neuron(
Neuron.create("---\ntype: concept\ndomain: math\n---\n# Monad\n\n型の文脈化を表す抽象")
)
await c.close()
asyncio.run(main())
Engine symbols (Circuit, Neuron, Session, etc.) are loaded lazily via
PEP 562 __getattr__ — importing them without the [engine] extras raises
a friendly ImportError pointing at the install command.
Links
- Documentation: https://takyone.github.io/spikuit/
- RAG quickstart: https://takyone.github.io/spikuit/rag/quickstart/
- Source: https://github.com/takyone/spikuit
- Issues: https://github.com/takyone/spikuit/issues
License
Apache-2.0
Metadata
Release files for spikuit-core 0.9.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 |
|---|---|---|---|---|
| spikuit_core-0.9.0.tar.gz | 91.1 kB | With provenance | Details for spikuit_core-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spikuit_core-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for spikuit_core-0.9.0-py3-none-any.whl |
Total release size: 155.3 kB
Release files / spikuit_core-0.9.0.tar.gz
| Download URL | spikuit_core-0.9.0.tar.gz |
|---|---|
| Size | 91.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d5760614299eb6c9c05d45ef10161f4a7a82cddcbc7a7cde64a6b8c706ce376
|
|
BLAKE2b-256 checksum How to use checksums |
758abb628d323f22b01046217c5aa1679f0b0485203588e31d7f228ca039c152
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.
Transparency logRelease files / spikuit_core-0.9.0-py3-none-any.whl
| Download URL | spikuit_core-0.9.0-py3-none-any.whl |
|---|---|
| Size | 64.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ad95fa60887c3c17e074a9046acca703af7f6e15b0cbb1fd48248317fc5dd0b
|
|
BLAKE2b-256 checksum How to use checksums |
349714ab0c6c669e8b17c5fa5d15ccbbe4b560674758bc67e5fa61e3459dc559
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.
Transparency logSecurity for spikuit-core 0.9.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for spikuit_core-0.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.
Transparency logA 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.