bisos.sites: Manages the /bisos/var/sites symlink base, /bisos/site, and site registrar services
Overview
bisos.sites is a python package for managing BISOS Sites – the /bisos/var/sites symlink base, the selected and per-site symlinks under it, and the /bisos/site symlink that BISOS tooling ultimately resolves through. It also umbrellas site registrar (boxes/containers inventory and performer) services.
bisos.sites is the converted, PyCS-native replacement for the Bash-ICM /bisos/core/bsip/bin/site_lib.sh library (vis_siteBisosBase, vis_siteBisosAdd, vis_siteBisosSelect).
Package Documentation At Github
The information below is a subset of the full of documentation for this bisos-pip package. More complete documentation is available at: https://github.com/bisos-pip/sites-cs
Realted Resources
bisos Sites Panel |
file:/pane ls/bisos.sites/_nodeBase_/fullUsagePanel-en.org |
Table of Contents TOC
Installation
The sources for the bisos.sites pip package is maintained at: https://github.com/bisos-pip/sites.
The bisos.sites pip package is available at PYPI as https://pypi.org/project/bisos.sites
You can install bisos.sites with pip or pipx.
Installation With pip
If you need access to bisos.sites as a python module, you can install it with pip:
pip install bisos.sites
Installation With pipx
If you only need access to bisos.sites as a command on command-line, you can install it with pipx:
pipx install bisos.sites
The following commands are made available:
sitesManage.cs
site-fps.cs
platfSiteBootstrap-fps.cs
platfSitesActivate-fps.cs
site-registrarsBoxInv-fps.cs
site-registrarsBoxPerf-fps.cs
site-registrarsContainerInv-fps.cs
site-registrarsContainerPerf-fps.cs
Part of BISOS and ByStar — ByStar Internet Services Operating System
bisos.sites is part of BISOS.
bisos.sites is a Command-Only PyCS Facility
bisos.sites is a command-line tool. It is a PyCS single-unit command service. PyCS is a framework that converges development of CLI tools and services. PyCS is an alternative to FastAPI, Typer and Click.
bisos.sites uses the PyCS-Framework to:
Manage the /bisos/var/sites symlink base – per-site symlinks and the selected symlink that /bisos/site resolves through
Bootstrap and activate BISOS platform sites (platfSiteBootstrap-fps.cs, platfSitesActivate-fps.cs)
Serve as a registrar for site boxes and containers inventory (site-registrarsBoxInv-fps.cs, site-registrarsContainerInv-fps.cs) and their performer-side counterparts
The core of PyCS-Framework is the bisos.b package (the PyCS-Foundation). See bisos.b for an overview.
bisos.sites as a Standalone Piece of BISOS
bisos.sites is a standalone piece of BISOS. It can be used as a self-contained Python package separate from BISOS. Follow the installation and usage instructions below for your own use.
Usage
Sites Information
sitesManage.cs -i sitesInfo
Lists the current /bisos/site, /bisos/var/sites/*, and selected symlinks (read-only).
Site Base – obtain/update the selected site
sitesManage.cs -i siteBase -- obtain
sitesManage.cs -p bpoId=<siteBxoId> -i siteBase -- update
obtain returns /bisos/site; update re-points /bisos/var/sites/selected (and hence /bisos/site) at the given siteBxoId.
Add or Select a Site (converted from sitelib.sh)
sitesManage.cs -i siteBisosAdd <siteBxoId> # create /bisos/var/sites/<siteBxoId>
sitesManage.cs -i siteBisosSelect <siteBxoId> # update /bisos/var/sites/selected
These are the direct PyCS conversions of /bisos/core/bsip/bin/site_lib.sh’s vis_siteBisosAdd and vis_siteBisosSelect.
For the full, current set of examples (including the registrar and platform-bootstrap commands), run any binary with -i examples, e.g. sitesManage.cs -i examples.
Key Files
py3/bin/sitesManage.cs – the primary CS binary; csuList includes bisos.sites.sites_csu.
py3/bisos/sites/sites_csu.py – sitesInfo, siteBase, siteBisosAdd, siteBisosSelect, siteBisosBase() – site symlink-base management.
py3/bisos/sites/platfSiteBootstrap.py / py3/bisos/sites/platfSiteBootstrap_fps.py – platform site bootstrap (primary site BPO-ID lookup, etc.); kept separate from sites_csu.py.
py3/bisos/sites/site_registrarsBox{Inv,Perf}_fps.py / site_registrarsContainer{Inv,Perf}_fps.py – registrar inventory and performer Cmnds for boxes and containers.
Documentation and Blee-Panels
bisos.sites is part of ByStar Digital Ecosystem http://www.by-star.net.
This module’s primary documentation is in the form of Blee-Panels. Additional information is also available in: http://www.by-star.net/PLPC/180047
bisos.sites Blee-Panels
bisos.sites Blee-Panels are in ./panels directory. From within Blee and BISOS these panels are accessible under the Blee “Panels” menu.
Support
Planned Improvements
TODO Add py3/tests/ live-execution coverage for siteBase/siteBisosAdd/siteBisosSelect (currently smoke-tested only, never executed)
TODO Document the /bisos/var/sites/<siteBxoId> and selected symlink layout with a diagram in the Blee-Panel
TODO Revisit whether platfSiteBootstrap.py should be merged into or deprecated in favor of sitescsu.py
Metadata
Release files for bisos.sites 0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bisos_sites-0.17.tar.gz | 36.4 kB | Without provenance | Details for bisos_sites-0.17.tar.gz |
Release files / bisos_sites-0.17.tar.gz
| Download URL | bisos_sites-0.17.tar.gz |
|---|---|
| Size | 36.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2acf21f5cd7e5f9fd47d9bce559be7f47d3e3ad5ff23e5dd970da62b77604fd
|
|
BLAKE2b-256 checksum How to use checksums |
9d5ce83c09d80c3da6067dc077bf15162d1de8636d18090579ab37c2e89b381d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.2
|
Security for bisos.sites 0.17
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.