pyglove
PyGlove: A library for manipulating Python objects.
Decision gist · record as of 2026-08-14
Yes. PyGlove is production-stable, actively maintained, has minimal dependencies, carries a permissive license, and solves a real problem in AutoML and meta-programming. Install it if you need to search over program variants, explore hyperparameters systematically, or build flexible ML code that evolves. The only caveat is verifying Python version support beyond 3.9.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with only two runtime dependencies (docstring-parser and termcolor).
- Actively maintained with recent commits and production-stable status.
License · maintenance · safety
Apache License 2.0 (permissive) — Apache License 2.0 (permissive): you can use, modify, and distribute PyGlove freely in commercial and private projects, provided you include the license notice.
last release 2025-07-15 (395 days) · last repo commit 2026-07-20 · 719 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 387,883 downloads/mo, #7,040 on PyPI
Alternatives
Verify before relying
pip install pyglove
import pyglove as pg
@pg.symbolize
class Hello:
def __init__(self, subject):
self._greeting = f'Hello, {subject}!'
hello = Hello('World')
hello.rebind(subject='PyGlove')- Whether the package works with Python versions beyond 3.9 (classifiers list 3.9 but requires_python is unspecified)
- Performance characteristics when manipulating very large object graphs or search spaces
What it is and what it does
PyGlove is a library for manipulating Python objects through symbolic programming. It introduces a mutable symbolic object model that lets you define classes with rebindable attributes, iterate over multiple configurations of an object, and search through program variants—all without rewriting the underlying code. This makes it particularly useful for AutoML, evolutionary computing, and any scenario where you need to explore variations of a Python program systematically.
The library is lightweight, depending only on docstring-parser and termcolor. It's been used at scale within Alphabet (Google Research, Google Cloud, YouTube, Waymo) and published at NeurIPS 2020. It provides search primitives, a library of search algorithms, and an API to plug into distributed infrastructure like Open Source Vizier, making it suitable for both small exploratory tasks and large-scale hyperparameter or architecture searches.
Use it for
- Automated machine learning: define neural architectures as symbolic objects and search over design choices
- Evolutionary computing: iterate and mutate program variants to solve optimization problems like TSP
- ML team collaboration: share and evolve ML code by rebinding symbolic parameters across team members
- Hyperparameter exploration: systematically explore combinations of configuration values in existing Python code
- Domain-specific languages: build custom DSLs by composing symbolic objects with custom binding rules
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PyGlove is production-stable, actively maintained, has minimal dependencies, carries a permissive license, and solves a real problem in AutoML and meta-programming. Install it if you need to search over program variants, explore hyperparameters systematically, or build flexible ML code that evolves. The only caveat is verifying Python version support beyond 3.9.
Install
pyglove on PyPI
Before you install
Low friction: pure Python wheel with only two runtime dependencies (docstring-parser and termcolor). Actively maintained with recent commits and production-stable status.
License in practice
Apache License 2.0 (permissive): you can use, modify, and distribute PyGlove freely in commercial and private projects, provided you include the license notice.
Quickstart
pip install pyglove
import pyglove as pg
@pg.symbolize
class Hello:
def __init__(self, subject):
self._greeting = f'Hello, {subject}!'
hello = Hello('World')
hello.rebind(subject='PyGlove')
Verify before relying
- Whether the package works with Python versions beyond 3.9 (classifiers list 3.9 but requires_python is unspecified)
- Performance characteristics when manipulating very large object graphs or search spaces
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesdocstring-parsertermcolor |
| Maintenance | Actively maintained 395 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 387,883 / month, #7,040 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Human Machine InterfacesTopic :: Software Development :: Code GeneratorsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pyglove-0.4.5-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 › “symbolic object manipulation python”
- pyglovePyGlove provides symbolic object-oriented programming for Python,…
- symenginePython wrappers for SymEngine, a fast C++ symbolic manipulation…
- sympySymPy is a Python library for symbolic mathematics, performing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also autogluon · autogluon.core · autogluon.multimodal · autogluon.tabular · autogluon.timeseries · autogluon.vision · autogluon.text · autogluon.features · pysr