GithubHelp home page GithubHelp logo

aws-bugbust-44 / pyinfra-44 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pyinfra-dev/pyinfra

0.0 0.0 0.0 19.94 MB

pyinfra automates infrastructure super fast at massive scale. It can be used for ad-hoc command execution, service deployment, configuration management and more.

Home Page: https://pyinfra.com

License: MIT License

Python 99.63% Shell 0.37% Jinja 0.01%

pyinfra-44's Introduction

PyPI version PyPi downloads Docs status Execute tests status Codecov Coverage MIT Licensed

pyinfra automates/provisions/manages/deploys infrastructure super fast at massive scale. It can be used for ad-hoc command execution, service deployment, configuration management and more. Core design features include:

  • ๐Ÿš€ Super fast execution over thousands of hosts with predictable performance.
  • ๐Ÿšจ Instant debugging with stdout & stderr output on error or as required (-v|-vv|-vvv).
  • ๐Ÿ“ฆ Extendable with any Python package as configured & written in standard Python.
  • ๐Ÿ’ป Agentless execution against SSH/Docker/subprocess/winrm hosts.
  • โ—๏ธ Two stage process that enables --dry runs before executing any changes.
  • ๐Ÿ”Œ Integrated with Docker, Vagrant/Mech & Ansible out of the box.

When you run pyinfra you'll see something like (non animated version):

Quickstart

pyinfra can be installed via pip:

pip install pyinfra

Now you can execute commands & operations over SSH:

# Execute an arbitrary shell command
pyinfra my-server.net exec -- echo "hello world"

# Install iftop apt package if not present
pyinfra my-server.net apt.packages iftop sudo=true update=true

These can then be saved to a deploy file, let's call it deploy.py:

from pyinfra.operations import apt

apt.packages(
    name='Ensure iftop is installed',
    packages=['iftop'],
    sudo=True,
    update=True,
)

And executed with:

pyinfra my-server.net deploy.py

or

pyinfra @docker/ubuntu deploy.py

pyinfra-44's People

Contributors

benridley avatar charles-l avatar fizzadar avatar foobarquaxx avatar gaming4lifede avatar gchazot avatar gdoumenc avatar glassbeads avatar hazayan avatar hoh avatar i-do-cpp avatar jprltsnz avatar leahneukirchen avatar lun-4 avatar mansya avatar meantheory avatar mfrg avatar mkinney avatar morrison12 avatar nikaro avatar remybar avatar ryan109 avatar sfermigier avatar stchris avatar stevenkaras avatar sysadmin75 avatar tobald avatar tsnoam avatar uggedal avatar vilhelmprytz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.