Instant Python3 script installer.
Project description
Summary
Instant Python3 script installer.
Synopsis
QUICK START
Install by config
$ snakeland install snakeland-APP.conf
Find python3 command.
$ snakeland findpy3 --later 3.8
/usr/bin/python3.12
$ snakeland findpy3 --older 3.11
/usr/bin/python3.9
$ snakeland findpy3 --latest
/usr/bin/python3.12
$ snakeland range 3.5-3.10
/usr/bin/python3.9
$ snakeland range --order 3.13,3.12,3.11,3.10,3.9
/usr/bin/python3.12
DESCRIPTION
snakeland is instant python3 script installer. The script wrapper is make on /usr/local/bin as cui command.
ARGUMENT
–version, –help, –license
Print version, help message, license.
–latest
findpy3 sub command only
Print latest python3 command path.
–later [PYTHONVERSION]
findpy3 sub command only
Print PYTHONVERSION later command path.
–older [PYTHONVERSION]
findpy3 sub command only
Print PYTHONVERSION older command path.
–range 3.xx-3.yy
findpy3 sub command only
Print latest python command path in 3.xx - 3.yy.
–order 3.x,…,3.yy
findpy3 sub command only
Print first matched python command path.
CONFIG
The Config is in restricted toml format.
OSCHECK:
Describe OS names. The string is similar to 'uname -s' cmd.
default section, optional key.
Darwin: Mac OS
Linux: Linux based OS
FreeBSD: FreeBSD OS
e.g.
OSCHECK = ['Darwin', 'Linux', 'FreeBSD']
DSTBASEDIR:
Destination Base Directory.
Recommend path is '/usr/local/libexec/CMDNAME'.
default section, essential key.
INSTALLCMD:
Install command path. default path is '/usr/local/bin'.
default section, optional key.
CMDNAME:
The command name. The command file is made on INSTALLCMD directory.
default section, essential key.
TARGETPY3:
The python3 script path. The script is executed by python3.xx cmd.
default section, optional key.
(Either of TARGETPY3, TARGETCMD is always required.)
SHEBANG:
The shebang of CMDNAME file. default path is '/bin/sh'.
default section, optional key.
PY3VERSION:
Execute python3 of the version.
The string is similar to 'findpy3' options.
default section, optional key.
'3.x later' : python 3.x later.
'3.x older' : python 3.x older.
'latest' : Latest python3
'3.xx - 3.yy': Latest python3 in 3.xx - 3.yy.
'3.6 3.7 3.8': First found python3 in 3.6, 3.7, 3.8.
DSTDIR:
Relative path of DSTBASEDIR.
You cannot set it to a directory above the DSTBASEDIR.
source file section, essential key.
FMODE:
File mode of the section file. default mode is 644.
source file section, optional key.
Example of config
DSTBASEDIR = '/usr/local/libexec/CMDNAMEAPP/'
CMDNAME = 'CMDNAMEAPP'
TARGETPY3 = '/usr/local/libexec/CMDNAMEAPP/CMDNAMEAPP.py'
[script/CMDNAMEAPP.py]
DSTDIR = '.'
Bugs
Please report bugs to the e-mail: <voice[ATmark]miketurkey.com>
License
This software is licensed under the terms of the GNU General Public License, version 3 (GPLv3), with an additional clause prohibiting the use of this software for machine learning purposes. Please refer to the LICENSE file for the complete license text and additional terms.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snakeland-0.0.2.tar.gz.
File metadata
- Download URL: snakeland-0.0.2.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b20b3a79ede9a02d24a1551bdddae93b08282f37f70ca116df14b7b3fef26f06
|
|
| MD5 |
2e617dd6eba04584dff84431f6582a12
|
|
| BLAKE2b-256 |
fe68309d1dd53753aedc922fb3e0e0b2bc05c13319e107780806299badf8710d
|
File details
Details for the file snakeland-0.0.2-py3-none-any.whl.
File metadata
- Download URL: snakeland-0.0.2-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6701ea4524c83428880762d06f24d18732f643286ee13d8f5af82285191ef4ed
|
|
| MD5 |
630c9056e34971f609c00eeadc9beba9
|
|
| BLAKE2b-256 |
0cd7e3d56f929eee46657798a4a8bfc66e79abf1b4d7dc1f93dfdbc34e44e182
|