Skip to main content

Fuselage

https://travis-ci.org/yaybu/fuselage.png?branch=master https://coveralls.io/repos/yaybu/fuselage/badge.png?branch=master https://pypip.in/version/fuselage/badge.png

fuselage is a idempotent configuration bundle builder and runtime.

Use a simple python API to describe a server configuration and bundle that as a script that can be executed on any system.

You can find us in #yaybu on irc.oftc.net.

Using with fabric

You will need to install fabric explicitly. Fuselage does not depend on fabric.

You can write simple deployment scripts with Fabric by adding this to your fabfile:

from fuselage.fabric import blueprint
from fuselage.resources import *

@blueprint
def minecraft(bundle):
    yield Directory(
        name='/var/local/minecraft',
    )
    yield Execute(
        name='wget https://s3.amazonaws.com/Minecraft.Download/versions/1.6.2/minecraft_server.1.6.2.jar',
        cwd="/var/local/minecraft",
        creates="/var/local/minecraft/minecraft_server.1.6.2.jar",
    )
    yield File(
        name='/var/local/minecraft/server.properties',
        contents=open('var_local_minecraft_server.properties').read(),
    )
    yield File(
        name="/etc/systemd/system/minecraft.service",
        contents=open("etc_systemd_system_minecraft.service"),
    )
    yield Execute(
        name="systemctl-daemon-reload-minecraft",
        command="systemctl daemon-reload",
        watches=['/etc/systemd/system/minecraft.service'],
    )
    yield Execute(
        name="systemctl-restart-minecraft",
        command="systemctl restart minecraft.service",
        watches=[
            "/var/local/minecraft/server.properties",
            "/etc/systemd/system/minecraft.service",
        ]
    )

And then run it against multiple servers:

fab -H server1,server2,server3 minecraft

Metadata

Release files for fuselage 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fuselage 0.0.1
File Size Uploaded Provenance Actions
fuselage-0.0.1.zip 137.4 kB Without provenance Details for fuselage-0.0.1.zip

Release files / fuselage-0.0.1.zip

Download URL fuselage-0.0.1.zip
Size 137.4 kB
Tags Source
SHA-256 checksum
How to use checksums
563053ad03ef0b23dbad2e40f30e925a957648eed3647e7de477d64eceb540c7
BLAKE2b-256 checksum
How to use checksums
25cabd82fb910c9e5caf17eedc2124f231f8256a23a6b9f7587879f67fe6c543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for fuselage 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page