$npx skillfedfor your agent

binpacking

Heuristic distribution of weighted items to bins (either a fixed number of bins or a fixed number of volume per bin). Data may be in form of list, dictionary, list of tuples or csv-file.

Worth itPyPI MathematicsReleased Jan 2026265.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — binpacking-2.0.1-py3-none-any.whl
v2.0.1 · released 2026-01-22 · Python >=3.10

Yes. The package solves a real, common problem with zero dependencies, low install friction, and a permissive license. The greedy algorithms are fast and adequate for most practical load-balancing and partitioning tasks. Maintenance is aging but the code is stable and the repository is not abandoned. Install it if you need to distribute weighted items across fixed bins or minimize bin count.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10+
  • Low friction: pure Python wheel with no required dependencies.
  • Maintenance status is aging—last release 204 days ago, but the repository is active and not archived.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.

last release 2026-01-22 (204 days) · last repo commit 2026-01-22 · 97 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 265,679 downloads/mo, #8,319 on PyPI

Verify before relying

pip install binpacking

import binpacking

b = {'a': 10, 'b': 10, 'c': 11, 'd': 1, 'e': 2, 'f': 7}
bins = binpacking.to_constant_bin_number(b, 4)
print(bins)
  • How well the greedy algorithms perform compared to optimal solutions on typical problem sizes.
  • Whether NumPy acceleration provides meaningful speedup for the datasets you plan to pack.
  • Real-world accuracy of the Least Loaded Fit Decreasing and Longest Processing Time heuristics for your domain.
Same gist for agents: .md · .json

What it is and what it does

binpacking solves two classic bin packing problems using greedy heuristics. The first distributes items into exactly N bins with approximately balanced total weight per bin (useful for load balancing across a fixed number of workers). The second distributes items into the minimum number of bins, each respecting a maximum capacity constraint (useful for minimizing resource allocations). The package accepts input as lists, dictionaries, lists of tuples, or CSV files, and includes both pure Python and optional NumPy-accelerated implementations.

The algorithms are Least Loaded Fit Decreasing for constant-volume packing and Longest Processing Time for constant-bin-number packing. Both sort items by weight descending before placement. This is a straightforward, dependency-free tool for scheduling, resource allocation, and partitioning problems where exact optimality is less critical than a fast, reasonable solution.

Use it for

  • Distribute jobs with known durations across a fixed number of CPU cores to minimize total runtime.
  • Group files of different sizes into memory allocations to minimize the number of program runs needed.
  • Pack items into containers or shipments with a maximum weight limit to minimize the number of containers.
  • Partition data into batches for parallel processing while keeping batch sizes roughly equal.
  • Schedule tasks across servers with fixed capacity to balance load.
  • Bin CSV rows by a weight column for resource planning or logistics optimization.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package solves a real, common problem with zero dependencies, low install friction, and a permissive license. The greedy algorithms are fast and adequate for most practical load-balancing and partitioning tasks. Maintenance is aging but the code is stable and the repository is not abandoned. Install it if you need to distribute weighted items across fixed bins or minimize bin count.

Install

binpacking on PyPI

Before you install

Low friction: pure Python wheel with no required dependencies. Maintenance status is aging—last release 204 days ago, but the repository is active and not archived.

Requires Python 3.10+

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.

Quickstart

pip install binpacking

import binpacking

b = {'a': 10, 'b': 10, 'c': 11, 'd': 1, 'e': 2, 'f': 7}
bins = binpacking.to_constant_bin_number(b, 4)
print(bins)

Verify before relying

  • How well the greedy algorithms perform compared to optimal solutions on typical problem sizes.
  • Whether NumPy acceleration provides meaningful speedup for the datasets you plan to pack.
  • Real-world accuracy of the Least Loaded Fit Decreasing and Longest Processing Time heuristics for your domain.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 204 days since the last release
Last repo commit
First released
Downloads265,679 / month, #8,319 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Evidence: binpacking-2.0.1-py3-none-any.whl

Tags

Capabilities
bin packing algorithmload balancing distributionpartition items into binsconstant volume packingjob scheduling to coresweight distributiongreedy bin allocation
Topics
schedulingresource-allocationheuristic

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “partition items into bins”

  • binpackingDistributes weighted items into bins using greedy algorithms, either…
  • prtpyImplements multiway number partitioning and bin packing algorithms…
  • py3dbpSolves the 3D bin packing problem by fitting items into bins while…

Give your agent the search over MCP, or paste the wish link into any chat.

More Mathematics packages

networkx Worth it
PyPI · Python Modules · released Dec 2025

NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.

BSD-3-Clausepure Python
290.9Mdownloads / mo
kiwisolver Worth it
PyPI · Mathematics · released Mar 2026

kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.

Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.

BSD-3-Clausecompiled wheel · 3.10+
205.5Mdownloads / mo
sympy Worth it
PyPI · Scientific/Engineering · released Apr 2025

SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.

BSD-3-Clausepure Python · 3.9+
196.4Mdownloads / mo
contourpy Worth it
PyPI · Information Analysis · released Jul 2025

ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.

BSD-3-Clausecompiled wheel · 3.11+
191.2Mdownloads / mo
torch With conditions
PyPI · Software Development · released Jul 2026

PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.

Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MITcompiled wheel · 3.10+
102.5Mdownloads / mo
onnxruntime Worth it
PyPI · Software Development · released Jul 2026

onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.

Install it if you have ONNX models to run in production or development.

MITcompiled wheel · 3.11+
89.3Mdownloads / mo

See also prtpy · py3dbp · roundrobin · rectpack · rectangle-packer · comfy-aimdo · optbinning · scs4onnx · circular-dict · omnimalloc