python-mario/mario
View on GitHub ↗ ★ 510 Python
Powerful Python pipelines for your shell
20 mentions on Hacker News by 2 people: 0 stories, 20 comments · first 2019-08-23 · latest 2023-10-23
20082026
-
…) may be useful, too. The most famous Python command-line tool like this is probably Mario ( https://github.com/python-mario/mario ), which isn't maintained. pyp's readme compares Mario and some other alternatives:…
comment by networked · 2023-10-23 · in Show HN: Pypipe – A Python command-line tool for pipeline processing -
…process them in a single line. cat urls.txt | mario async-map 'await asks.get ! x.json()' apply len https://github.com/python-mario/mario Nushell also seems cool, it's somewhat similar to Powershell. https://github.com/nushell/nushell
comment by j88439h84 · 2020-08-07 · in Crush: A command line shell that is also a powerful modern programming language -
…built-in transformations, concurrency support, user-defined commands, and extensive documentation. https://github.com/python-mario/mario
comment by j88439h84 · 2020-05-09 · in Show HN: Pyp – Easily, magically, run Python at the shell -
…of the type McIlroy criticized. Python's Mario tool makes it easy to use Python code in pipelines. https://github.com/python-mario/mario
comment by j88439h84 · 2020-02-28 · in Was Knuth Really Framed? -
…example, to get a bunch of urls concurrently $ mario async-map 'await asks.get ! x.text' < urls.txt https://github.com/python-mario/mario
comment by j88439h84 · 2019-12-05 · in Dgsh – Directed Graph Shell -
Awk pipelines are exactly the area where Mario is useful for Python programmers. https://github.com/python-mario/mario
comment by j88439h84 · 2019-11-12 · in When your data doesn’t fit in memory: the basic techniques -
I like to build lots of cool command-line one-liners in Python with the Mario tool. https://github.com/python-mario/mario
comment by j88439h84 · 2019-09-14 · in Ruby One-Liners -
Mario provides an implementation of shell pipes for Python. https://github.com/python-mario/mario
comment by j88439h84 · 2019-09-01 · in Magritte: A Language for Pipe-Based Programming [pdf] -
…agree about the unnecessary verbosity. For a more concise Python on the command line, I like Mario: https://github.com/python-mario/mario
comment by j88439h84 · 2019-09-01 · in TSV Utilities: Command line tools for large, tabular data files -
Another one, in Python: https://github.com/python-mario/mario
comment by j88439h84 · 2019-09-01 · in TSV Utilities: Command line tools for large, tabular data files -
…for manipulating data in your shell with Python functions. It supports csv, json, toml, yaml, xml. https://github.com/python-mario/mario
comment by j88439h84 · 2019-09-01 · in TSV Utilities: Command line tools for large, tabular data files -
If you know a bit of Python, you can use it directly on streams in your shell. https://github.com/python-mario/mario
comment by j88439h84 · 2019-08-31 · in TSV Utilities: Command line tools for large, tabular data files -
The idea of Mario is to use Python objects in your native shell (bash/zsh/fish/etc) https://github.com/python-mario/mario
comment by j88439h84 · 2019-08-24 · in Introducing nushell -
…instead of text lines. This means it's much more structured and has a familiar syntax as well. https://github.com/python-mario/mario
comment by j88439h84 · 2019-08-24 · in Introducing nushell -
…well as read-json-array, read-json-dicts for each different type of file (json, csv, yaml, toml). https://github.com/python-mario/mario
comment by j88439h84 · 2019-08-24 · in Introducing nushell -
Mario uses Python objects in pipelines instead of plain text. https://github.com/python-mario/mario
comment by j88439h84 · 2019-08-24 · in Introducing nushell -
…for manipulating structured data. Python is great at this, so I use Mario to do it in the shell. https://github.com/python-mario/mario For example, to sort filenames by length $ ls | mario apply 'sorted(x, key=len)' chain doc src bench…
comment by j88439h84 · 2019-08-24 · in Introducing nushell -
…objects instead of text, but since it doesn't control the whole shell it's less of a commitment. https://github.com/python-mario/mario
comment by j88439h84 · 2019-08-23 · in Introducing nushell -
…a similar idea with Mario. But because it's not a shell itself, it requires less of a commitment. https://github.com/python-mario/mario
comment by j88439h84 · 2019-08-23 · in Introducing nushell -
…but in Python, and lets you use arbitrary code and construct your own functions in pure Python. https://github.com/python-mario/mario $ mario read-csv-dicts map 'x["name"]' < hackers.csv Alice Bob Carol
comment by j88439h84 · 2019-08-23 · in Introducing nushell