cobble
Create data objects
Decision gist · record as of 2026-08-14
Yes, if you need a lightweight visitor pattern implementation or prefer decorator-based data class generation over Python 3.7+ dataclasses. The zero-dependency install and broad Python version support make it low-risk. However, if you are on Python 3.7+ and do not need the visitor pattern, the standard library's dataclasses module or attrs may be more actively maintained alternatives. The dormant maintenance status is not a blocker for stable code, but verify that the feature set meets your needs before adopting.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is frictionless with no runtime dependencies.
- The package is dormant (last release 2024-06-01, 804 days ago) but the repository remains active and unarchived, suggesting stable maintenance rather than abandonment.
License · maintenance · safety
permissive license (permissive) — Cobble is licensed under the 2-Clause BSD license, a permissive open-source license that allows commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.
last release 2024-06-01 (804 days) · last repo commit 2024-06-01 · 6 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 15,618,177 downloads/mo, #1,178 on PyPI
Alternatives
Verify before relying
pip install cobble
import cobble
@cobble.data
class Song(object):
name = cobble.field()
artist = cobble.field()
album = cobble.field(default=None)
song = Song("MFEO", artist="Jack's Mannequin")
print(song)- Whether cobble's visitor pattern implementation offers advantages over Python's built-in approaches or other visitor libraries
- Performance characteristics compared to dataclasses (standard library in Python 3.7+) or attrs
- Active maintenance status given dormancy classification despite recent repository activity
What it is and what it does
Cobble is a decorator-based library for defining data classes with minimal boilerplate. It provides the `@cobble.data` decorator to automatically generate `__eq__`, `__repr__`, and other common methods for classes, along with a `cobble.field()` mechanism for declaring attributes with optional defaults. The library also includes a visitor pattern implementation via `@cobble.visitor` and `@cobble.visitable` decorators, allowing you to traverse and process hierarchies of related objects—useful for building interpreters, AST walkers, or other tree-based algorithms.
The package has no runtime dependencies and supports Python 3.5 through 3.12. It occupies a niche between manual class definition and more comprehensive solutions like the standard library's dataclasses module or third-party libraries like attrs. The dormant maintenance status (last release in June 2024, repository unarchived) suggests the library is stable but not actively developed.
Use it for
- Define immutable or semi-immutable data structures with automatic equality and string representation without writing boilerplate methods.
- Build expression trees or abstract syntax trees where you need to traverse nodes using the visitor pattern.
- Create domain objects in a domain-driven design context where you want minimal ceremony and automatic serialization-friendly representations.
- Implement interpreters or evaluators that walk object hierarchies using the visitor pattern to dispatch behavior.
- Prototype data models quickly without committing to a heavier framework or dataclass library.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a lightweight visitor pattern implementation or prefer decorator-based data class generation over Python 3.7+ dataclasses.
The zero-dependency install and broad Python version support make it low-risk. However, if you are on Python 3.7+ and do not need the visitor pattern, the standard library's dataclasses module or attrs may be more actively maintained alternatives. The dormant maintenance status is not a blocker for stable code, but verify that the feature set meets your needs before adopting.
Install
cobble on PyPI
Before you install
Installation is frictionless with no runtime dependencies. The package is dormant (last release 2024-06-01, 804 days ago) but the repository remains active and unarchived, suggesting stable maintenance rather than abandonment.
License in practice
Cobble is licensed under the 2-Clause BSD license, a permissive open-source license that allows commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.
Quickstart
pip install cobble
import cobble
@cobble.data
class Song(object):
name = cobble.field()
artist = cobble.field()
album = cobble.field(default=None)
song = Song("MFEO", artist="Jack's Mannequin")
print(song)
Verify before relying
- Whether cobble's visitor pattern implementation offers advantages over Python's built-in approaches or other visitor libraries
- Performance characteristics compared to dataclasses (standard library in Python 3.7+) or attrs
- Active maintenance status given dormancy classification despite recent repository activity
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 804 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 15,618,177 / month, #1,178 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: cobble-0.1.4-py3-none-any.whl
Tags
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 › “automatic __repr__ __eq__ implementation”
- cobbleCobble is a Python library for creating data classes with automatic…
- dataclassesProvides the PEP 557 dataclasses module for Python 3.6, enabling…
- attrsattrs is a Python library that automatically generates common class…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also visitor · mulpyplexer · fastlite · etuples · renew · fields · attrs · class-resolver · dataclasses · boolean.py