Skip to main content
Nodivium DNA and connected records mark

🧬 Nodivium

Explore, visualize, and export NCBI · UniProt · PDB records

Tests Python License Platform

Install the release

Use Python 3.10 or newer. The wheel includes the web assets, so Node.js is not needed for a normal install.

python -m venv .venv
# Linux: source .venv/bin/activate
# Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install "nodivium[web]"
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. Install nodivium without [web] for the CLI alone. Set NODIVIUM_NCBI_EMAIL to your real contact address before requesting NCBI records, as shown below.

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 ".[web]"
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 python -m pip install "nodivium[web]" python -m pip install nodivium

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

The CLI dependencies install with pip or uv; the web workspace adds FastAPI, Uvicorn, and bundled browser assets.


🧪 Tests

git clone https://github.com/Eswar-mse/Nodivium.git nodivium
cd nodivium
pip install -e .
python tests.py

34 tests, fully mocked — no network required to run the suite.


📄 License

MIT © Eswar-mse


Metadata

Release files for nodivium 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nodivium 2.0.0
File Size Uploaded Provenance Actions
nodivium-2.0.0.tar.gz 2.1 MB With provenance Details for nodivium-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nodivium 2.0.0
File Interpreter ABI Platform Actions
nodivium-2.0.0-py3-none-any.whl Python 3 none any Details for nodivium-2.0.0-py3-none-any.whl

Total release size: 4.2 MB

Release files / nodivium-2.0.0.tar.gz

Download URL nodivium-2.0.0.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
81cce7671ae18016636c6a5d0df9c6f3d97a7c29a6b7941ddbd5bbf932516d0c
BLAKE2b-256 checksum
How to use checksums
caaa4761765a58d0d71b2928991ae4beb7f8d2118d8bd00018867dc0cd41247f
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 log

Release files / nodivium-2.0.0-py3-none-any.whl

Download URL nodivium-2.0.0-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d198d5bdf357a49c6dbba8ee4fe1888faaedebc335e3f4d6a346d10dd4db9688
BLAKE2b-256 checksum
How to use checksums
e674d4bc97c341faa7e3acc30a5d28d17986802ee9013e5c3d3339bd877a1932
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 log

Security for nodivium 2.0.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nodivium-2.0.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 Nov 16, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page