Skip to main content

bisos.facter: Adoption and adaptation of facter to Python and as Service

Project description

Overview

bisos.facter is a python package for adoption and adaptation of facter to python and PyCS-Framework. It is a BISOS capability and a standalone piece of BISOS.

bisos.facter provides access to facter information through python.

bisos.facter is a PyCS can be used both as a Command and as a Service (invoke/perform model of remote operations) using RPYC for central management of multiple systems.

Table of Contents TOC

About facter

Facter gathers information about the system, which can be used as variables. Facter is part of puppet, but it can also be used without puppet.

To install facter:

sudo apt-get install -y facter

Facter is a ruby package. This bisos.facter python package provides access to facter information through python both locally and remotely.

About BISOS — ByStar Internet Services Operating System

Layered on top of Debian, BISOS: (By* Internet Services Operating System) is a unified and universal framework for developing both internet services and software-service continuums that use internet services. See Bootstrapping ByStar, BISOS and Blee for information about getting started with BISOS.

Within BISOS, bisos.cmdb uses bisos.facter for Configuration Management DataBase purposes.

bisos.facter is a small piece of a much bigger picture. BISOS is a foundation for The Libre-Halaal ByStar Digital Ecosystem which is described as a cure for losses of autonomy and privacy that we are experiencing in a book titled: Nature of Polyexistentials

bisos.facter as an Example of Command Services (PyCS)

bisos.facter can be used locally on command-line or remotely as a service. bisos.facter is a PyCS multi-unit command-service. PyCS is a framework that converges developement of CLI and Services. PyCS is an alternative to FastAPI, Typer and Click.

bisos.facter uses the PyCS Framework to:

  1. Provide access to facter information through python namedtuple

  2. Provide local access to facter information on CLI

  3. Provide remote access to facter information through remote invocation of python Expection Complete Operations using rpyc.

  4. Provide remote access to facter information on CLI

What is unique in the PyCS Framework is that these four models are all a single abstraction.

bisos.facter as a Standalone Piece of BISOS

bisos.facter is a standalone piece of BISOS. It can be used as a self-contained Python package separate from BISOS. Follow the installtion and usage instructions below for your own use.

Installation

The sources for the bisos.facter pip package is maintained at: https://github.com/bisos-pip/facter.

The bisos.facter pip package is available at PYPI as https://pypi.org/project/bisos.facter

You can install bisos.facter with pip or pipx.

With pip

If you need access to bisos.facter as a python module, you can install it with pip:

pip install bisos.facter

With pipx

If you only need access to bisos.facter on command-line, you can install it with pipx:

pipx install bisos.facter

The following commands are made available:

  • facter.cs

  • roInv-facter.cs

  • roPerf-facter.cs

These are all one file with 3 names. roInv-facter.cs and roPerf-facter.cs are sym-links to facter.cs

Usage

Locally (system command-line)

facter.cs does the equivalent of facter.

bin/facter.cs

Remotely (as a service)

You can also run

Performer

Invoke performer as:

bin/roPerf-facter.cs

Invoker

bin/roInv-facter.cs

bisos.facter Code Walkthrough

bisos.facter Source Code is in COMEEGA

bisos.facter can be used locally on command-line or remotely as a service.

TODO Take from 120033/common/engAdopt

./bin/facter.cs (./bin/roPerf-facter.cs ./bin/roInv-facter.cs)

A multi-unit

./bisos/facter/facter.py

./bisos/facter/factercsu.py

Support

For support, criticism, comments and questions; please contact the author/maintainer

Documentation

Part of ByStar Digital Ecosystem http://www.by-star.net.

This module’s primary documentation is in http://www.by-star.net/PLPC/180047

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bisos.b-0.42.tar.gz (155.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page