Language Selection

English French German Italian Portuguese Spanish

With iterpipes, python is ready to replace bash for scripting. Really.

Filed under
Software

This has been a pet peeve of mine for years: programming shell scripts suck. They are ugly and error prone. The only reason why we still do it? There is no real replacement.

Or at least that was the case, until today I met iterpipes at python.reddit.com

Iterpipes is "A library for running shell pipelines using shell-like syntax" and guess what? It's brilliant.

Here's an example from its PYPI page:

# Total lines in *.py files under /path/to/dir,
# use safe shell parameters formatting:

>>> total = cmd(
... 'find {} -name {} -print0 | xargs -0 wc -l | tail -1 | awk {}',
... '/path/to/dir', '\*.py', '{print $1}')
>>> run(total | strip() | join | int)
315

Here's how that would look in shell:




More in Tux Machines

Software: LabPlot 2.5, GNU Parallel 20180622 ('Kim Trump'), Ick ALPHA-6

  • LabPlot 2.5 released
    It took much more time to finalize the release than we planned in the beginning after the 2.4 release was done. But we hope the number of features we implemented for 2.5 and their impact on the workflows supported by LabPlot can justify this delay. The source code and the installers for Windows and for Mac OS X can be found on our download page, as usual. In this release we again increased the number of data sources and added the support for the import of data from SQL databases. The user can import either from single tables or import the result of a custom SQL queries.
  • Krita 4.1 Beta Comes with a New Reference Images Tool and Supports Multi-Monitor Workspace Layouts
  • GNU Parallel 20180622 ('Kim Trump') released
    GNU Parallel 20180622 ('Kim Trump') has been released.
  • Ick ALPHA-6 released: CI/CD engine
    It gives me no small amount of satisfaction to announce the ALPHA-6 version of ick, my fledgling continuous integration and deployment engine. Ick has been now deployed and used by other people than myself.

Red Hat News and Disappointing Quarter, Buybacks Initiated

Android Leftovers

GNOME 3.30 Desktop Environment Gets New Milestone, Beta Expected on August 1

In an email announcement received by Softpedia, developer Michael Catanzaro announces the availability of GNOME 3.29.3, the third of four development milestones before the GNOME 3.30 desktop environment enters beta stages of development. Coming almost a month after GNOME 3.29.2, the GNOME 3.29.3 development milestone appears to be the first where all components are buildable. "This is an accomplishment," said Michael Catanzaro, "I hope we can keep this up going forward." Read more