flylight
Agent-friendly local index for Janelia FlyLight Split-GAL4 and GAL4/LexA resources.
Surfaces used:
- CGI site: splitgal4.janelia.org
- GAL4/LexA CGI site: flweb.janelia.org
- Public bucket: janelia-flylight-imagery
- Bucket docs: README.md
Source order:
- release manifest json
- per-line/per-image S3 metadata json
- CGI release summary html
- GAL4/LexA line catalog + per-line imagery html
CLI
PyPI with pipx:
pipx install flylight
PyPI with plain pip:
python3 -m pip install flylight
Homebrew:
brew tap gumadeiras/tap
brew install flylight
flylight --version
From source:
python3 -m pip install -e .
Release
Current releases: GitHub and PyPI.
Tag pushes like vX.Y.Z run the release workflow: build artifacts, create a
GitHub release, publish to PyPI, and update gumadeiras/homebrew-tap.
Release prerequisites:
- PyPI trusted publishing configured for this repo.
HOMEBREW_TAP_TOKENrepository secret can write togumadeiras/homebrew-tap.
Entry:
flylight --help
python3 janelia_splitgal4.py
Common commands:
flylight update --all
flylight sources --json
flylight find DNp04
flylight images MB005B
flylight line SS00724
flylight image 6878306
flylight release 'MB Paper 2014'
flylight examples --topic quick-start
Examples:
flylight update --all
flylight sources --json
flylight find R10A --source-kind flew-html
flylight images R10A01 --source-kind flew-html
flylight releases --json
flylight sync --release 'MB Paper 2014'
flylight sync --all
flylight sync --release 'FlyLight GAL4/LexA Collection'
flylight sync --all --force
flylight sync --all --offline
flylight sync --all --refresh-cache
flylight sync --release 'Descending Neurons 2018' --workers 8
flylight sync-plan --all
flylight sync-plan --release 'MB Paper 2014' --offline
flylight reindex --json
flylight cache-info --json
flylight schema --entity line
flylight examples --topic release-diff
flylight snapshot-export --out data/flylight-snapshot.tar.gz
flylight snapshot-import data/flylight-snapshot.tar.gz --force
flylight search --expressed-in DNp04 --ad 31B08 --source-kind line-metadata
flylight search --em-cell-type EPG
flylight search --source-kind flew-html --line R10A
flylight search-text 'DNp04 AND 31B08'
flylight search-images --area Brain --objective 20x --robot-id 3007645
flylight search-images --em-cell-type EPG
flylight show-line SS00724 --release 'Descending Neurons 2018'
flylight show-image 6878306
flylight show-image 8268121 --release 'Rubin et al 2025'
flylight compare-line MB005B
flylight compare-release 'MB Paper 2014' 'MB Paper 2015'
flylight show-release 'MB Paper 2014' --include-lines --genotype 34A03
flylight stats --json
flylight export-ndjson --entity line --release 'Descending Neurons 2018'
flylight export-ndjson --entity image --term MB005B --out data/mb005b.ndjson
flylight export-ndjson --entity release
flylight export-ndjson --entity compare-line --line MB005B
flylight export-ndjson --entity compare-release --left-release 'MB Paper 2014' --right-release 'MB Paper 2015'
Notes
- HTTP fetches are cache-first by default; cached responses are reused until you pass
--refresh-cache. --offlinedisables network access and uses cached HTTP responses only.- cache path: OS cache directory, e.g.
~/Library/Caches/flylighton macOS,$XDG_CACHE_HOME/flylightor~/.cache/flylighton Linux, and%LOCALAPPDATA%\flylight\Cacheon Windows - db/raw data path: OS data directory, e.g.
~/Library/Application Support/flylighton macOS,$XDG_DATA_HOME/flylightor~/.local/share/flylighton Linux, and%LOCALAPPDATA%\flylighton Windows - bare
flylightprints the main help menu; bare subcommands print command-specific help. updateis the simple all-source sync shortcut and requires explicit--all.syncandupdatereport planning, skip, and sync progress to stderr; JSON output stays on stdout.sync-planis a dry-run: source kind, cache coverage, db coverage, skip vs sync decision.reindexrebuilds derived searchable fields from stored raw image payloads; use it after schema upgrades on an existing db.snapshot-exportbundles sqlite + raw manifests + HTTP cache for portable offline reuse.snapshot-importrestores that bundle on another machine or working copy.schemashows agent-facing row shapes and producer commands.examplesshows canned command recipes for common agent workflows.sync --allis incremental by default; unchanged releases skip.cache-infoalso reports cache suffix counts and oldest/newest cached timestamps.- missing release manifest: fallback walks line dirs + metadata jsons.
- CGI summary enriches line-level fields like expressed-in, genotype, AD, DBD.
- the GAL4/LexA catalog syncs as
FlyLight GAL4/LexA Collectionwithsource_kind=flew-html; it indexes line names fromflew.cgiplus per-line imagery metadata fromview_flew_imagery.cgi. - GAL4/LexA incremental sync tokens include the catalog and cached per-line imagery pages; missing page cache forces a conservative resync.
- line/image exports include normalized arrays alongside text fields.
- Image records are keyed by
(release, image_id): the same image can appear in multiple releases with different metadata and asset URLs. Export consumers must use both fields as the key. imageandshow-imageaccept--release. Without it, an ID with several release records reports the matching releases and requires a selection; an ID with one match keeps the existing single-record output.- Existing databases migrate automatically when opened, preserving stored release records. A failed migration rolls back the image table changes.
- All programs that write to a migrated database must support
(release, image_id)keys. Released versions through 0.12.7 do not; their ID-only updates can overwrite another release's metadata. To downgrade, restore a snapshot saved before migration. - Image totals count records across releases, not distinct image IDs.
- line/image records now include normalized
em_cell_typesderived from rawem_cell_typemetadata when present. searchsupports field filters over line metadata: AD, DBD, genotype, expressed-in, robot-id, source-kind.searchandsearch-imagesalso support exact--em-cell-typematching.search-textuses SQLite FTS for faster boolean/full-text matching over line text fields.search-imagessupports field filters over image metadata: area, objective, gender, robot-id, roi.compare-lineshows shared fields for the same line across synced releases.compare-releasesummarizes added, removed, changed, and unchanged lines between two synced releases.export-ndjsonalso supportscompare-lineandcompare-releaseentities for agent ingest.- local db file:
janelia_splitgal4.sqliteunder the OS data directory - raw manifest cache:
raw_manifests/*.jsonunder the OS data directory
Metadata
Release files for flylight 0.12.8
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 |
|---|---|---|---|---|
| flylight-0.12.8.tar.gz | 43.9 kB | With provenance | Details for flylight-0.12.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flylight-0.12.8-py3-none-any.whl | Python 3 | none | any | Details for flylight-0.12.8-py3-none-any.whl |
Total release size: 81.0 kB
Release files / flylight-0.12.8.tar.gz
| Download URL | flylight-0.12.8.tar.gz |
|---|---|
| Size | 43.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
186841ed1d461b67d991e7c03b9f3ce74b28919fb7df67f261f926120835cebd
|
|
BLAKE2b-256 checksum How to use checksums |
a3889331d770c75724834c7171abb9c3c93e49cb4e10b405fac489bef62a24de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 2, 2026.
Transparency logRelease files / flylight-0.12.8-py3-none-any.whl
| Download URL | flylight-0.12.8-py3-none-any.whl |
|---|---|
| Size | 37.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dee516e2387185a2306248899bc17cbb56fcfd682e64e7943069870e3f9dc47
|
|
BLAKE2b-256 checksum How to use checksums |
26779b16997003e52f8810c9ffcde6e8038c0ef12079f0aaa810447426930e3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 2, 2026.
Transparency logSecurity for flylight 0.12.8
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 flylight-0.12.8.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 Oct 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.