Skip to main content

Useful Python3 and bash shell scripts for macOS/BSD and *NIX. Useful to me, at any rate. YMMV.

Project description

status buildstatus codecov pypiversion pyversions licence

Replaces the old Scripnix0 project which had grown crufty and was not macOS-friendly.

Motivation

Scripnix was born during my Linux server admin days when I wanted all of my aliases and scriplets to follow me from machine to machine. Packaging everything together made installing and keeping up-to-date that much easier. Writing it was also a bash scripting learning exercise, although I soon grew to loathe space-containing-filenames and all of the quoting that implied.

As I moved more to MacOS, the BSD version of most commands clashed with the GNU/Linux versions that Scripnix assumed. Still wanting those handy aliases and scriplets on MacOS, I resurrected Scripnix, but with many more of the commands written in Python, and with Homebrew-supplied GNU versions of my favourite utilities. The Python rewrite sidestepped much of the silly bash quoting and syntax, and made testing practical.

Licence

Licensed under the GNU General Public License, version 3. Refer to the attached LICENSE file or see http://www.gnu.org/licenses/ for details.

Change Log

The current version is 0.1.11. Scripnix is semver-ish in its versioning scheme.

Scripnix is currently an alpha release, so expect many many breaking changes. Once ready for prime time, the major version number will jump to 2 to reflect that this is actually the second incarnation of Scripnix.

Installation

Following installation using one of the methods below, you may also want to run the install-scripnix command as the root user to setup the system-wide configuration. Any other users that also wish to use Scripnix should also run that command.

The install-scripnix command will also suggest changes to your ~/.bashrc or ~/.profile files to persist Scripnix in your environment. It will also suggest changes to the /etc/sudoers file (vi visudo) so that the Scripnix commands can be run via sudo when necessary.

Homebrew (macOS)

On macOS, Homebrew will take care of installing any dependencies, including Python 3.

brew tap yukondude/tap
brew install scripnix
install-scripnix

PyPI (POSIX)

On *NIX, you will first need to install Python 3.3 (or higher) using your preferred method.

pip3 install scripnix
install-scripnix

Development Setup

  1. Install Scripnix, as above, so that all of its dependencies are available.

  2. Create a Python 3 virtualenv for Scripnix: mkvirtualenv --python=$(which python3) Scripnix

  3. Clone the Scripnix repo: git clone https://github.com/yukondude/Scripnix.git

  4. Install dependencies: pip install -r requirements.txt -r requirements-dev.txt -r requirements-test.txt

  5. Install the project in development mode: ./setup.py develop

  6. Run the unit tests to make sure everything is copacetic: ./setup.py test

  7. Pour a snifter of Martell XO and light up a Bolivar Belicoso.

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

scripnix-0.1.11.tar.gz (42.8 kB view details)

Uploaded Source

Built Distribution

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

scripnix-0.1.11-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file scripnix-0.1.11.tar.gz.

File metadata

  • Download URL: scripnix-0.1.11.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scripnix-0.1.11.tar.gz
Algorithm Hash digest
SHA256 db92e98a03b8432fb658c3442c3ece8f3437d0743090f35d775c5a4957dcd2eb
MD5 b5e6e402ff11d757b077b9a414483a34
BLAKE2b-256 54cb5ee2e568343d84484d59141f1465b4b3c3ae783741c94357a6374a4d404f

See more details on using hashes here.

File details

Details for the file scripnix-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for scripnix-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4ad211c778519549f671844c4bd734c810488bab15e072b0fcf83cee89247b6c
MD5 4c486a341f7b47ed09834256b9725af8
BLAKE2b-256 5afdb7a63b0e3c1ab6f78b2f9f65438f03850073cd9869abd7da6dd5d42cafcf

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