bisos.PyCS: Python Command-Services Framework.
Panel Controls:: Show-All Overview Content | (1) | S&Q Save Quit Bury Links: file:./panels/_nodeBase_/fullUsagePanel-en.org (Package Panel)
Overview
Python Command Services is a unified model and framework for development of both Commands and Services. Unlike Click, Docopt and Typer which are just for commands development and unlike FastAPI, Pydantic, gRPC and OpenAPI which are just for services development, PyCS does both. Native PyCS uses RPyC to transform commands into services.
bisos.PyCS is based on PyCS-Foundation (bisos.b) and 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. PyCS-Framework extends the PyCS-Foundation by providing common additional modules which ease development of applications.
Table of Contents TOC
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.
bisos.PyCS as a PyCS facility 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.PyCS is a Command Services (PyCS) Facility
bisos.PyCS can be used locally on command-line or remotely as a service. bisos.PyCS 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.PyCS uses the PyCS Framework to:
Provide access to PyCS facilities through native python.
Provide local access to PyCS facilities on CLI.
Provide remote access to PyCS facilities through remote invocation of python Expection Complete Operations using rpyc.
Provide remote access to PyCS facilities on CLI.
What is unique in the PyCS-Framework is that these four models are all a single abstraction.
The core of PyCS-Framework is the bisos.b package (the PyCS-Foundation). See https://github.com/bisos-pip/b for an overview.
Uses of bisos.PyCS
Within BISOS, bisos.PyCS is used as a common facility.
Spread Planted Command Services (``.spcs``) — a PyCS pattern for planting identical file content at many filesystem locations and letting each planted instance be characterised by its directory. When composed with bisos.fileObj’s tree walker, .spcs becomes a general-purpose framework for walkable trees (bisos.dockerProc over bro_dockerfiles is the first end-to-end consumer; future consumers include bisos.lcnt, static-web publication, and others). See spcs/README.org for architecture, figure, and canonical references.
Pip Package Tools
Commands about pip packages themselves, for whoever develops bisos-pip packages; a pipx install bisos.PyCS is enough (no full BISOS).
Command |
What it does |
|---|---|
pyPkgTools.cs |
PyPI’s latest version (and next), pip / pipx dependency updates |
pipPkgsStatus.cs |
pkgLocalStatus <repo> [venv]: does the editable install need a |
reinstall; the action (ok, devbinClean, reinstall, regenerate) |
|
and why |
|
pkgReleaseStatus <repo> [venv]: does PyPI need a push, bisos3 an |
|
update; the first thing to do (uncommitted, unpushed, notOnPypi, |
|
push, update, ok) and why |
|
pkgsStatus [base]: one row per package under base |
Both are read-only; the module is bisos.pycs.pipPkgsStatus.
pkgLocalStatus (venv default /bisos/venv/dev-bisos3) compares what pip and /bisos/venv/devbin recorded at install time with the repo: installed editable from this repo; py3/bin vs. setup.py’s scripts; py3/bin vs. the devbin symlinks and vs. pip’s copies in the venv’s bin/ (they run when the venv is activated); setup.py newer than the install; pip check. Python edits never need a reinstall.
pkgReleaseStatus (venv default /bisos/venv/bisos3, installed from PyPI) compares the released files (that install’s RECORD) with the repo’s committed files (git HEAD; a script’s shebang, which pip rewrites, is ignored), and PyPI’s latest version (its JSON API) with the venv’s. Only committed and pushed changes call for a push; uncommitted and unpushed work is reported first.
pkgsStatus (base default /bisos/git/bxRepos/bisos-pip) gives one row per package: in or out of what BISOS installs (bisos.py3-all’s closure and the pipPkgsList of rawBisos-sbom.pcs, with their requirements), and for those in it both actions; then a count per action. Out-of-scope packages are listed, not checked: being a repo under base is not a reason to install one.
bisos.PyCS as a Standalone Piece of BISOS
bisos.PyCS 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.PyCS pip package is maintained at: https://github.com/bisos-pip/PyCS.
The bisos.PyCS pip package is available at PYPI as https://pypi.org/project/bisos.PyCS
You can install bisos.PyCS with pip or pipx.
With pip
If you need access to bisos.PyCS as a python module, you can install it with pip:
pip install bisos.PyCS
With pipx
If you only need access to bisos.PyCS as a command on command-line, you can install it with pipx:
pipx install bisos.PyCS
The following commands are made available:
PyCS.cs
roInv-PyCS.cs
roPerf-PyCS.cs
These are all one file with 3 names. roInv-PyCS.cs and roPerf-PyCS.cs are sym-links to PyCS.cs
Usage
Locally (system command-line)
PyCS.cs can be invoked directly as
bin/PyCS.cs
Remotely (as a service – Performer+Invoker)
You can also run
Performer
Run performer as:
bin/roPerf-PyCS.cs
Invoker
Run invoker as:
bin/roInv-PyCS.cs
Use by Python script
The primary API for bisos.PyCS is ./bisos/PyCS/PyCS-csu.py. It is self documented in COMEEGA.
Documentation and Blee-Panels
bisos.PyCS 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.PyCS Blee-Panels
bisos.PyCS Blee-Panles are in ./panels directory. From within Blee and BISOS these panles are accessible under the Blee “Panels” menu.
Support
Metadata
Release files for bisos.pycs 0.28
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_pycs-0.28.tar.gz | 47.9 kB | Without provenance | Details for bisos_pycs-0.28.tar.gz |
Release files / bisos_pycs-0.28.tar.gz
| Download URL | bisos_pycs-0.28.tar.gz |
|---|---|
| Size | 47.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74466b7f7595286293ba3f66a693db15d2d81711720120698ff4d72237122958
|
|
BLAKE2b-256 checksum How to use checksums |
2393107528c26a0daf1a1d3b2793850cc3fc0262522c24367a55c1d64a4337d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.2
|
Security for bisos.pycs 0.28
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.