New here? Read the complete Nodivium user guide for installation on Linux and Windows, web and CLI workflows, supported formats, troubleshooting, and issue reporting.
Install the release
For a command you can run from any directory, install Nodivium with uv or pipx. Both give the app its own Python environment. The wheel includes the web assets, so Node.js is not needed for a normal install.
uv tool install nodivium
nodivium web
Alternatively, run pipx install nodivium. A normal install includes both the web workspace and CLI; the older nodivium[web] syntax also works. If uv says the executable directory is not on PATH, run uv tool update-shell, restart your terminal, and try nodivium version.
If you need Nodivium as an importable Python library in a project, create and activate a virtual environment first:
python -m venv .venv
# Linux: source .venv/bin/activate
# Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install nodivium
nodivium web
nodivium web opens http://127.0.0.1:8765 in your browser when the server is ready. If you are using SSH or a machine without a browser, run nodivium web --no-browser and open the printed URL yourself. Set NODIVIUM_NCBI_EMAIL to your real contact address before requesting NCBI records, as shown below. On Linux distributions that mark system Python as externally managed, bare pip install nodivium fails by design; use uv, pipx, or the activated virtual environment above.
Try the web workspace from source
From a source checkout, use Python 3.10+, Node.js, and npm for the one-time browser asset build.
python -m venv .venv
# Linux: source .venv/bin/activate
# Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install -e .
cd web
npm ci
npm run build
cd ..
nodivium web
The command opens http://127.0.0.1:8765 automatically. Search UniProt, NCBI, or RCSB PDB; inspect records, sequences, structures, and source-backed UniProt cross-references; add records to a ZIP collection with a manifest that includes per-file SHA-256 checksums and retrieval failures. Local FASTA, PDB, and mmCIF files are read in the browser and are not uploaded to Nodivium. Multi-record FASTA files have a sequence picker and a nucleotide/protein interpretation control. The web service listens on the local computer only.
For NCBI access, set a real contact address before starting Nodivium. NCBI's usage policy requires an identifiable tool contact. An optional NCBI API key can be provided for higher rate limits:
# Linux
export NODIVIUM_NCBI_EMAIL="you@example.org"
export NODIVIUM_NCBI_API_KEY="your-key" # optional
# Windows PowerShell
$env:NODIVIUM_NCBI_EMAIL="you@example.org"
$env:NODIVIUM_NCBI_API_KEY="your-key" # optional
These values are read from the environment; do not commit your API key to the repository. The initial web workspace limits a collection to 25 records and 20 MB of retrieved text. Public hosting needs additional shared rate limiting and performance checks before deployment. The complete upgrade contract and remaining work are in docs/WEB_UPGRADE.md.
The release scope and required checks are in docs/RELEASE.md. An installed release wheel includes the browser assets; Node.js is only needed when rebuilding those assets from source.
For a clean install, provider, browser, CLI, collection, and Windows/Linux acceptance pass, follow the Nodivium test runbook.
Existing NCBI environment settings remain supported as fallbacks. Nodivium migrates the previous cache directory when possible and reads existing browser theme, viewer, and collection preferences. Use the NODIVIUM_ variables for new setups. The GitHub repository is now named Nodivium.
Choose web or CLI
| Local web workspace | Command line | |
|---|---|---|
| Best for | Exploring unfamiliar records, viewing sequences and 3D structures, comparing source details, and assembling a small mixed-source collection. | Repeated downloads, shell scripts, remote/SSH sessions, and saving many records to a chosen folder. |
| Strengths | Search cards, source-aware record views, dark/light theme, resizable inspector, local file inspection, interactive structure colors, representations and visibility, and ZIP export with a provenance manifest. | Fast repeat access through the local cache, clear text output, NCBI FASTA batch retrieval, and automation-friendly commands. |
| Tradeoffs | Needs a browser, local web dependencies, and WebGL for 3D viewing; collections currently have a 25-record/20 MB limit and discovery shows up to 50 results. | No interactive 3D viewer or browser charts; users choose IDs, formats, and output paths through command options. |
| Install | uv tool install nodivium |
Same install; use nodivium for the CLI |
Both modes use the same NCBI, UniProt, and RCSB PDB providers and share the local cache. Start the web workspace with nodivium web; type nodivium for the CLI command guide.
Nodivium is a cross-platform research workspace for NCBI, UniProt, and RCSB PDB records, with a browser interface and CLI. Search, inspect, visualize, connect, and export biological records by accession ID; a local cache speeds up repeat access.
No conda required. A virtual environment is recommended when testing this source checkout.
✨ Features
| Feature | Description | |
|---|---|---|
| 🔍 | Search | Query NCBI, UniProt, and PDB with ranked results |
| ⬇️ | Fetch | Download sequences and structures by accession ID |
| 📋 | Info | Rich metadata panels — no full download needed |
| 📦 | Batch | Bulk fetch hundreds of records with progress bar |
| ⚡ | Cache | 7-day local disk cache — instant repeat lookups |
| 🎨 | Rich UI | Beautiful terminal tables, spinners, and panels |
| 🔄 | Formats | FASTA · GenBank · JSON · XML · PDB · mmCIF · TSV |
| 🌍 | Cross-platform | Windows and Linux — Python package with bundled web assets |
🚀 Quick Start
# Fetch a protein sequence from UniProt
nodivium fetch P68871 --source uniprot
# Fetch with full metadata panel
nodivium fetch P68871 --source uniprot --info
# Download a PDB structure file
nodivium fetch 1HHO --source pdb --format pdb --output 1HHO.pdb
# Fetch a gene from NCBI
nodivium fetch NM_007294 --source ncbi --db nucleotide
# Search UniProt (Swiss-Prot reviewed only)
nodivium search "hemoglobin" --source uniprot --reviewed --limit 5
# Search PDB for insulin structures
nodivium search "insulin" --source pdb --limit 5
# Search NCBI
nodivium search "BRCA1 human mRNA" --source ncbi --db nucleotide --limit 8
# Batch fetch and save to folder
nodivium batch P68871 P69905 P68873 --source uniprot --outdir ./sequences
# Cache management
nodivium cache stats
nodivium cache list
nodivium cache clear
📖 Commands
| Command | Description |
|---|---|
nodivium fetch <ID> |
Fetch a single record by accession |
nodivium search <query> |
Search a database |
nodivium info <ID> |
Rich metadata summary |
nodivium batch <IDs...> |
Bulk fetch and save |
nodivium cache stats |
Cache size and entry count |
nodivium cache list |
List all cached keys |
nodivium cache clear |
Wipe the cache |
nodivium cache delete <ID> |
Remove one cached entry |
nodivium version |
Print version |
⚙️ Fetch Options
| Flag | Description |
|---|---|
--source / -s |
ncbi, uniprot, or pdb |
--format / -f |
fasta, genbank, json, xml, pdb, cif, tsv |
--db |
NCBI database: nucleotide, protein, gene, pubmed |
--output / -o |
Save to file |
--info / -i |
Show metadata panel |
--no-preview |
Skip terminal preview |
--no-cache |
Force fresh API call |
💾 Cache
Results are cached locally for 7 days:
- Linux/Mac:
~/.cache/nodivium/ - Windows:
%LOCALAPPDATA%\nodivium\
nodivium cache stats # see how much is cached
nodivium cache clear # wipe everything
📦 Dependencies
| Package | Purpose |
|---|---|
biopython |
NCBI Entrez, sequence parsing |
requests |
UniProt & PDB REST APIs |
diskcache |
Local disk-based caching |
rich |
Terminal formatting & tables |
typer |
CLI framework |
FastAPI, Uvicorn, and the bundled browser assets are included with a normal Nodivium installation.
🧪 Tests
git clone https://github.com/Eswar-mse/Nodivium.git nodivium
cd nodivium
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[test]'
python tests.py
python -m pytest -q tests_upgrade.py
The 34 legacy checks and focused upgrade checks use mocked provider requests; no network is required to run them. On Windows, use py -m venv .venv and .\.venv\Scripts\Activate.ps1 in place of the Linux virtual-environment commands above.
📄 License
MIT © Eswar-mse
Cite Nodivium
If you use Nodivium in research, cite the archived 2.0.0 release: Moparti, Sri Venkata Satya Sai Eswar. Nodivium 2.0.0: Biological Record Exploration and Visualization. Zenodo. DOI: 10.5281/zenodo.24271314. GitHub's Cite this repository menu uses CITATION.cff, which also records the author's ORCID.
Built with 🧬 by Sri Venkata Satya Sai Eswar Moparti
Metadata
Release files for nodivium 2.0.1
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 |
|---|---|---|---|---|
| nodivium-2.0.1.tar.gz | 2.1 MB | With provenance | Details for nodivium-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nodivium-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for nodivium-2.0.1-py3-none-any.whl |
Total release size: 4.2 MB
Release files / nodivium-2.0.1.tar.gz
| Download URL | nodivium-2.0.1.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5ff0c0392f723baaa5cce52639dffd3a7903b4e76f9a31577577961881f13b7
|
|
BLAKE2b-256 checksum How to use checksums |
bd808c59928da4e9a6413bfb6a91b62c9442a073e4d29ca7b7fb218ef83890f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logRelease files / nodivium-2.0.1-py3-none-any.whl
| Download URL | nodivium-2.0.1-py3-none-any.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2d2797da72a53f12cc4feec55dd8d67d8b1f0689b7a61da084f98808dea46fe
|
|
BLAKE2b-256 checksum How to use checksums |
9616a72e07fbbfc7131959d17e78b9620b41218fd08b00c20472bdd618e22970
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logSecurity for nodivium 2.0.1
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
Both files in this release have been uploaded with provenance metadata.
Attestation for nodivium-2.0.1.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 Nov 16, 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.