Hacker GitHub

← All repos

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

Mentions per year 20 mentions · busiest year 2019 (16)
20082026
  1. …) 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:…
  2. …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
  3. …built-in transformations, concurrency support, user-defined commands, and extensive documentation. https://github.com/python-mario/mario
  4. …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?
  5. …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
  6. Awk pipelines are exactly the area where Mario is useful for Python programmers. https://github.com/python-mario/mario
  7. 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
  8. Mario provides an implementation of shell pipes for Python. https://github.com/python-mario/mario
  9. …agree about the unnecessary verbosity. For a more concise Python on the command line, I like Mario: https://github.com/python-mario/mario
  10. Another one, in Python: https://github.com/python-mario/mario
  11. …for manipulating data in your shell with Python functions. It supports csv, json, toml, yaml, xml. https://github.com/python-mario/mario
  12. If you know a bit of Python, you can use it directly on streams in your shell. https://github.com/python-mario/mario
  13. 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
  14. …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
  15. …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
  16. 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
  17. …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
  18. …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
  19. …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
  20. …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