FlashQDA
FlashQDA is a Python package for LLM-powered qualitative data analysis (QDA). It provides a structured, resumable pipeline of functions that take a corpus of text documents and progressively classify, label, extract, group, and link the concepts within them. It is designed for academic researchers, policy analysts, and social scientists working with interview transcripts, policy documents, or published literature.
Installation
pip install flashqda
Optional dependency groups:
pip install "flashqda[grouping]" # semantic grouping (group_items)
pip install "flashqda[preprocessing]" # PDF and DOCX support
pip install "flashqda[anthropic]" # Anthropic Claude provider
What it does
| Step | Function | Purpose |
|---|---|---|
| 1 | preprocess_documents |
Segment .txt/.pdf/.docx files into sentences or paragraphs |
| 2 | classify_items |
LLM binary/multiclass classification (e.g. causal / non-causal) |
| 3 | label_items |
Apply user-defined filter tags at any stage |
| 4 | extract_from_classified |
Structured extraction of relationships (e.g. cause/effect pairs) |
| 5 | refine_extracted |
LLM validation and correction of extracted pairs |
| 6 | explode_extractions |
Normalize from one row per source to one row per extracted item |
| 7 | embed_items |
Generate and cache vector embeddings |
| 8 | group_items |
AHC semantic clustering with LLM-generated category labels |
| 9 | link_items |
Cosine-similarity linking of semantically related items |
Built-in pipeline presets: "causal", "thematic", "tradeoff", "synergy".
Quick example
import flashqda
# Set up project
flashqda.initialize_project("/path/to/my_project")
project = flashqda.ProjectContext("/path/to/my_project")
config = flashqda.PipelineConfig.from_type("causal")
# Run the pipeline
flashqda.preprocess_documents(project=project, granularity="sentence")
classified = flashqda.classify_items(
project=project, config=config,
input_file=project.data / "sentence.csv"
)
extracted = flashqda.extract_from_classified(
project=project, config=config, input_file=classified
)
exploded = flashqda.explode_extractions(project=project, config=config, input_file=extracted)
embedding_file = flashqda.embed_items(project=project, config=config, input_file=exploded)
flashqda.link_items(project=project, config=config,
input_file=exploded, embedding_file=embedding_file)
Supported providers
LLM: openai (default), anthropic, ollama (local), openai_compatible
Embeddings: openai, sentence_transformers, openai_compatible
Sensitive-data workflows are fully supported via local Ollama models — no API key required.
Documentation
Full walkthrough with all functions and examples: docs/QUICK_START.md
API reference: help(flashqda.classify_items) (all public functions have docstrings)
Citation
If you use FlashQDA in your research, please cite:
Kearney, N. (2026). flashQDA (v1.2.3). https://github.com/nmkearney/flashqda
Links
Metadata
Release files for flashqda 1.2.3
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 |
|---|---|---|---|---|
| flashqda-1.2.3.tar.gz | 60.1 kB | Without provenance | Details for flashqda-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flashqda-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for flashqda-1.2.3-py3-none-any.whl |
Total release size: 129.1 kB
Release files / flashqda-1.2.3.tar.gz
| Download URL | flashqda-1.2.3.tar.gz |
|---|---|
| Size | 60.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
671512f623104196458729008e79a86dd1953c964d4cb86a81ac903e119bb3d9
|
|
BLAKE2b-256 checksum How to use checksums |
dd49799787d19f159126880ed47a135f492777b67a2987676b92256a94050d0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / flashqda-1.2.3-py3-none-any.whl
| Download URL | flashqda-1.2.3-py3-none-any.whl |
|---|---|
| Size | 69.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6a923d66a3bee50aaf80d488654730f6f2da5e29b2ea9bb300aea830995160f
|
|
BLAKE2b-256 checksum How to use checksums |
a1d4a1044af8e552e6c0f5350ae3395957c6240b4f43e25f614bceb29006cb1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for flashqda 1.2.3
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.