Skip to main content

neuralib-utils

Core utilities and foundational tools for the neuralib ecosystem, providing I/O operations, data manipulation, type definitions, visualization helpers, and common infrastructure for neuroscience research workflows.

Overview

neuralib-utils is the foundational package for neuralib, providing essential utilities that other neuralib packages depend on. It includes:

  • File I/O: Efficient HDF5 lazy loading, JSON/CSV handling, dataset management
  • Type System: Unified type aliases supporting both pandas and polars DataFrames
  • Utilities: Logging, colored output, DataFrame operations, GPU monitoring, profiling
  • Plotting: Publication-quality plotting tools (PSTH, Venn diagrams, colormaps)
  • Dashboard: Bokeh-based web UI framework for interactive data visualization
  • Image Utilities: Array manipulation, labeling, color management, normalization
  • External Tools: Google Sheets and Slack integrations

This package serves as the core dependency for all other neuralib packages (neuralib-atlas, neuralib-imaging, etc.).

Installation

From PyPI

pip install neuralib-utils

With Optional Dependencies

# Dashboard support (Bokeh)
pip install neuralib-utils[dashboard]

# Plotting support (matplotlib, seaborn)
pip install neuralib-utils[plot]

# Optional tools (Google Sheets, Slack, GPU monitoring)
pip install neuralib-utils[opt]

# All features
pip install neuralib-utils[all]

From Source (uv recommended)

git clone https://github.com/ytsimon2004/neuralib2.git
cd neuralib2/packages/neuralib-utils
uv pip install -e .        # Basic installation
uv pip install -e ".[all]" # With all features

Requirements

  • Python 3.11 or 3.12
  • Core dependencies: numpy, scipy, pandas, polars, h5py, rich, tqdm
  • See pyproject.toml for full dependency list

Documentation

Related Packages

neuralib-utils is the foundation for the neuralib ecosystem:

  • neuralib-atlas: Brain atlas tools and hierarchical representations of mouse brain anatomy
  • neuralib-imaging: Cellular imaging and widefield imaging tools
  • neuralib-parser: Data parsers for segmentation, morphology, Suite2p, Scanbox, CZI, StarDist
  • neuralib-metric: Analysis metrics and computational tools

License

BSD 3-Clause License. See LICENSE file for details.

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request with clear description

For bug reports and feature requests, use the GitHub issue tracker.

Metadata

Release files for neuralib-utils 0.7.3

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

Source distribution (sdist)

Source distribution for neuralib-utils 0.7.3
File Size Uploaded Provenance Actions
neuralib_utils-0.7.3.tar.gz 87.0 kB Without provenance Details for neuralib_utils-0.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neuralib-utils 0.7.3
File Interpreter ABI Platform Actions
neuralib_utils-0.7.3-py3-none-any.whl Python 3 none any Details for neuralib_utils-0.7.3-py3-none-any.whl

Total release size: 191.8 kB

Release files / neuralib_utils-0.7.3.tar.gz

Download URL neuralib_utils-0.7.3.tar.gz
Size 87.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ad07fa774e9f162e292b5c750f6ed3e387aa8575beec9cfd518bb92b882fa981
BLAKE2b-256 checksum
How to use checksums
988f7fdc33215ee2ff5823ee4efabac8c8432e8b60108516dc9d566435c89458
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / neuralib_utils-0.7.3-py3-none-any.whl

Download URL neuralib_utils-0.7.3-py3-none-any.whl
Size 104.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc304518298daf440a7174552976cb2a562f6c5af44b231fe2ad6d20afee0935
BLAKE2b-256 checksum
How to use checksums
512a0a2cad0850339398e6d38aea54ef11ecd84409a629264c516d6a97bfd6c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for neuralib-utils 0.7.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.

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