Coding

PyInfra 3.8.0 Is Out

The latest release of PyInfra, a Python-based infrastructure automation framework, introduces significant performance enhancements through improved parallelization of SSH connections and optimized task queue management, with notable speedups observed in large-scale deployments. Key updates include a revamped connection pooling system and enhanced support for Windows and macOS platforms. These changes position PyInfra 3.8.0 as a major player in the DevOps toolchain. AI-assisted, human-reviewed.

PyInfra 3.8.0, the latest release of the Python-based infrastructure automation framework, is now available. The update brings significant performance improvements through better parallelization of SSH connections and optimized task queue management, along with a revamped connection pooling system. The release also adds support for Windows and macOS platforms, and the project has switched to full semantic versioning (semver) starting with this 3.8.0 release.

Core improvements

The core API has been decoupled from Click by introducing pluggable output functions, making PyInfra more flexible for integration into different workflows. A notable security fix addresses command injection by expanding quoting of user inputs across connectors, operations, and utility functions. The FunctionCommand now supports timeouts, and a new config.INHERIT_ENV option allows passing local process environment variables to all operations.

New facts and operations

This release adds a substantial number of new facts and operations:

  • Facts: Ports (listening ports), AuthorizedKeys, GpgKeyrings, server.Processes, Docker version/container/image/network details, and requires_command guard sentinel with check_preconditions() hook.
  • Operations: files.unarchive, files.download with bandwidth capping via limit_rate, server.kill, gpg.* operations, Docker login/logout, Docker compose, Docker build, and apt.packages with a purge option.
  • Git: git.repo now supports the depth parameter for shallow clones.
  • Mount: Fixed detection of already-mounted devices in server.mount.
  • SELinux: Fixed selinux.port operation to find existing labels when the sepolicy command is missing.
  • Systemd: User-mode systemd facts no longer fail if the user manager is unavailable.
  • Crontab: Full crontab(5) environment variable syntax is now matched.
  • ZFS: Returns an empty dict if zfs/zpool commands are not available.
  • Apt: Modernized apt.key to replace the deprecated apt-key command, and added deb822 format support for AptSources.

Connector and platform updates

SSH connectors now properly parse SSH config file comments and honor ConnectTimeout through ProxyJump. The IdentityAgent config directive is now supported. For macOS and Python 3.13 compatibility, connectors use gevent.subprocess in utilities. Askpass generation errors are now shown to the user.

Documentation

Similar Articles

More articles like this

Coding 2 min

Show HN: Let – Offline-first life events tracker (React Native, SQLite)

A new React Native app, "Let," is gaining traction with its offline-first approach to tracking life events, leveraging SQLite for local storage and syncing data when connectivity is restored. By decoupling data from the network, Let aims to provide a seamless experience even in areas with limited internet access. This design choice echoes the principles of progressive web apps and offline-first development. AI-assisted, human-reviewed.

Coding 1 min

Someone allegedly used a hairdryer to rig Polymarket weather bets

A rogue trader allegedly exploited Polymarket's weather betting platform by using a hairdryer to manipulate temperature sensors, highlighting vulnerabilities in the decentralized oracle system's reliance on external temperature feeds. The hack, which reportedly netted the perpetrator a significant profit, underscores the need for more robust security measures in decentralized finance (DeFi) applications. The incident raises questions about the integrity of temperature data in DeFi markets. AI-assisted, human-reviewed.

Coding 1 min

Newton's law of gravity passes its biggest test

Physicists have successfully validated Newton's law of universal gravitation at the largest scales yet, with a recent experiment confirming the inverse square law holds true for massive galaxy clusters spanning over 100 million light-years. The findings, based on precise measurements of gravitational lensing effects, bring the law's domain of applicability to the cosmic web, a network of galaxy filaments and voids. This milestone cements Newton's legacy in modern astrophysics. AI-assisted, human-reviewed.

Coding 1 min

Why Almost Everyone Loses–Except a Few Sharks–On Prediction Markets

Prediction markets' promise of profit through collective forecasting has devolved into a rigged game, where a small group of sophisticated traders exploit naive bettors with sophisticated statistical arbitrage and liquidity manipulation, leaving the majority to suffer losses in the tens of millions. This outcome is largely due to the lack of transparency and regulatory oversight in platforms like Polymarket and Kalshi. The sharks are winning, and the rest are left to swim in the red. AI-assisted, human-reviewed.

Coding 1 min

ASML's Best Selling Product Isn't What You Think It Is

ASML's dominance in the semiconductor industry is driven by a product that has little to do with its high-end lithography machines: the company's entry-level NXE:3400B scanner, which has become the industry's de facto standard for 248nm immersion lithography, outpacing its more advanced counterparts in adoption and market share. This unexpected success stems from its cost-effective design and seamless integration with existing manufacturing workflows. The NXE:3400B's widespread adoption has cemented ASML's position as a leader in the sector. AI-assisted, human-reviewed.

Coding 2 min

Ruflo: Multi-agent AI orchestration for Claude Code

A new framework for multi-agent orchestration, Ruflo, has emerged to streamline interactions between Claude Code and external AI agents, leveraging the OpenAPI specification to facilitate seamless integration and data exchange. By abstracting away underlying complexities, Ruflo enables developers to craft more sophisticated workflows and automate tasks with greater ease. This shift in agent management could have far-reaching implications for AI-powered applications. AI-assisted, human-reviewed.