bisos.basics 0.2__tar.gz → 0.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bisos_basics-0.22/PKG-INFO +248 -0
- bisos_basics-0.22/README.rst +217 -0
- bisos_basics-0.22/_description.org +168 -0
- bisos_basics-0.22/bin/basics-fileLine.cs +398 -0
- bisos_basics-0.22/bin/pyLiteralTo.cs +685 -0
- bisos_basics-0.22/bisos/basics/basics.py +430 -0
- bisos_basics-0.22/bisos/basics/basicsCmndParams.py +150 -0
- bisos_basics-0.22/bisos/basics/pathPlus.py +94 -0
- bisos_basics-0.22/bisos/basics/pyRunAs.py +443 -0
- bisos_basics-0.22/bisos/basics/sameInstanceStandalone.py +1 -0
- bisos_basics-0.22/bisos.basics.egg-info/PKG-INFO +248 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/bisos.basics.egg-info/SOURCES.txt +7 -6
- bisos_basics-0.22/bisos.basics.egg-info/requires.txt +5 -0
- bisos_basics-0.22/pyproject.toml +8 -0
- bisos_basics-0.22/setup.py +111 -0
- bisos.basics-0.2/MANIFEST.in +0 -6
- bisos.basics-0.2/PKG-INFO +0 -65
- bisos.basics-0.2/README.rst +0 -43
- bisos.basics-0.2/TITLE.txt +0 -2
- bisos.basics-0.2/bisos/basics/facter.py +0 -314
- bisos.basics-0.2/bisos/basics/facterIcm.py +0 -249
- bisos.basics-0.2/bisos/basics/facterPy6.py +0 -180
- bisos.basics-0.2/bisos/basics/pyRunAs.py +0 -222
- bisos.basics-0.2/bisos/basics/sameInstanceStandalone.py +0 -34
- bisos.basics-0.2/bisos.basics.egg-info/PKG-INFO +0 -65
- bisos.basics-0.2/bisos.basics.egg-info/namespace_packages.txt +0 -1
- bisos.basics-0.2/bisos.basics.egg-info/requires.txt +0 -2
- bisos.basics-0.2/setup.py +0 -75
- {bisos.basics-0.2 → bisos_basics-0.22}/bisos/__init__.py +0 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/bisos/basics/__init__.py +0 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/bisos/basics/pattern.py +0 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/bisos/basics/runCallable.py +0 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/bisos/basics/sudoDeco.py +0 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/bisos.basics.egg-info/dependency_links.txt +0 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/bisos.basics.egg-info/not-zip-safe +0 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/bisos.basics.egg-info/top_level.txt +0 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/lh-agpl3-LICENSE.txt +0 -0
- {bisos.basics-0.2 → bisos_basics-0.22}/setup.cfg +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: bisos.basics
|
|
3
|
+
Version: 0.22
|
|
4
|
+
Summary: bisos.basics: Python Command-Services for
|
|
5
|
+
Author: Mohsen Banan
|
|
6
|
+
Author-email: libre@mohsen.1.banan.byname.net
|
|
7
|
+
Maintainer: Mohsen Banan
|
|
8
|
+
Maintainer-email: libre@mohsen.1.banan.byname.net
|
|
9
|
+
License: AGPL
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
13
|
+
Classifier: Operating System :: POSIX
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
|
+
Requires-Dist: blee
|
|
18
|
+
Requires-Dist: blee.csPlayer
|
|
19
|
+
Requires-Dist: bisos
|
|
20
|
+
Requires-Dist: bisos.b
|
|
21
|
+
Requires-Dist: bisos.common
|
|
22
|
+
Dynamic: author
|
|
23
|
+
Dynamic: author-email
|
|
24
|
+
Dynamic: classifier
|
|
25
|
+
Dynamic: description
|
|
26
|
+
Dynamic: license
|
|
27
|
+
Dynamic: maintainer
|
|
28
|
+
Dynamic: maintainer-email
|
|
29
|
+
Dynamic: requires-dist
|
|
30
|
+
Dynamic: summary
|
|
31
|
+
|
|
32
|
+
=========================================
|
|
33
|
+
bisos.basics: Python Command-Services for
|
|
34
|
+
=========================================
|
|
35
|
+
|
|
36
|
+
.. contents::
|
|
37
|
+
:depth: 3
|
|
38
|
+
..
|
|
39
|
+
|
|
40
|
+
Overview
|
|
41
|
+
========
|
|
42
|
+
|
|
43
|
+
bisos.basics is a python package that uses the PyCS-Framework for
|
|
44
|
+
NOTYET. It is a BISOS-Capability and a Standalone-BISOS-Package.
|
|
45
|
+
|
|
46
|
+
*bisos.basics* is based on PyCS-Foundation and can be used both as a
|
|
47
|
+
Command and as a Service (invoke/perform model of remote operations)
|
|
48
|
+
using RPYC for central management of multiple systems.
|
|
49
|
+
|
|
50
|
+
.. _table-of-contents:
|
|
51
|
+
|
|
52
|
+
Table of Contents TOC
|
|
53
|
+
=====================
|
|
54
|
+
|
|
55
|
+
- `Overview <#overview>`__
|
|
56
|
+
- `Part of BISOS — ByStar Internet Services Operating
|
|
57
|
+
System <#part-of-bisos-----bystar-internet-services-operating-system>`__
|
|
58
|
+
- `bisos.basics is a Command Services (PyCS)
|
|
59
|
+
Facility <#bisosbasics-is-a-command-services-pycs-facility>`__
|
|
60
|
+
- `Uses of bisos.basics <#uses-of-bisosbasics>`__
|
|
61
|
+
- `bisos.basics as a Standalone Piece of
|
|
62
|
+
BISOS <#bisosbasics-as-a-standalone-piece-of-bisos>`__
|
|
63
|
+
- `Installation <#installation>`__
|
|
64
|
+
|
|
65
|
+
- `Installation With pip <#installation-with-pip>`__
|
|
66
|
+
- `Installation With pipx <#installation-with-pipx>`__
|
|
67
|
+
|
|
68
|
+
- `Usage <#usage>`__
|
|
69
|
+
|
|
70
|
+
- `Locally (system command-line) <#locally-system-command-line>`__
|
|
71
|
+
- `Remotely (as a service –
|
|
72
|
+
Performer+Invoker) <#remotely-as-a-service----performerinvoker>`__
|
|
73
|
+
|
|
74
|
+
- `Performer <#performer>`__
|
|
75
|
+
- `Invoker <#invoker>`__
|
|
76
|
+
|
|
77
|
+
- `Use by Python script <#use-by-python-script>`__
|
|
78
|
+
|
|
79
|
+
- `bisos.basics Source Code is in writen in COMEEGA
|
|
80
|
+
(Collaborative Org-Mode Enhanced Emacs Generalized Authorship)
|
|
81
|
+
– <#bisosbasics-source-code-is-in-writen-in-comeega-collaborative-org-mode-enhanced-emacs-generalized-authorship----httpsgithubcombx-bleecomeega>`__\ https://github.com/bx-blee/comeega\ `. <#bisosbasics-source-code-is-in-writen-in-comeega-collaborative-org-mode-enhanced-emacs-generalized-authorship----httpsgithubcombx-bleecomeega>`__
|
|
82
|
+
- `The primary API for bisos.basics is
|
|
83
|
+
./bisos/basics/basics-csu.py. It is self documented in
|
|
84
|
+
COMEEGA. <#the-primary-api-for-bisosbasics-is-bisosbasicsbasics-csupy-it-is-self-documented-in-comeega>`__
|
|
85
|
+
|
|
86
|
+
- `Documentation and Blee-Panels <#documentation-and-blee-panels>`__
|
|
87
|
+
|
|
88
|
+
- `bisos.basics Blee-Panels <#bisosbasics-blee-panels>`__
|
|
89
|
+
|
|
90
|
+
- `Support <#support>`__
|
|
91
|
+
|
|
92
|
+
Part of BISOS — ByStar Internet Services Operating System
|
|
93
|
+
=========================================================
|
|
94
|
+
|
|
95
|
+
| Layered on top of Debian, **BISOS**: (By\* Internet Services Operating
|
|
96
|
+
System) is a unified and universal framework for developing both
|
|
97
|
+
internet services and software-service continuums that use internet
|
|
98
|
+
services. See `Bootstrapping ByStar, BISOS and
|
|
99
|
+
Blee <https://github.com/bxGenesis/start>`__ for information about
|
|
100
|
+
getting started with BISOS.
|
|
101
|
+
| **BISOS** is a foundation for **The Libre-Halaal ByStar Digital
|
|
102
|
+
Ecosystem** which is described as a cure for losses of autonomy and
|
|
103
|
+
privacy in a book titled: `Nature of
|
|
104
|
+
Polyexistentials <https://github.com/bxplpc/120033>`__
|
|
105
|
+
|
|
106
|
+
*bisos.basics* is part of BISOS.
|
|
107
|
+
|
|
108
|
+
bisos.basics is a Command Services (PyCS) Facility
|
|
109
|
+
==================================================
|
|
110
|
+
|
|
111
|
+
bisos.basics can be used locally on command-line or remotely as a
|
|
112
|
+
service. bisos.basics is a PyCS multi-unit command-service. PyCS is a
|
|
113
|
+
framework that converges developement of CLI and Services. PyCS is an
|
|
114
|
+
alternative to FastAPI, Typer and Click.
|
|
115
|
+
|
|
116
|
+
bisos.basics uses the PyCS Framework to:
|
|
117
|
+
|
|
118
|
+
#. Provide access to basics facilities through native python.
|
|
119
|
+
#. Provide local access to basics facilities on CLI.
|
|
120
|
+
#. Provide remote access to basics facilities through remote invocation
|
|
121
|
+
of python Expection Complete Operations using
|
|
122
|
+
`rpyc <https://github.com/tomerfiliba-org/rpyc>`__.
|
|
123
|
+
#. Provide remote access to basics facilities on CLI.
|
|
124
|
+
|
|
125
|
+
What is unique in the PyCS-Framework is that these four models are all a
|
|
126
|
+
single abstraction.
|
|
127
|
+
|
|
128
|
+
The core of PyCS-Framework is the *bisos.b* package (the
|
|
129
|
+
PyCS-Foundation). See https://github.com/bisos-pip/b for an overview.
|
|
130
|
+
|
|
131
|
+
Uses of bisos.basics
|
|
132
|
+
====================
|
|
133
|
+
|
|
134
|
+
Within BISOS, bisos.basics is used as a common facility.
|
|
135
|
+
|
|
136
|
+
bisos.basics as a Standalone Piece of BISOS
|
|
137
|
+
===========================================
|
|
138
|
+
|
|
139
|
+
bisos.basics is a standalone piece of BISOS. It can be used as a
|
|
140
|
+
self-contained Python package separate from BISOS. Follow the
|
|
141
|
+
installtion and usage instructions below for your own use.
|
|
142
|
+
|
|
143
|
+
Installation
|
|
144
|
+
============
|
|
145
|
+
|
|
146
|
+
The sources for the bisos.basics pip package is maintained at:
|
|
147
|
+
https://github.com/bisos-pip/basics.
|
|
148
|
+
|
|
149
|
+
The bisos.basics pip package is available at PYPI as
|
|
150
|
+
https://pypi.org/project/bisos.basics
|
|
151
|
+
|
|
152
|
+
You can install bisos.basics with pip or pipx.
|
|
153
|
+
|
|
154
|
+
Installation With pip
|
|
155
|
+
---------------------
|
|
156
|
+
|
|
157
|
+
If you need access to bisos.basics as a python module, you can install
|
|
158
|
+
it with pip:
|
|
159
|
+
|
|
160
|
+
.. code:: bash
|
|
161
|
+
|
|
162
|
+
pip install bisos.basics
|
|
163
|
+
|
|
164
|
+
Installation With pipx
|
|
165
|
+
----------------------
|
|
166
|
+
|
|
167
|
+
If you only need access to bisos.basics as a command on command-line,
|
|
168
|
+
you can install it with pipx:
|
|
169
|
+
|
|
170
|
+
.. code:: bash
|
|
171
|
+
|
|
172
|
+
pipx install bisos.basics
|
|
173
|
+
|
|
174
|
+
The following commands are made available:
|
|
175
|
+
|
|
176
|
+
- basics.cs
|
|
177
|
+
- roInv-basics.cs
|
|
178
|
+
- roPerf-basics.cs
|
|
179
|
+
|
|
180
|
+
These are all one file with 3 names. *roInv-basics.cs* and
|
|
181
|
+
*roPerf-basics.cs* are sym-links to *basics.cs*
|
|
182
|
+
|
|
183
|
+
Usage
|
|
184
|
+
=====
|
|
185
|
+
|
|
186
|
+
Locally (system command-line)
|
|
187
|
+
-----------------------------
|
|
188
|
+
|
|
189
|
+
``basics.cs`` can be invoked directly as
|
|
190
|
+
|
|
191
|
+
.. code:: bash
|
|
192
|
+
|
|
193
|
+
bin/basics.cs
|
|
194
|
+
|
|
195
|
+
Remotely (as a service – Performer+Invoker)
|
|
196
|
+
-------------------------------------------
|
|
197
|
+
|
|
198
|
+
You can also run
|
|
199
|
+
|
|
200
|
+
Performer
|
|
201
|
+
~~~~~~~~~
|
|
202
|
+
|
|
203
|
+
Run performer as:
|
|
204
|
+
|
|
205
|
+
.. code:: bash
|
|
206
|
+
|
|
207
|
+
bin/roPerf-basics.cs
|
|
208
|
+
|
|
209
|
+
Invoker
|
|
210
|
+
~~~~~~~
|
|
211
|
+
|
|
212
|
+
Run invoker as:
|
|
213
|
+
|
|
214
|
+
.. code:: bash
|
|
215
|
+
|
|
216
|
+
bin/roInv-basics.cs
|
|
217
|
+
|
|
218
|
+
Use by Python script
|
|
219
|
+
--------------------
|
|
220
|
+
|
|
221
|
+
bisos.basics Source Code is in writen in COMEEGA (Collaborative Org-Mode Enhanced Emacs Generalized Authorship) – https://github.com/bx-blee/comeega.
|
|
222
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
223
|
+
|
|
224
|
+
The primary API for bisos.basics is ./bisos/basics/basics-csu.py. It is self documented in COMEEGA.
|
|
225
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
226
|
+
|
|
227
|
+
Documentation and Blee-Panels
|
|
228
|
+
=============================
|
|
229
|
+
|
|
230
|
+
bisos.basics is part of ByStar Digital Ecosystem http://www.by-star.net.
|
|
231
|
+
|
|
232
|
+
This module's primary documentation is in the form of Blee-Panels.
|
|
233
|
+
Additional information is also available in:
|
|
234
|
+
http://www.by-star.net/PLPC/180047
|
|
235
|
+
|
|
236
|
+
bisos.basics Blee-Panels
|
|
237
|
+
------------------------
|
|
238
|
+
|
|
239
|
+
bisos.basics Blee-Panles are in ./panels directory. From within Blee and
|
|
240
|
+
BISOS these panles are accessible under the Blee "Panels" menu.
|
|
241
|
+
|
|
242
|
+
Support
|
|
243
|
+
=======
|
|
244
|
+
|
|
245
|
+
| For support, criticism, comments and questions; please contact the
|
|
246
|
+
author/maintainer
|
|
247
|
+
| `Mohsen Banan <http://mohsen.1.banan.byname.net>`__ at:
|
|
248
|
+
http://mohsen.1.banan.byname.net/contact
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
=========================================
|
|
2
|
+
bisos.basics: Python Command-Services for
|
|
3
|
+
=========================================
|
|
4
|
+
|
|
5
|
+
.. contents::
|
|
6
|
+
:depth: 3
|
|
7
|
+
..
|
|
8
|
+
|
|
9
|
+
Overview
|
|
10
|
+
========
|
|
11
|
+
|
|
12
|
+
bisos.basics is a python package that uses the PyCS-Framework for
|
|
13
|
+
NOTYET. It is a BISOS-Capability and a Standalone-BISOS-Package.
|
|
14
|
+
|
|
15
|
+
*bisos.basics* is based on PyCS-Foundation and can be used both as a
|
|
16
|
+
Command and as a Service (invoke/perform model of remote operations)
|
|
17
|
+
using RPYC for central management of multiple systems.
|
|
18
|
+
|
|
19
|
+
.. _table-of-contents:
|
|
20
|
+
|
|
21
|
+
Table of Contents TOC
|
|
22
|
+
=====================
|
|
23
|
+
|
|
24
|
+
- `Overview <#overview>`__
|
|
25
|
+
- `Part of BISOS — ByStar Internet Services Operating
|
|
26
|
+
System <#part-of-bisos-----bystar-internet-services-operating-system>`__
|
|
27
|
+
- `bisos.basics is a Command Services (PyCS)
|
|
28
|
+
Facility <#bisosbasics-is-a-command-services-pycs-facility>`__
|
|
29
|
+
- `Uses of bisos.basics <#uses-of-bisosbasics>`__
|
|
30
|
+
- `bisos.basics as a Standalone Piece of
|
|
31
|
+
BISOS <#bisosbasics-as-a-standalone-piece-of-bisos>`__
|
|
32
|
+
- `Installation <#installation>`__
|
|
33
|
+
|
|
34
|
+
- `Installation With pip <#installation-with-pip>`__
|
|
35
|
+
- `Installation With pipx <#installation-with-pipx>`__
|
|
36
|
+
|
|
37
|
+
- `Usage <#usage>`__
|
|
38
|
+
|
|
39
|
+
- `Locally (system command-line) <#locally-system-command-line>`__
|
|
40
|
+
- `Remotely (as a service –
|
|
41
|
+
Performer+Invoker) <#remotely-as-a-service----performerinvoker>`__
|
|
42
|
+
|
|
43
|
+
- `Performer <#performer>`__
|
|
44
|
+
- `Invoker <#invoker>`__
|
|
45
|
+
|
|
46
|
+
- `Use by Python script <#use-by-python-script>`__
|
|
47
|
+
|
|
48
|
+
- `bisos.basics Source Code is in writen in COMEEGA
|
|
49
|
+
(Collaborative Org-Mode Enhanced Emacs Generalized Authorship)
|
|
50
|
+
– <#bisosbasics-source-code-is-in-writen-in-comeega-collaborative-org-mode-enhanced-emacs-generalized-authorship----httpsgithubcombx-bleecomeega>`__\ https://github.com/bx-blee/comeega\ `. <#bisosbasics-source-code-is-in-writen-in-comeega-collaborative-org-mode-enhanced-emacs-generalized-authorship----httpsgithubcombx-bleecomeega>`__
|
|
51
|
+
- `The primary API for bisos.basics is
|
|
52
|
+
./bisos/basics/basics-csu.py. It is self documented in
|
|
53
|
+
COMEEGA. <#the-primary-api-for-bisosbasics-is-bisosbasicsbasics-csupy-it-is-self-documented-in-comeega>`__
|
|
54
|
+
|
|
55
|
+
- `Documentation and Blee-Panels <#documentation-and-blee-panels>`__
|
|
56
|
+
|
|
57
|
+
- `bisos.basics Blee-Panels <#bisosbasics-blee-panels>`__
|
|
58
|
+
|
|
59
|
+
- `Support <#support>`__
|
|
60
|
+
|
|
61
|
+
Part of BISOS — ByStar Internet Services Operating System
|
|
62
|
+
=========================================================
|
|
63
|
+
|
|
64
|
+
| Layered on top of Debian, **BISOS**: (By\* Internet Services Operating
|
|
65
|
+
System) is a unified and universal framework for developing both
|
|
66
|
+
internet services and software-service continuums that use internet
|
|
67
|
+
services. See `Bootstrapping ByStar, BISOS and
|
|
68
|
+
Blee <https://github.com/bxGenesis/start>`__ for information about
|
|
69
|
+
getting started with BISOS.
|
|
70
|
+
| **BISOS** is a foundation for **The Libre-Halaal ByStar Digital
|
|
71
|
+
Ecosystem** which is described as a cure for losses of autonomy and
|
|
72
|
+
privacy in a book titled: `Nature of
|
|
73
|
+
Polyexistentials <https://github.com/bxplpc/120033>`__
|
|
74
|
+
|
|
75
|
+
*bisos.basics* is part of BISOS.
|
|
76
|
+
|
|
77
|
+
bisos.basics is a Command Services (PyCS) Facility
|
|
78
|
+
==================================================
|
|
79
|
+
|
|
80
|
+
bisos.basics can be used locally on command-line or remotely as a
|
|
81
|
+
service. bisos.basics is a PyCS multi-unit command-service. PyCS is a
|
|
82
|
+
framework that converges developement of CLI and Services. PyCS is an
|
|
83
|
+
alternative to FastAPI, Typer and Click.
|
|
84
|
+
|
|
85
|
+
bisos.basics uses the PyCS Framework to:
|
|
86
|
+
|
|
87
|
+
#. Provide access to basics facilities through native python.
|
|
88
|
+
#. Provide local access to basics facilities on CLI.
|
|
89
|
+
#. Provide remote access to basics facilities through remote invocation
|
|
90
|
+
of python Expection Complete Operations using
|
|
91
|
+
`rpyc <https://github.com/tomerfiliba-org/rpyc>`__.
|
|
92
|
+
#. Provide remote access to basics facilities on CLI.
|
|
93
|
+
|
|
94
|
+
What is unique in the PyCS-Framework is that these four models are all a
|
|
95
|
+
single abstraction.
|
|
96
|
+
|
|
97
|
+
The core of PyCS-Framework is the *bisos.b* package (the
|
|
98
|
+
PyCS-Foundation). See https://github.com/bisos-pip/b for an overview.
|
|
99
|
+
|
|
100
|
+
Uses of bisos.basics
|
|
101
|
+
====================
|
|
102
|
+
|
|
103
|
+
Within BISOS, bisos.basics is used as a common facility.
|
|
104
|
+
|
|
105
|
+
bisos.basics as a Standalone Piece of BISOS
|
|
106
|
+
===========================================
|
|
107
|
+
|
|
108
|
+
bisos.basics is a standalone piece of BISOS. It can be used as a
|
|
109
|
+
self-contained Python package separate from BISOS. Follow the
|
|
110
|
+
installtion and usage instructions below for your own use.
|
|
111
|
+
|
|
112
|
+
Installation
|
|
113
|
+
============
|
|
114
|
+
|
|
115
|
+
The sources for the bisos.basics pip package is maintained at:
|
|
116
|
+
https://github.com/bisos-pip/basics.
|
|
117
|
+
|
|
118
|
+
The bisos.basics pip package is available at PYPI as
|
|
119
|
+
https://pypi.org/project/bisos.basics
|
|
120
|
+
|
|
121
|
+
You can install bisos.basics with pip or pipx.
|
|
122
|
+
|
|
123
|
+
Installation With pip
|
|
124
|
+
---------------------
|
|
125
|
+
|
|
126
|
+
If you need access to bisos.basics as a python module, you can install
|
|
127
|
+
it with pip:
|
|
128
|
+
|
|
129
|
+
.. code:: bash
|
|
130
|
+
|
|
131
|
+
pip install bisos.basics
|
|
132
|
+
|
|
133
|
+
Installation With pipx
|
|
134
|
+
----------------------
|
|
135
|
+
|
|
136
|
+
If you only need access to bisos.basics as a command on command-line,
|
|
137
|
+
you can install it with pipx:
|
|
138
|
+
|
|
139
|
+
.. code:: bash
|
|
140
|
+
|
|
141
|
+
pipx install bisos.basics
|
|
142
|
+
|
|
143
|
+
The following commands are made available:
|
|
144
|
+
|
|
145
|
+
- basics.cs
|
|
146
|
+
- roInv-basics.cs
|
|
147
|
+
- roPerf-basics.cs
|
|
148
|
+
|
|
149
|
+
These are all one file with 3 names. *roInv-basics.cs* and
|
|
150
|
+
*roPerf-basics.cs* are sym-links to *basics.cs*
|
|
151
|
+
|
|
152
|
+
Usage
|
|
153
|
+
=====
|
|
154
|
+
|
|
155
|
+
Locally (system command-line)
|
|
156
|
+
-----------------------------
|
|
157
|
+
|
|
158
|
+
``basics.cs`` can be invoked directly as
|
|
159
|
+
|
|
160
|
+
.. code:: bash
|
|
161
|
+
|
|
162
|
+
bin/basics.cs
|
|
163
|
+
|
|
164
|
+
Remotely (as a service – Performer+Invoker)
|
|
165
|
+
-------------------------------------------
|
|
166
|
+
|
|
167
|
+
You can also run
|
|
168
|
+
|
|
169
|
+
Performer
|
|
170
|
+
~~~~~~~~~
|
|
171
|
+
|
|
172
|
+
Run performer as:
|
|
173
|
+
|
|
174
|
+
.. code:: bash
|
|
175
|
+
|
|
176
|
+
bin/roPerf-basics.cs
|
|
177
|
+
|
|
178
|
+
Invoker
|
|
179
|
+
~~~~~~~
|
|
180
|
+
|
|
181
|
+
Run invoker as:
|
|
182
|
+
|
|
183
|
+
.. code:: bash
|
|
184
|
+
|
|
185
|
+
bin/roInv-basics.cs
|
|
186
|
+
|
|
187
|
+
Use by Python script
|
|
188
|
+
--------------------
|
|
189
|
+
|
|
190
|
+
bisos.basics Source Code is in writen in COMEEGA (Collaborative Org-Mode Enhanced Emacs Generalized Authorship) – https://github.com/bx-blee/comeega.
|
|
191
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
192
|
+
|
|
193
|
+
The primary API for bisos.basics is ./bisos/basics/basics-csu.py. It is self documented in COMEEGA.
|
|
194
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
195
|
+
|
|
196
|
+
Documentation and Blee-Panels
|
|
197
|
+
=============================
|
|
198
|
+
|
|
199
|
+
bisos.basics is part of ByStar Digital Ecosystem http://www.by-star.net.
|
|
200
|
+
|
|
201
|
+
This module's primary documentation is in the form of Blee-Panels.
|
|
202
|
+
Additional information is also available in:
|
|
203
|
+
http://www.by-star.net/PLPC/180047
|
|
204
|
+
|
|
205
|
+
bisos.basics Blee-Panels
|
|
206
|
+
------------------------
|
|
207
|
+
|
|
208
|
+
bisos.basics Blee-Panles are in ./panels directory. From within Blee and
|
|
209
|
+
BISOS these panles are accessible under the Blee "Panels" menu.
|
|
210
|
+
|
|
211
|
+
Support
|
|
212
|
+
=======
|
|
213
|
+
|
|
214
|
+
| For support, criticism, comments and questions; please contact the
|
|
215
|
+
author/maintainer
|
|
216
|
+
| `Mohsen Banan <http://mohsen.1.banan.byname.net>`__ at:
|
|
217
|
+
http://mohsen.1.banan.byname.net/contact
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
#+title: bisos.basics: Python Command-Services for
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* Overview
|
|
5
|
+
bisos.basics is a python package that uses the PyCS-Framework for NOTYET.
|
|
6
|
+
It is a BISOS-Capability and a Standalone-BISOS-Package.
|
|
7
|
+
|
|
8
|
+
/bisos.basics/ is based on PyCS-Foundation and can be used both as a Command and
|
|
9
|
+
as a Service (invoke/perform model of remote operations) using RPYC for central
|
|
10
|
+
management of multiple systems.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
* Table of Contents :TOC:
|
|
14
|
+
- [[#overview][Overview]]
|
|
15
|
+
- [[#part-of-bisos-----bystar-internet-services-operating-system][Part of BISOS --- ByStar Internet Services Operating System]]
|
|
16
|
+
- [[#bisosbasics-is-a-command-services-pycs-facility][bisos.basics is a Command Services (PyCS) Facility]]
|
|
17
|
+
- [[#uses-of-bisosbasics][Uses of bisos.basics]]
|
|
18
|
+
- [[#bisosbasics-as-a-standalone-piece-of-bisos][bisos.basics as a Standalone Piece of BISOS]]
|
|
19
|
+
- [[#installation][Installation]]
|
|
20
|
+
- [[#installation-with-pip][Installation With pip]]
|
|
21
|
+
- [[#installation-with-pipx][Installation With pipx]]
|
|
22
|
+
- [[#usage][Usage]]
|
|
23
|
+
- [[#locally-system-command-line][Locally (system command-line)]]
|
|
24
|
+
- [[#remotely-as-a-service----performerinvoker][Remotely (as a service -- Performer+Invoker)]]
|
|
25
|
+
- [[#performer][Performer]]
|
|
26
|
+
- [[#invoker][Invoker]]
|
|
27
|
+
- [[#use-by-python-script][Use by Python script]]
|
|
28
|
+
- [[#bisosbasics-source-code-is-in-writen-in-comeega-collaborative-org-mode-enhanced-emacs-generalized-authorship----httpsgithubcombx-bleecomeega][bisos.basics Source Code is in writen in COMEEGA (Collaborative Org-Mode Enhanced Emacs Generalized Authorship) -- https://github.com/bx-blee/comeega.]]
|
|
29
|
+
- [[#the-primary-api-for-bisosbasics-is-bisosbasicsbasics-csupy-it-is-self-documented-in-comeega][The primary API for bisos.basics is ./bisos/basics/basics-csu.py. It is self documented in COMEEGA.]]
|
|
30
|
+
- [[#documentation-and-blee-panels][Documentation and Blee-Panels]]
|
|
31
|
+
- [[#bisosbasics-blee-panels][bisos.basics Blee-Panels]]
|
|
32
|
+
- [[#support][Support]]
|
|
33
|
+
|
|
34
|
+
* Part of BISOS --- ByStar Internet Services Operating System
|
|
35
|
+
|
|
36
|
+
Layered on top of Debian, *BISOS*: (By* Internet Services Operating System) is a
|
|
37
|
+
unified and universal framework for developing both internet services and
|
|
38
|
+
software-service continuums that use internet services. See [[https://github.com/bxGenesis/start][Bootstrapping
|
|
39
|
+
ByStar, BISOS and Blee]] for information about getting started with BISOS.\\
|
|
40
|
+
*BISOS* is a foundation for *The Libre-Halaal ByStar Digital Ecosystem* which is
|
|
41
|
+
described as a cure for losses of autonomy and privacy in a book titled: [[https://github.com/bxplpc/120033][Nature
|
|
42
|
+
of Polyexistentials]]
|
|
43
|
+
|
|
44
|
+
/bisos.basics/ is part of BISOS.
|
|
45
|
+
|
|
46
|
+
* bisos.basics is a Command Services (PyCS) Facility
|
|
47
|
+
|
|
48
|
+
bisos.basics can be used locally on command-line or remotely as a service.
|
|
49
|
+
bisos.basics is a PyCS multi-unit command-service.
|
|
50
|
+
PyCS is a framework that converges developement of CLI and Services.
|
|
51
|
+
PyCS is an alternative to FastAPI, Typer and Click.
|
|
52
|
+
|
|
53
|
+
bisos.basics uses the PyCS Framework to:
|
|
54
|
+
|
|
55
|
+
1) Provide access to basics facilities through native python.
|
|
56
|
+
2) Provide local access to basics facilities on CLI.
|
|
57
|
+
3) Provide remote access to basics facilities through remote invocation of
|
|
58
|
+
python Expection Complete Operations using [[https://github.com/tomerfiliba-org/rpyc][rpyc]].
|
|
59
|
+
4) Provide remote access to basics facilities on CLI.
|
|
60
|
+
|
|
61
|
+
What is unique in the PyCS-Framework is that these four models are all
|
|
62
|
+
a single abstraction.
|
|
63
|
+
|
|
64
|
+
The core of PyCS-Framework is the /bisos.b/ package (the PyCS-Foundation).
|
|
65
|
+
See https://github.com/bisos-pip/b for an overview.
|
|
66
|
+
|
|
67
|
+
* Uses of bisos.basics
|
|
68
|
+
|
|
69
|
+
Within BISOS, bisos.basics is used as a common facility.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
* bisos.basics as a Standalone Piece of BISOS
|
|
73
|
+
|
|
74
|
+
bisos.basics is a standalone piece of BISOS. It can be used as a self-contained
|
|
75
|
+
Python package separate from BISOS. Follow the installtion and usage
|
|
76
|
+
instructions below for your own use.
|
|
77
|
+
|
|
78
|
+
* Installation
|
|
79
|
+
|
|
80
|
+
The sources for the bisos.basics pip package is maintained at:
|
|
81
|
+
https://github.com/bisos-pip/basics.
|
|
82
|
+
|
|
83
|
+
The bisos.basics pip package is available at PYPI as
|
|
84
|
+
https://pypi.org/project/bisos.basics
|
|
85
|
+
|
|
86
|
+
You can install bisos.basics with pip or pipx.
|
|
87
|
+
|
|
88
|
+
** Installation With pip
|
|
89
|
+
|
|
90
|
+
If you need access to bisos.basics as a python module, you can install it with pip:
|
|
91
|
+
|
|
92
|
+
#+begin_src bash
|
|
93
|
+
pip install bisos.basics
|
|
94
|
+
#+end_src
|
|
95
|
+
|
|
96
|
+
** Installation With pipx
|
|
97
|
+
|
|
98
|
+
If you only need access to bisos.basics as a command on command-line, you can install it with pipx:
|
|
99
|
+
|
|
100
|
+
#+begin_src bash
|
|
101
|
+
pipx install bisos.basics
|
|
102
|
+
#+end_src
|
|
103
|
+
|
|
104
|
+
The following commands are made available:
|
|
105
|
+
- basics.cs
|
|
106
|
+
- roInv-basics.cs
|
|
107
|
+
- roPerf-basics.cs
|
|
108
|
+
|
|
109
|
+
These are all one file with 3 names. _roInv-basics.cs_ and _roPerf-basics.cs_ are sym-links to _basics.cs_
|
|
110
|
+
|
|
111
|
+
* Usage
|
|
112
|
+
|
|
113
|
+
** Locally (system command-line)
|
|
114
|
+
|
|
115
|
+
=basics.cs= can be invoked directly as
|
|
116
|
+
|
|
117
|
+
#+begin_src bash
|
|
118
|
+
bin/basics.cs
|
|
119
|
+
#+end_src
|
|
120
|
+
|
|
121
|
+
** Remotely (as a service -- Performer+Invoker)
|
|
122
|
+
|
|
123
|
+
You can also run
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
*** Performer
|
|
127
|
+
|
|
128
|
+
Run performer as:
|
|
129
|
+
|
|
130
|
+
#+begin_src bash
|
|
131
|
+
bin/roPerf-basics.cs
|
|
132
|
+
#+end_src
|
|
133
|
+
|
|
134
|
+
*** Invoker
|
|
135
|
+
|
|
136
|
+
Run invoker as:
|
|
137
|
+
|
|
138
|
+
#+begin_src bash
|
|
139
|
+
bin/roInv-basics.cs
|
|
140
|
+
#+end_src
|
|
141
|
+
|
|
142
|
+
** Use by Python script
|
|
143
|
+
|
|
144
|
+
*** bisos.basics Source Code is in writen in COMEEGA (Collaborative Org-Mode Enhanced Emacs Generalized Authorship) -- https://github.com/bx-blee/comeega.
|
|
145
|
+
|
|
146
|
+
*** The primary API for bisos.basics is ./bisos/basics/basics-csu.py. It is self documented in COMEEGA.
|
|
147
|
+
|
|
148
|
+
* Documentation and Blee-Panels
|
|
149
|
+
|
|
150
|
+
bisos.basics is part of ByStar Digital Ecosystem [[http://www.by-star.net]].
|
|
151
|
+
|
|
152
|
+
This module's primary documentation is in the form of Blee-Panels.
|
|
153
|
+
Additional information is also available in: [[http://www.by-star.net/PLPC/180047]]
|
|
154
|
+
|
|
155
|
+
** bisos.basics Blee-Panels
|
|
156
|
+
|
|
157
|
+
bisos.basics Blee-Panles are in ./panels directory.
|
|
158
|
+
From within Blee and BISOS these panles are accessible under the
|
|
159
|
+
Blee "Panels" menu.
|
|
160
|
+
|
|
161
|
+
* Support
|
|
162
|
+
|
|
163
|
+
For support, criticism, comments and questions; please contact the
|
|
164
|
+
author/maintainer\\
|
|
165
|
+
[[http://mohsen.1.banan.byname.net][Mohsen Banan]] at:
|
|
166
|
+
[[http://mohsen.1.banan.byname.net/contact]]
|
|
167
|
+
|
|
168
|
+
|