Skip to main content

Instant Python3 script installer.

Project description

snakeland created by MikeTurkey
Version 0.0.8, 23 Feb 2026
2023-2026, COPYRIGHT MikeTurkey, All Right Reserved.
ABSOLUTELY NO WARRANTY.
LICENSE: snakeland BSD License (No Machine Learning Training, AI Responsible-Use)

Summary

Instant Python3 script installer.

Synopsis

snakeland --version | --help | --license’
snakeland install-byconf [CONFIG]
snakeland uninstall [PKGNAME]
snakeland findpy3 [--later 3.xx] | [--older 3.xx] | --latest | [--range 3.xx-3.yy] | [--order 3.x,..,3.yy]

QUICK START

Install by config

$ snakeland install-byconf snakeland-APP.conf
$ APP --help
  -- help message --

Uninstall

$ snakeland uninstall APP

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
OpenBSD: OpenBSD
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.

CMDNAME001-CMDNAME999:

The command name. The command file is made on INSTALLCMD directory.
default section, essential key.

PY3TARGET001-PY3TARGET999:

The python3 script path. The script is executed by python3.xx cmd.
default section, optional key.
(Either of TARGETPY3, TARGETCMD is always required.)

SRCMANFILES: Source Man files.

default section, optional key.
The pair of SRCMANFILES and DSTMANDIR work together to install the run directory.
Enable to set plain type and gz compress type.
snakeland install one of plain and gz compress file by the platform.
e.g.
SRCMANFILES = [‘man/snakeland.1.gz’, ‘man/snakeland.1’]

DSTMANDIR: Destination Man directory.

default section, optional key.
The pair of SRCMANFILES and DSTMANDIR work together to install the run directory.
e.g.
DSTMANDIR = ‘/usr/local/share/man/man1’

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/'
PKGNAME    = 'CMDNAMEAPP'
CMDNAME001   = 'CMDNAMEAPP'
PY3TARGET001 = '/usr/local/libexec/CMDNAMEAPP/CMDNAMEAPP.py'

[script/CMDNAMEAPP.py]
    DSTDIR = '.'

BUGS

Please report bugs to the issue tracker:
or by e-mail: <voice[ATmark]miketurkey.com>

Author

MikeTurkey <voice[ATmark]miketurkey.com>

LICENSE

snakeland BSD License (No Machine Learning Training, AI Responsible-Use)

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

snakeland-0.0.8.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snakeland-0.0.8-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file snakeland-0.0.8.tar.gz.

File metadata

  • Download URL: snakeland-0.0.8.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for snakeland-0.0.8.tar.gz
Algorithm Hash digest
SHA256 8e2f070704b9f2c285b82aa1fb7fc1fa60aa0fba31e9cb81ed7217749f402fc1
MD5 5b5360a4e3e74b0cc214d7faef424576
BLAKE2b-256 68ffe73d926bf52646c5de5cf3b9d30bab4bcf74b5145a8f2a97c49b28a2b1cb

See more details on using hashes here.

File details

Details for the file snakeland-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: snakeland-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for snakeland-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0636de0d6682594297a20183195649ccc87c8685d26e91efbddb4fd944677708
MD5 a226e1cce566c41d1246af4f34cffe27
BLAKE2b-256 3c3f09b5dfd23e6be9a01c20a547ccf2ef158698d3a7ad8f3856a105bf3c76e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page