bisos.binsprep 0.1__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_binsprep-0.1/PKG-INFO +245 -0
- bisos_binsprep-0.1/README.rst +209 -0
- bisos_binsprep-0.1/_description.org +167 -0
- bisos_binsprep-0.1/bin/exmpl-binsPrep.cs +61 -0
- bisos_binsprep-0.1/bin/exmpl-func-binsPrep.cs +67 -0
- bisos_binsprep-0.1/bin/seedBinsPrep.cs +218 -0
- bisos_binsprep-0.1/bisos/__init__.py +1 -0
- bisos_binsprep-0.1/bisos/binsprep/__init__.py +0 -0
- bisos_binsprep-0.1/bisos/binsprep/binsprepSeed.py +385 -0
- bisos_binsprep-0.1/bisos/binsprep/binsprep_csu.py +819 -0
- bisos_binsprep-0.1/bisos/binsprep/ok2del-binsprep.py +377 -0
- bisos_binsprep-0.1/bisos/binsprep/oldbinsprep.py +600 -0
- bisos_binsprep-0.1/bisos.binsprep.egg-info/PKG-INFO +245 -0
- bisos_binsprep-0.1/bisos.binsprep.egg-info/SOURCES.txt +20 -0
- bisos_binsprep-0.1/bisos.binsprep.egg-info/dependency_links.txt +1 -0
- bisos_binsprep-0.1/bisos.binsprep.egg-info/not-zip-safe +1 -0
- bisos_binsprep-0.1/bisos.binsprep.egg-info/requires.txt +6 -0
- bisos_binsprep-0.1/bisos.binsprep.egg-info/top_level.txt +1 -0
- bisos_binsprep-0.1/lh-agpl3-LICENSE.txt +679 -0
- bisos_binsprep-0.1/pyproject.toml +3 -0
- bisos_binsprep-0.1/setup.cfg +4 -0
- bisos_binsprep-0.1/setup.py +115 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: bisos.binsprep
|
|
3
|
+
Version: 0.1
|
|
4
|
+
Summary: bisos.binsprep: Binary preparations with apt-get, node.js, pipx, etc.
|
|
5
|
+
Home-page: http://www.by-star.net/PLPC/180047
|
|
6
|
+
Download-URL: http://www.by-star.net/PLPC/180047
|
|
7
|
+
Author: Mohsen Banan
|
|
8
|
+
Author-email: libre@mohsen.1.banan.byname.net
|
|
9
|
+
Maintainer: Mohsen Banan
|
|
10
|
+
Maintainer-email: libre@mohsen.1.banan.byname.net
|
|
11
|
+
License: AGPL
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
15
|
+
Classifier: Operating System :: POSIX
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Requires-Dist: blee
|
|
20
|
+
Requires-Dist: blee.icmPlayer
|
|
21
|
+
Requires-Dist: bisos
|
|
22
|
+
Requires-Dist: bisos.b
|
|
23
|
+
Requires-Dist: bisos.bpo
|
|
24
|
+
Requires-Dist: bisos.common
|
|
25
|
+
Dynamic: author
|
|
26
|
+
Dynamic: author-email
|
|
27
|
+
Dynamic: classifier
|
|
28
|
+
Dynamic: description
|
|
29
|
+
Dynamic: download-url
|
|
30
|
+
Dynamic: home-page
|
|
31
|
+
Dynamic: license
|
|
32
|
+
Dynamic: maintainer
|
|
33
|
+
Dynamic: maintainer-email
|
|
34
|
+
Dynamic: requires-dist
|
|
35
|
+
Dynamic: summary
|
|
36
|
+
|
|
37
|
+
=====================================================================
|
|
38
|
+
bisos.binsprep: Binary preparations with apt-get, node.js, pipx, etc.
|
|
39
|
+
=====================================================================
|
|
40
|
+
|
|
41
|
+
.. contents::
|
|
42
|
+
:depth: 3
|
|
43
|
+
..
|
|
44
|
+
|
|
45
|
+
Overview
|
|
46
|
+
========
|
|
47
|
+
|
|
48
|
+
bisos.binsprep (Cross Repository Package installations)
|
|
49
|
+
|
|
50
|
+
bisos.binsprep is a python package that uses the PyCS-Framework for
|
|
51
|
+
NOTYET. It is a BISOS-Capability and a Standalone-BISOS-Package.
|
|
52
|
+
|
|
53
|
+
*bisos.binsprep* is based on PyCS-Foundation and can be used both as a
|
|
54
|
+
Command and as a Service (invoke/perform model of remote operations)
|
|
55
|
+
using RPYC for central management of multiple systems.
|
|
56
|
+
|
|
57
|
+
.. _table-of-contents:
|
|
58
|
+
|
|
59
|
+
Table of Contents TOC
|
|
60
|
+
=====================
|
|
61
|
+
|
|
62
|
+
- `Overview <#overview>`__
|
|
63
|
+
- `Part of BISOS — ByStar Internet Services Operating
|
|
64
|
+
System <#part-of-bisos-----bystar-internet-services-operating-system>`__
|
|
65
|
+
- `bisos.binsprep is a Command Services (PyCS)
|
|
66
|
+
Facility <#bisosbinsprep-is-a-command-services-pycs-facility>`__
|
|
67
|
+
- `Uses of bisos.binsprep <#uses-of-bisosbinsprep>`__
|
|
68
|
+
- `bisos.binsprep as a Standalone Piece of
|
|
69
|
+
BISOS <#bisosbinsprep-as-a-standalone-piece-of-bisos>`__
|
|
70
|
+
- `Installation <#installation>`__
|
|
71
|
+
|
|
72
|
+
- `Installation With pip <#installation-with-pip>`__
|
|
73
|
+
- `Installation With pipx <#installation-with-pipx>`__
|
|
74
|
+
|
|
75
|
+
- `Usage <#usage>`__
|
|
76
|
+
|
|
77
|
+
- `Locally (system command-line) <#locally-system-command-line>`__
|
|
78
|
+
- `Remotely (as a service –
|
|
79
|
+
Performer+Invoker) <#remotely-as-a-service----performerinvoker>`__
|
|
80
|
+
- `Use by Python script <#use-by-python-script>`__
|
|
81
|
+
|
|
82
|
+
- `Documentation and Blee-Panels <#documentation-and-blee-panels>`__
|
|
83
|
+
|
|
84
|
+
- `bisos.binsprep Blee-Panels <#bisosbinsprep-blee-panels>`__
|
|
85
|
+
|
|
86
|
+
- `Support <#support>`__
|
|
87
|
+
|
|
88
|
+
Part of BISOS — ByStar Internet Services Operating System
|
|
89
|
+
=========================================================
|
|
90
|
+
|
|
91
|
+
| Layered on top of Debian, **BISOS**: (By\* Internet Services Operating
|
|
92
|
+
System) is a unified and universal framework for developing both
|
|
93
|
+
internet services and software-service continuums that use internet
|
|
94
|
+
services. See `Bootstrapping ByStar, BISOS and
|
|
95
|
+
Blee <https://github.com/bxGenesis/start>`__ for information about
|
|
96
|
+
getting started with BISOS.
|
|
97
|
+
| **BISOS** is a foundation for **The Libre-Halaal ByStar Digital
|
|
98
|
+
Ecosystem** which is described as a cure for losses of autonomy and
|
|
99
|
+
privacy in a book titled: `Nature of
|
|
100
|
+
Polyexistentials <https://github.com/bxplpc/120033>`__
|
|
101
|
+
|
|
102
|
+
*bisos.binsprep* is part of BISOS.
|
|
103
|
+
|
|
104
|
+
bisos.binsprep is a Command Services (PyCS) Facility
|
|
105
|
+
====================================================
|
|
106
|
+
|
|
107
|
+
bisos.binsprep can be used locally on command-line or remotely as a
|
|
108
|
+
service. bisos.binsprep is a PyCS multi-unit command-service. PyCS is a
|
|
109
|
+
framework that converges developement of CLI and Services. PyCS is an
|
|
110
|
+
alternative to FastAPI, Typer and Click.
|
|
111
|
+
|
|
112
|
+
bisos.binsprep uses the PyCS Framework to:
|
|
113
|
+
|
|
114
|
+
#. Provide access to binsprep facilities through native python.
|
|
115
|
+
#. Provide local access to binsprep facilities on CLI.
|
|
116
|
+
#. Provide remote access to binsprep facilities through remote
|
|
117
|
+
invocation of python Expection Complete Operations using
|
|
118
|
+
`rpyc <https://github.com/tomerfiliba-org/rpyc>`__.
|
|
119
|
+
#. Provide remote access to binsprep facilities on CLI.
|
|
120
|
+
|
|
121
|
+
What is unique in the PyCS-Framework is that these four models are all a
|
|
122
|
+
single abstraction.
|
|
123
|
+
|
|
124
|
+
The core of PyCS-Framework is the *bisos.b* package (the
|
|
125
|
+
PyCS-Foundation). See https://github.com/bisos-pip/b for an overview.
|
|
126
|
+
|
|
127
|
+
Uses of bisos.binsprep
|
|
128
|
+
======================
|
|
129
|
+
|
|
130
|
+
Within BISOS, bisos.binsprep is used as a common facility.
|
|
131
|
+
|
|
132
|
+
bisos.binsprep as a Standalone Piece of BISOS
|
|
133
|
+
=============================================
|
|
134
|
+
|
|
135
|
+
bisos.binsprep is a standalone piece of BISOS. It can be used as a
|
|
136
|
+
self-contained Python package separate from BISOS. Follow the
|
|
137
|
+
installtion and usage instructions below for your own use.
|
|
138
|
+
|
|
139
|
+
Installation
|
|
140
|
+
============
|
|
141
|
+
|
|
142
|
+
The sources for the bisos.binsprep pip package is maintained at:
|
|
143
|
+
https://github.com/bisos-pip/binsprep.
|
|
144
|
+
|
|
145
|
+
The bisos.binsprep pip package is available at PYPI as
|
|
146
|
+
https://pypi.org/project/bisos.binsprep
|
|
147
|
+
|
|
148
|
+
You can install bisos.binsprep with pip or pipx.
|
|
149
|
+
|
|
150
|
+
Installation With pip
|
|
151
|
+
---------------------
|
|
152
|
+
|
|
153
|
+
If you need access to bisos.binsprep as a python module, you can install
|
|
154
|
+
it with pip:
|
|
155
|
+
|
|
156
|
+
.. code:: bash
|
|
157
|
+
|
|
158
|
+
pip install bisos.binsprep
|
|
159
|
+
|
|
160
|
+
Installation With pipx
|
|
161
|
+
----------------------
|
|
162
|
+
|
|
163
|
+
If you only need access to bisos.binsprep as a command on command-line,
|
|
164
|
+
you can install it with pipx:
|
|
165
|
+
|
|
166
|
+
.. code:: bash
|
|
167
|
+
|
|
168
|
+
pipx install bisos.binsprep
|
|
169
|
+
|
|
170
|
+
The following commands are made available:
|
|
171
|
+
|
|
172
|
+
- binsprep.cs
|
|
173
|
+
- roInv-binsprep.cs
|
|
174
|
+
- roPerf-binsprep.cs
|
|
175
|
+
|
|
176
|
+
These are all one file with 3 names. *roInv-binsprep.cs* and
|
|
177
|
+
*roPerf-binsprep.cs* are sym-links to *binsprep.cs*
|
|
178
|
+
|
|
179
|
+
Usage
|
|
180
|
+
=====
|
|
181
|
+
|
|
182
|
+
Locally (system command-line)
|
|
183
|
+
-----------------------------
|
|
184
|
+
|
|
185
|
+
``binsprep.cs`` can be invoked directly as
|
|
186
|
+
|
|
187
|
+
.. code:: bash
|
|
188
|
+
|
|
189
|
+
bin/binsprep.cs
|
|
190
|
+
|
|
191
|
+
Remotely (as a service – Performer+Invoker)
|
|
192
|
+
-------------------------------------------
|
|
193
|
+
|
|
194
|
+
You can also run
|
|
195
|
+
|
|
196
|
+
Performer
|
|
197
|
+
~~~~~~~~~
|
|
198
|
+
|
|
199
|
+
Run performer as:
|
|
200
|
+
|
|
201
|
+
.. code:: bash
|
|
202
|
+
|
|
203
|
+
bin/roPerf-binsprep.cs
|
|
204
|
+
|
|
205
|
+
Invoker
|
|
206
|
+
~~~~~~~
|
|
207
|
+
|
|
208
|
+
Run invoker as:
|
|
209
|
+
|
|
210
|
+
.. code:: bash
|
|
211
|
+
|
|
212
|
+
bin/roInv-binsprep.cs
|
|
213
|
+
|
|
214
|
+
Use by Python script
|
|
215
|
+
--------------------
|
|
216
|
+
|
|
217
|
+
bisos.binsprep Source Code is in writen in COMEEGA (Collaborative Org-Mode Enhanced Emacs Generalized Authorship) – https://github.com/bx-blee/comeega.
|
|
218
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
219
|
+
|
|
220
|
+
The primary API for bisos.binsprep is ./bisos/binsprep/binsprep-csu.py. It is self documented in COMEEGA.
|
|
221
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
222
|
+
|
|
223
|
+
Documentation and Blee-Panels
|
|
224
|
+
=============================
|
|
225
|
+
|
|
226
|
+
bisos.binsprep is part of ByStar Digital Ecosystem
|
|
227
|
+
http://www.by-star.net.
|
|
228
|
+
|
|
229
|
+
This module's primary documentation is in the form of Blee-Panels.
|
|
230
|
+
Additional information is also available in:
|
|
231
|
+
http://www.by-star.net/PLPC/180047
|
|
232
|
+
|
|
233
|
+
bisos.binsprep Blee-Panels
|
|
234
|
+
--------------------------
|
|
235
|
+
|
|
236
|
+
bisos.binsprep Blee-Panles are in ./panels directory. From within Blee
|
|
237
|
+
and BISOS these panles are accessible under the Blee "Panels" menu.
|
|
238
|
+
|
|
239
|
+
Support
|
|
240
|
+
=======
|
|
241
|
+
|
|
242
|
+
| For support, criticism, comments and questions; please contact the
|
|
243
|
+
author/maintainer
|
|
244
|
+
| `Mohsen Banan <http://mohsen.1.banan.byname.net>`__ at:
|
|
245
|
+
http://mohsen.1.banan.byname.net/contact
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
=====================================================================
|
|
2
|
+
bisos.binsprep: Binary preparations with apt-get, node.js, pipx, etc.
|
|
3
|
+
=====================================================================
|
|
4
|
+
|
|
5
|
+
.. contents::
|
|
6
|
+
:depth: 3
|
|
7
|
+
..
|
|
8
|
+
|
|
9
|
+
Overview
|
|
10
|
+
========
|
|
11
|
+
|
|
12
|
+
bisos.binsprep (Cross Repository Package installations)
|
|
13
|
+
|
|
14
|
+
bisos.binsprep is a python package that uses the PyCS-Framework for
|
|
15
|
+
NOTYET. It is a BISOS-Capability and a Standalone-BISOS-Package.
|
|
16
|
+
|
|
17
|
+
*bisos.binsprep* is based on PyCS-Foundation and can be used both as a
|
|
18
|
+
Command and as a Service (invoke/perform model of remote operations)
|
|
19
|
+
using RPYC for central management of multiple systems.
|
|
20
|
+
|
|
21
|
+
.. _table-of-contents:
|
|
22
|
+
|
|
23
|
+
Table of Contents TOC
|
|
24
|
+
=====================
|
|
25
|
+
|
|
26
|
+
- `Overview <#overview>`__
|
|
27
|
+
- `Part of BISOS — ByStar Internet Services Operating
|
|
28
|
+
System <#part-of-bisos-----bystar-internet-services-operating-system>`__
|
|
29
|
+
- `bisos.binsprep is a Command Services (PyCS)
|
|
30
|
+
Facility <#bisosbinsprep-is-a-command-services-pycs-facility>`__
|
|
31
|
+
- `Uses of bisos.binsprep <#uses-of-bisosbinsprep>`__
|
|
32
|
+
- `bisos.binsprep as a Standalone Piece of
|
|
33
|
+
BISOS <#bisosbinsprep-as-a-standalone-piece-of-bisos>`__
|
|
34
|
+
- `Installation <#installation>`__
|
|
35
|
+
|
|
36
|
+
- `Installation With pip <#installation-with-pip>`__
|
|
37
|
+
- `Installation With pipx <#installation-with-pipx>`__
|
|
38
|
+
|
|
39
|
+
- `Usage <#usage>`__
|
|
40
|
+
|
|
41
|
+
- `Locally (system command-line) <#locally-system-command-line>`__
|
|
42
|
+
- `Remotely (as a service –
|
|
43
|
+
Performer+Invoker) <#remotely-as-a-service----performerinvoker>`__
|
|
44
|
+
- `Use by Python script <#use-by-python-script>`__
|
|
45
|
+
|
|
46
|
+
- `Documentation and Blee-Panels <#documentation-and-blee-panels>`__
|
|
47
|
+
|
|
48
|
+
- `bisos.binsprep Blee-Panels <#bisosbinsprep-blee-panels>`__
|
|
49
|
+
|
|
50
|
+
- `Support <#support>`__
|
|
51
|
+
|
|
52
|
+
Part of BISOS — ByStar Internet Services Operating System
|
|
53
|
+
=========================================================
|
|
54
|
+
|
|
55
|
+
| Layered on top of Debian, **BISOS**: (By\* Internet Services Operating
|
|
56
|
+
System) is a unified and universal framework for developing both
|
|
57
|
+
internet services and software-service continuums that use internet
|
|
58
|
+
services. See `Bootstrapping ByStar, BISOS and
|
|
59
|
+
Blee <https://github.com/bxGenesis/start>`__ for information about
|
|
60
|
+
getting started with BISOS.
|
|
61
|
+
| **BISOS** is a foundation for **The Libre-Halaal ByStar Digital
|
|
62
|
+
Ecosystem** which is described as a cure for losses of autonomy and
|
|
63
|
+
privacy in a book titled: `Nature of
|
|
64
|
+
Polyexistentials <https://github.com/bxplpc/120033>`__
|
|
65
|
+
|
|
66
|
+
*bisos.binsprep* is part of BISOS.
|
|
67
|
+
|
|
68
|
+
bisos.binsprep is a Command Services (PyCS) Facility
|
|
69
|
+
====================================================
|
|
70
|
+
|
|
71
|
+
bisos.binsprep can be used locally on command-line or remotely as a
|
|
72
|
+
service. bisos.binsprep is a PyCS multi-unit command-service. PyCS is a
|
|
73
|
+
framework that converges developement of CLI and Services. PyCS is an
|
|
74
|
+
alternative to FastAPI, Typer and Click.
|
|
75
|
+
|
|
76
|
+
bisos.binsprep uses the PyCS Framework to:
|
|
77
|
+
|
|
78
|
+
#. Provide access to binsprep facilities through native python.
|
|
79
|
+
#. Provide local access to binsprep facilities on CLI.
|
|
80
|
+
#. Provide remote access to binsprep facilities through remote
|
|
81
|
+
invocation of python Expection Complete Operations using
|
|
82
|
+
`rpyc <https://github.com/tomerfiliba-org/rpyc>`__.
|
|
83
|
+
#. Provide remote access to binsprep facilities on CLI.
|
|
84
|
+
|
|
85
|
+
What is unique in the PyCS-Framework is that these four models are all a
|
|
86
|
+
single abstraction.
|
|
87
|
+
|
|
88
|
+
The core of PyCS-Framework is the *bisos.b* package (the
|
|
89
|
+
PyCS-Foundation). See https://github.com/bisos-pip/b for an overview.
|
|
90
|
+
|
|
91
|
+
Uses of bisos.binsprep
|
|
92
|
+
======================
|
|
93
|
+
|
|
94
|
+
Within BISOS, bisos.binsprep is used as a common facility.
|
|
95
|
+
|
|
96
|
+
bisos.binsprep as a Standalone Piece of BISOS
|
|
97
|
+
=============================================
|
|
98
|
+
|
|
99
|
+
bisos.binsprep is a standalone piece of BISOS. It can be used as a
|
|
100
|
+
self-contained Python package separate from BISOS. Follow the
|
|
101
|
+
installtion and usage instructions below for your own use.
|
|
102
|
+
|
|
103
|
+
Installation
|
|
104
|
+
============
|
|
105
|
+
|
|
106
|
+
The sources for the bisos.binsprep pip package is maintained at:
|
|
107
|
+
https://github.com/bisos-pip/binsprep.
|
|
108
|
+
|
|
109
|
+
The bisos.binsprep pip package is available at PYPI as
|
|
110
|
+
https://pypi.org/project/bisos.binsprep
|
|
111
|
+
|
|
112
|
+
You can install bisos.binsprep with pip or pipx.
|
|
113
|
+
|
|
114
|
+
Installation With pip
|
|
115
|
+
---------------------
|
|
116
|
+
|
|
117
|
+
If you need access to bisos.binsprep as a python module, you can install
|
|
118
|
+
it with pip:
|
|
119
|
+
|
|
120
|
+
.. code:: bash
|
|
121
|
+
|
|
122
|
+
pip install bisos.binsprep
|
|
123
|
+
|
|
124
|
+
Installation With pipx
|
|
125
|
+
----------------------
|
|
126
|
+
|
|
127
|
+
If you only need access to bisos.binsprep as a command on command-line,
|
|
128
|
+
you can install it with pipx:
|
|
129
|
+
|
|
130
|
+
.. code:: bash
|
|
131
|
+
|
|
132
|
+
pipx install bisos.binsprep
|
|
133
|
+
|
|
134
|
+
The following commands are made available:
|
|
135
|
+
|
|
136
|
+
- binsprep.cs
|
|
137
|
+
- roInv-binsprep.cs
|
|
138
|
+
- roPerf-binsprep.cs
|
|
139
|
+
|
|
140
|
+
These are all one file with 3 names. *roInv-binsprep.cs* and
|
|
141
|
+
*roPerf-binsprep.cs* are sym-links to *binsprep.cs*
|
|
142
|
+
|
|
143
|
+
Usage
|
|
144
|
+
=====
|
|
145
|
+
|
|
146
|
+
Locally (system command-line)
|
|
147
|
+
-----------------------------
|
|
148
|
+
|
|
149
|
+
``binsprep.cs`` can be invoked directly as
|
|
150
|
+
|
|
151
|
+
.. code:: bash
|
|
152
|
+
|
|
153
|
+
bin/binsprep.cs
|
|
154
|
+
|
|
155
|
+
Remotely (as a service – Performer+Invoker)
|
|
156
|
+
-------------------------------------------
|
|
157
|
+
|
|
158
|
+
You can also run
|
|
159
|
+
|
|
160
|
+
Performer
|
|
161
|
+
~~~~~~~~~
|
|
162
|
+
|
|
163
|
+
Run performer as:
|
|
164
|
+
|
|
165
|
+
.. code:: bash
|
|
166
|
+
|
|
167
|
+
bin/roPerf-binsprep.cs
|
|
168
|
+
|
|
169
|
+
Invoker
|
|
170
|
+
~~~~~~~
|
|
171
|
+
|
|
172
|
+
Run invoker as:
|
|
173
|
+
|
|
174
|
+
.. code:: bash
|
|
175
|
+
|
|
176
|
+
bin/roInv-binsprep.cs
|
|
177
|
+
|
|
178
|
+
Use by Python script
|
|
179
|
+
--------------------
|
|
180
|
+
|
|
181
|
+
bisos.binsprep Source Code is in writen in COMEEGA (Collaborative Org-Mode Enhanced Emacs Generalized Authorship) – https://github.com/bx-blee/comeega.
|
|
182
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
183
|
+
|
|
184
|
+
The primary API for bisos.binsprep is ./bisos/binsprep/binsprep-csu.py. It is self documented in COMEEGA.
|
|
185
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
186
|
+
|
|
187
|
+
Documentation and Blee-Panels
|
|
188
|
+
=============================
|
|
189
|
+
|
|
190
|
+
bisos.binsprep is part of ByStar Digital Ecosystem
|
|
191
|
+
http://www.by-star.net.
|
|
192
|
+
|
|
193
|
+
This module's primary documentation is in the form of Blee-Panels.
|
|
194
|
+
Additional information is also available in:
|
|
195
|
+
http://www.by-star.net/PLPC/180047
|
|
196
|
+
|
|
197
|
+
bisos.binsprep Blee-Panels
|
|
198
|
+
--------------------------
|
|
199
|
+
|
|
200
|
+
bisos.binsprep Blee-Panles are in ./panels directory. From within Blee
|
|
201
|
+
and BISOS these panles are accessible under the Blee "Panels" menu.
|
|
202
|
+
|
|
203
|
+
Support
|
|
204
|
+
=======
|
|
205
|
+
|
|
206
|
+
| For support, criticism, comments and questions; please contact the
|
|
207
|
+
author/maintainer
|
|
208
|
+
| `Mohsen Banan <http://mohsen.1.banan.byname.net>`__ at:
|
|
209
|
+
http://mohsen.1.banan.byname.net/contact
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
#+title: bisos.binsprep: Binary preparations with apt-get, node.js, pipx, etc.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* Overview
|
|
5
|
+
|
|
6
|
+
bisos.binsprep (Cross Repository Package installations)
|
|
7
|
+
|
|
8
|
+
bisos.binsprep is a python package that uses the PyCS-Framework for NOTYET.
|
|
9
|
+
It is a BISOS-Capability and a Standalone-BISOS-Package.
|
|
10
|
+
|
|
11
|
+
/bisos.binsprep/ is based on PyCS-Foundation and can be used both as a Command and
|
|
12
|
+
as a Service (invoke/perform model of remote operations) using RPYC for central
|
|
13
|
+
management of multiple systems.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
* Table of Contents :TOC:
|
|
17
|
+
- [[#overview][Overview]]
|
|
18
|
+
- [[#part-of-bisos-----bystar-internet-services-operating-system][Part of BISOS --- ByStar Internet Services Operating System]]
|
|
19
|
+
- [[#bisosbinsprep-is-a-command-services-pycs-facility][bisos.binsprep is a Command Services (PyCS) Facility]]
|
|
20
|
+
- [[#uses-of-bisosbinsprep][Uses of bisos.binsprep]]
|
|
21
|
+
- [[#bisosbinsprep-as-a-standalone-piece-of-bisos][bisos.binsprep as a Standalone Piece of BISOS]]
|
|
22
|
+
- [[#installation][Installation]]
|
|
23
|
+
- [[#installation-with-pip][Installation With pip]]
|
|
24
|
+
- [[#installation-with-pipx][Installation With pipx]]
|
|
25
|
+
- [[#usage][Usage]]
|
|
26
|
+
- [[#locally-system-command-line][Locally (system command-line)]]
|
|
27
|
+
- [[#remotely-as-a-service----performerinvoker][Remotely (as a service -- Performer+Invoker)]]
|
|
28
|
+
- [[#use-by-python-script][Use by Python script]]
|
|
29
|
+
- [[#documentation-and-blee-panels][Documentation and Blee-Panels]]
|
|
30
|
+
- [[#bisosbinsprep-blee-panels][bisos.binsprep Blee-Panels]]
|
|
31
|
+
- [[#support][Support]]
|
|
32
|
+
|
|
33
|
+
* Part of BISOS --- ByStar Internet Services Operating System
|
|
34
|
+
|
|
35
|
+
Layered on top of Debian, *BISOS*: (By* Internet Services Operating System) is a
|
|
36
|
+
unified and universal framework for developing both internet services and
|
|
37
|
+
software-service continuums that use internet services. See [[https://github.com/bxGenesis/start][Bootstrapping
|
|
38
|
+
ByStar, BISOS and Blee]] for information about getting started with BISOS.\\
|
|
39
|
+
*BISOS* is a foundation for *The Libre-Halaal ByStar Digital Ecosystem* which is
|
|
40
|
+
described as a cure for losses of autonomy and privacy in a book titled: [[https://github.com/bxplpc/120033][Nature
|
|
41
|
+
of Polyexistentials]]
|
|
42
|
+
|
|
43
|
+
/bisos.binsprep/ is part of BISOS.
|
|
44
|
+
|
|
45
|
+
* bisos.binsprep is a Command Services (PyCS) Facility
|
|
46
|
+
|
|
47
|
+
bisos.binsprep can be used locally on command-line or remotely as a service.
|
|
48
|
+
bisos.binsprep is a PyCS multi-unit command-service.
|
|
49
|
+
PyCS is a framework that converges developement of CLI and Services.
|
|
50
|
+
PyCS is an alternative to FastAPI, Typer and Click.
|
|
51
|
+
|
|
52
|
+
bisos.binsprep uses the PyCS Framework to:
|
|
53
|
+
|
|
54
|
+
1) Provide access to binsprep facilities through native python.
|
|
55
|
+
2) Provide local access to binsprep facilities on CLI.
|
|
56
|
+
3) Provide remote access to binsprep facilities through remote invocation of
|
|
57
|
+
python Expection Complete Operations using [[https://github.com/tomerfiliba-org/rpyc][rpyc]].
|
|
58
|
+
4) Provide remote access to binsprep facilities on CLI.
|
|
59
|
+
|
|
60
|
+
What is unique in the PyCS-Framework is that these four models are all
|
|
61
|
+
a single abstraction.
|
|
62
|
+
|
|
63
|
+
The core of PyCS-Framework is the /bisos.b/ package (the PyCS-Foundation).
|
|
64
|
+
See https://github.com/bisos-pip/b for an overview.
|
|
65
|
+
|
|
66
|
+
* Uses of bisos.binsprep
|
|
67
|
+
|
|
68
|
+
Within BISOS, bisos.binsprep is used as a common facility.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
* bisos.binsprep as a Standalone Piece of BISOS
|
|
72
|
+
|
|
73
|
+
bisos.binsprep is a standalone piece of BISOS. It can be used as a self-contained
|
|
74
|
+
Python package separate from BISOS. Follow the installtion and usage
|
|
75
|
+
instructions below for your own use.
|
|
76
|
+
|
|
77
|
+
* Installation
|
|
78
|
+
|
|
79
|
+
The sources for the bisos.binsprep pip package is maintained at:
|
|
80
|
+
https://github.com/bisos-pip/binsprep.
|
|
81
|
+
|
|
82
|
+
The bisos.binsprep pip package is available at PYPI as
|
|
83
|
+
https://pypi.org/project/bisos.binsprep
|
|
84
|
+
|
|
85
|
+
You can install bisos.binsprep with pip or pipx.
|
|
86
|
+
|
|
87
|
+
** Installation With pip
|
|
88
|
+
|
|
89
|
+
If you need access to bisos.binsprep as a python module, you can install it with pip:
|
|
90
|
+
|
|
91
|
+
#+begin_src bash
|
|
92
|
+
pip install bisos.binsprep
|
|
93
|
+
#+end_src
|
|
94
|
+
|
|
95
|
+
** Installation With pipx
|
|
96
|
+
|
|
97
|
+
If you only need access to bisos.binsprep as a command on command-line, you can install it with pipx:
|
|
98
|
+
|
|
99
|
+
#+begin_src bash
|
|
100
|
+
pipx install bisos.binsprep
|
|
101
|
+
#+end_src
|
|
102
|
+
|
|
103
|
+
The following commands are made available:
|
|
104
|
+
- binsprep.cs
|
|
105
|
+
- roInv-binsprep.cs
|
|
106
|
+
- roPerf-binsprep.cs
|
|
107
|
+
|
|
108
|
+
These are all one file with 3 names. _roInv-binsprep.cs_ and _roPerf-binsprep.cs_ are sym-links to _binsprep.cs_
|
|
109
|
+
|
|
110
|
+
* Usage
|
|
111
|
+
|
|
112
|
+
** Locally (system command-line)
|
|
113
|
+
|
|
114
|
+
=binsprep.cs= can be invoked directly as
|
|
115
|
+
|
|
116
|
+
#+begin_src bash
|
|
117
|
+
bin/binsprep.cs
|
|
118
|
+
#+end_src
|
|
119
|
+
|
|
120
|
+
** Remotely (as a service -- Performer+Invoker)
|
|
121
|
+
|
|
122
|
+
You can also run
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
*** Performer
|
|
126
|
+
|
|
127
|
+
Run performer as:
|
|
128
|
+
|
|
129
|
+
#+begin_src bash
|
|
130
|
+
bin/roPerf-binsprep.cs
|
|
131
|
+
#+end_src
|
|
132
|
+
|
|
133
|
+
*** Invoker
|
|
134
|
+
|
|
135
|
+
Run invoker as:
|
|
136
|
+
|
|
137
|
+
#+begin_src bash
|
|
138
|
+
bin/roInv-binsprep.cs
|
|
139
|
+
#+end_src
|
|
140
|
+
|
|
141
|
+
** Use by Python script
|
|
142
|
+
|
|
143
|
+
*** bisos.binsprep Source Code is in writen in COMEEGA (Collaborative Org-Mode Enhanced Emacs Generalized Authorship) -- https://github.com/bx-blee/comeega.
|
|
144
|
+
|
|
145
|
+
*** The primary API for bisos.binsprep is ./bisos/binsprep/binsprep-csu.py. It is self documented in COMEEGA.
|
|
146
|
+
|
|
147
|
+
* Documentation and Blee-Panels
|
|
148
|
+
|
|
149
|
+
bisos.binsprep is part of ByStar Digital Ecosystem [[http://www.by-star.net]].
|
|
150
|
+
|
|
151
|
+
This module's primary documentation is in the form of Blee-Panels.
|
|
152
|
+
Additional information is also available in: [[http://www.by-star.net/PLPC/180047]]
|
|
153
|
+
|
|
154
|
+
** bisos.binsprep Blee-Panels
|
|
155
|
+
|
|
156
|
+
bisos.binsprep Blee-Panles are in ./panels directory.
|
|
157
|
+
From within Blee and BISOS these panles are accessible under the
|
|
158
|
+
Blee "Panels" menu.
|
|
159
|
+
|
|
160
|
+
* Support
|
|
161
|
+
|
|
162
|
+
For support, criticism, comments and questions; please contact the
|
|
163
|
+
author/maintainer\\
|
|
164
|
+
[[http://mohsen.1.banan.byname.net][Mohsen Banan]] at:
|
|
165
|
+
[[http://mohsen.1.banan.byname.net/contact]]
|
|
166
|
+
|
|
167
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
|
|
3
|
+
####+BEGIN: b:prog:file/particulars :authors ("./inserts/authors-mb.org")
|
|
4
|
+
""" #+begin_org
|
|
5
|
+
* *[[elisp:(org-cycle)][| Particulars |]]* :: Authors, version
|
|
6
|
+
** This File: /bisos/git/bxRepos/bisos-pip/binsprep/py3/bin/exmpl-binsPerp.cs
|
|
7
|
+
** Authors: Mohsen BANAN, http://mohsen.banan.1.byname.net/contact
|
|
8
|
+
#+end_org """
|
|
9
|
+
####+END:
|
|
10
|
+
|
|
11
|
+
""" #+begin_org
|
|
12
|
+
* Panel:: [[file:/bisos/panels/bisos-apps/lcnt/lcntScreencasting/subTitles/_nodeBase_/fullUsagePanel-en.org]]
|
|
13
|
+
* Overview and Relevant Pointers
|
|
14
|
+
#+end_org """
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
from bisos.binsprep import binsprepSeed
|
|
18
|
+
ap = binsprepSeed.aptPkg
|
|
19
|
+
pp = binsprepSeed.pipPkg
|
|
20
|
+
|
|
21
|
+
aptPkgsList = [
|
|
22
|
+
ap("djbdns"),
|
|
23
|
+
ap("facter"),
|
|
24
|
+
# ap("", instFn=someFunc),
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
pipPkgsList = [
|
|
28
|
+
pp("bisos.marmee"),
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
pipxPkgsList = [
|
|
32
|
+
pp("bisos.marmee"),
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
binsprepSeed.setup(
|
|
37
|
+
aptPkgsList=aptPkgsList,
|
|
38
|
+
pipPkgsList=pipPkgsList,
|
|
39
|
+
pipxPkgsList=pipxPkgsList,
|
|
40
|
+
# examplesHook=qmail_binsPrep.examples_csu,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
####+BEGIN: b:py3:cs:seed/withWhich :seedName "seedBinsPrep.cs"
|
|
44
|
+
""" #+begin_org
|
|
45
|
+
* _[[elisp:(blee:menu-sel:outline:popupMenu)][±]]_ _[[elisp:(blee:menu-sel:navigation:popupMenu)][Ξ]]_ [[elisp:(outline-show-branches+toggle)][|=]] [[elisp:(bx:orgm:indirectBufOther)][|>]] *[[elisp:(blee:ppmm:org-mode-toggle)][|N]]* seed [[elisp:(outline-show-subtree+toggle)][||]] <<seedBinsPrep.cs>> [[elisp:(org-cycle)][| ]]
|
|
46
|
+
#+end_org """
|
|
47
|
+
import shutil
|
|
48
|
+
import os
|
|
49
|
+
import sys
|
|
50
|
+
|
|
51
|
+
seedName = 'seedBinsPrep.cs'
|
|
52
|
+
seedPath = shutil.which(seedName)
|
|
53
|
+
if seedPath is None:
|
|
54
|
+
print(f'sys.exit() --- which found nothing for {seedName} --- Aborting')
|
|
55
|
+
sys.exit()
|
|
56
|
+
|
|
57
|
+
__file__ = os.path.abspath(seedPath)
|
|
58
|
+
with open(__file__) as f:
|
|
59
|
+
exec(compile(f.read(), __file__, 'exec'))
|
|
60
|
+
|
|
61
|
+
####+END:
|