skillfed

esp-idf-nvs-partition-gen

ESP-IDF NVS partition generation tool

esp-idf-nvs-partition-gen v0.3.0 491.0K downloads/30d#6,366 on PyPI13
Permissive license Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) Active released

What it is and what it does

This package is a utility for generating binary NVS partition files compatible with ESP32 and ESP-IDF's Non-Volatile Storage architecture. It reads key-value pairs from a CSV file and outputs a binary blob that can be flashed directly onto ESP32 devices during manufacturing.

The primary use case is ODM/OEM manufacturing workflows where many device instances need the same firmware but different customized parameters—such as serial numbers or device-specific data. Rather than reflashing firmware for each device, manufacturers can generate a single firmware binary and flash device-specific NVS data separately, significantly speeding up production. The package depends on cryptography and esp-pylib for encryption and ESP platform utilities.

Use it for:

  • Generate device-specific NVS data blobs for mass manufacturing of ESP32 products with unique identifiers
  • Create customized configuration partitions for different device variants without rebuilding firmware
  • Automate production workflows that require flashing calibration or pairing data to each manufactured unit
  • Prepare NVS partition files for external flashing during device assembly or provisioning stages

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Generates binary NVS (Non-Volatile Storage) partition files from CSV key-value data for ESP32 devices, enabling manufacturers to flash customized device parameters during production.

Yes, if you are manufacturing ESP32 devices and need to flash device-specific parameters at production time. The package is actively maintained, has low install friction, carries a permissive Apache 2.0 license, and solves a concrete manufacturing workflow problem. Install it as part of your production toolchain if you use ESP-IDF and NVS storage.

Install

esp-idf-nvs-partition-gen on PyPI

pip

pip install esp-idf-nvs-partition-gen

uv

uv add esp-idf-nvs-partition-gen

poetry

poetry add esp-idf-nvs-partition-gen

Installing esp-idf-nvs-partition-gen

Before you install

Low friction install with active maintenance. Released within the last month and actively maintained. Depends on cryptography and esp-pylib.

License in practice

Apache License 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects provided you include the license and attribute changes.

Quickstart

pip install esp-idf-nvs-partition-gen

from esp_idf_nvs_partition_gen import generate

# Generate binary from CSV
generate(csv_file='config.csv', output_file='nvs.bin')

Requires Python 3.8 or later. The CSV input file must follow the NVS key-value format defined in the ESP-IDF documentation.

Verify before relying

  • Whether the package provides a command-line interface or is primarily a Python library
  • Specific CSV schema requirements and supported data types for NVS partitions
  • Maximum partition size limits or performance characteristics with large datasets
  • Exact API surface and available functions beyond the core generation capability

Package facts

License Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 2 — cryptography, esp-pylib
Maintenance actively maintained — 24 days since the last release
Last repo commit
First released
Downloads 491,018/month — #6,366 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: esp_idf_nvs_partition_gen-0.3.0-py3-none-any.whl

Keywords: espressif, esp-idf, nvs, nvs-partition-gen

Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Embedded Systems

Tags

esp32 nvs partition generatornvs binary blob creationesp-idf nvs tooldevice manufacturing customizationesp32 non-volatile storagenvs partition csv to binary
esp32manufacturingembedded-systems

More Embedded Systems packages