Prometheus integration for Starlette in python

Introduction Prometheus integration for Starlette. Requirements Python 3.6+ Starlette 0.9+ Installation $ pip install starlette-prometheus Usage A complete example that exposes prometheus metrics endpoint under /metrics/ path. from starlette.applications import Starlette from starlette_prometheus import metrics, PrometheusMiddleware app = Starlette() app.add_middleware(PrometheusMiddleware) app.add_route(“/metrics/”, metrics) Metrics for paths that do not match any Starlette route can    

Read more

A python tool for live presentations in the terminal

doitlive doitlive is a tool for live presentations in the terminal. It reads a file of shell commands and replays the commands in a fake terminal session as you type random characters. Get it now macOS with Homebrew: $ brew update$ brew install doitlive With pip: $ pip install doitlive Requires Python >= 2.7 or >= 3.5 with pip. Quickstart Create a file called session.sh. Fill it with bash commands. Run doitlive play session.sh. $ doitlive play session.sh Type like […]

Read more

Instant coding answers via the command line in python

instant coding answers via the command line Sherlock, your neighborhood command-line sloth sleuth. Are you a hack programmer? Do you find yourself constantly Googling for how to do basic programming tasks? Suppose you want to know how to format a date in bash. Why open your browser and read through blogs (risking major distraction) when you can simply stay in the console and ask howdoi: $ howdoi format date bash > DATE=`date +%Y-%m-%d` howdoi will answer all sorts of queries: […]

Read more

PathPicker accepts a wide range of input — output from git commands

Facebook PathPicker is a simple command line tool that solves the perpetual problem of selecting files out of bash output. PathPicker will: Parse all incoming lines for entries that look like files Present the piped input in a convenient selector UI Allow you to either: Edit the selected files in your favorite $EDITOR Execute an arbitrary command with them It is easiest to understand by watching a simple demo: Examples After installing PathPicker, using it is as easy as piping […]

Read more

Adds flavor of interactive filtering to the traditional pipe concept of UNIX shell

__ ____ ___ ______________ / / / __ / _ / ___/ ___/ __ / / / /_/ / __/ / / /__/ /_/ / / / .___/___/_/ ___/____/_/ /_/ percol adds flavor of interactive selection to the traditional pipe concept on UNIX. What’s this percol is an interactive grep tool in your terminal. percol receives input lines from stdin or a file, lists up the input lines, waits for your input that filter/select the line(s), and finally outputs the […]

Read more

Magnificent app which corrects your previous console command

The Fuck is a magnificent app, inspired by a @liamosaur tweet, that corrects errors in previous console commands. Is The Fuck too slow? Try the experimental instant mode! More examples: ➜ apt-get install vim E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? ➜ fuck sudo apt-get install vim [enter/↑/↓/ctrl+c] [sudo] password for nvbn: Reading package lists… Done … ➜ git push fatal: The current branch […]

Read more

An integrated shell for working with the Kubernetes

Kube-shell: An integrated shell for working with the Kubernetes CLI Under the hood kube-shell still calls kubectl. Kube-shell aims to provide ease-of-use of kubectl and increasing productivity. kube-shell features Auto Completion of Commands and Options with in-line documentation Fish-Style Auto Suggestions Command History You can use up-arrow and down-arrow to walk through the history of    

Read more

A command-line client for SQLite databases that has auto-completion

Docs A command-line client for SQLite databases that has auto-completion and syntax highlighting. Installation If you already know how to install python packages, then you can install it via pip: You might need sudo on linux. $ pip install -U litecli The package is also available on Arch Linux through AUR in two versions: litecli is based the latest release (git tag) and litecli-git is based on the master branch of the git repo. You can install them manually or […]

Read more

3D viewer and post processing of reservoir models

ResInsight is an open source, cross-platform 3D visualization and post processing tool for reservoir models and simulations. The system also constitutes a framework for further development and support for new data sources and visualization methods, e.g. additional solvers, seismic data, CSEM, geomechanics, and more. The user interface is tailored for efficient interpretation of reservoir simulation data with specialized visualizations of properties, faults and wells. It enables easy handling of a large number of realizations and calculation of statistics. To be […]

Read more
1 489 490 491 492 493 928