New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

auxly

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auxly

Python library for common shell-like script tasks.

  • 0.9.0
  • PyPI
  • Socket score

Maintainers
1

|License| |Build Status|

.. __introduction:

Introduction

This project provides a Python 2.7/3.x library for common tasks especially when writing shell-like scripts. Some of the functionality overlaps with the standard library but the API is slightly modified.

The goal of this project is to leverage the straightforward, clean syntax of Python while avoiding some of the boilerplate code that might be necessary when using the standard library. Functions that overlap with the standard library are designed to do what you would reasonably expect (POLA <https://en.wikipedia.org/wiki/Principle_of_least_astonishment>__) and, when necessary, fail without throwing exceptions.

Please note when using this library that operations will fail silently. This is a deliberate design decision. However, there is often a way to check if an operation has failed and optionally throw and exception if that is desirable:

.. code:: python

auxly.filesys.copy("foo.txt", "bar") or auxly.throw() # Throws/raises exception on failure.

Auxly provides the following modules:

  • auxly <https://auxly.readthedocs.io/en/latest/#id1>__

  • auxly.filesys <https://auxly.readthedocs.io/en/latest/#auxly-filesys>__

  • auxly.shell <https://auxly.readthedocs.io/en/latest/#auxly-shell>__

  • auxly.stringy <https://auxly.readthedocs.io/en/latest/#auxly-stringy>__

  • auxly.listy <https://auxly.readthedocs.io/en/latest/#auxly-listy>__

The following are basic examples of Auxly (all examples can be found here <https://github.com/jeffrimko/Auxly/tree/master/examples>__):

  • examples/delete_pyc.py <https://github.com/jeffrimko/Auxly/blob/master/examples/delete_pyc.py>__

    • Deletes all PYC files in the project.
  • examples/guess_os.py <https://github.com/jeffrimko/Auxly/blob/master/examples/guess_os.py>__

    • Attempts to guess the host OS based on available shell commands.

Refer to the unit tests here <https://github.com/jeffrimko/Auxly/tree/master/tests>__ for additional examples.

.. __status:

Status

Currently, this project is in the development release stage. While this project is suitable for use, please note that there may be incompatibilities in new releases.

Release notes are maintained in the project changelog <https://github.com/jeffrimko/Auxly/blob/master/CHANGELOG.adoc>__.

.. __requirements:

Requirements

Auxly should run on any Python 2.7/3.x interpreter without additional dependencies.

.. __installation:

Installation

Auxly can be installed with pip using the following command: pip install auxly

Additionally, Auxly can be installed from source by running: python setup.py install

.. __documentation:

Documentation

The full documentation for this project can be found here on Read the Docs <http://auxly.readthedocs.io>__.

.. __similar:

Similar

The following projects are similar and may be worth checking out:

  • Reusables <https://github.com/cdgriffith/Reusables>__

.. |License| image:: http://img.shields.io/:license-mit-blue.svg .. |Build Status| image:: https://github.com/jeffrimko/Auxly/workflows/tests/badge.svg

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc