Skip to main content

'Cross-platform library of tools for creating console applications, based on the click library.'

Project description

smartcliapp


GitHub release (latest by date) PyPI - Downloads GitHub top language PyPI GitHub PyPI - Format


Short Description:

smartcliapp - Cross-platform library of tools for creating console applications, based on the click library.


Author and developer: A.A. Suvorov

smartlegiondev@gmail.com


Supported:

  • Linux: All.
  • Windows: 7/8/10.
  • Termux (Android).

What's new?

smartcliapp v0.4.1

Warning!

The package is under active development, so new versions may not be compatible with the old ones.


Description:

smartcliapp - Cross-platform library of tools for creating console applications, based on the click library.

Use a variety of out-of-the-box tools to create console applications.

Use click to develop console applications.

Possibilities:

  • Displays the title and footer of the application at startup and shutdown. In the center of the console.

  • Display of name, description, copyright, site address in your application.

  • Launch the default browser from the console to go to the specified URL, or to your site.

  • Storing meta information about your application in one place.

  • Request for action from the user with an instant response to his input without confirmation, consent, refusal, exit from the application (yes/no/exit).

  • Various input methods, including non-display input for passwords.

  • Operation status output (Ok!/Error!).

  • Different ways of displaying information (normal, in the center of the console with filling with characters, in a pager).

  • Top-level ready-made classes containing the necessary tools.

  • Factory for creating objects.

  • Use Informer to display meta information.

  • Use ClickMan as a toolbox (Printer, InputMan, StatusMan, ActionMan, Launcher).

  • Use Factory to create objects individually.


Help:

Install:

  • pip install smartcliapp

Use:

from smartcliapp import Informer, CliManager

class CliMan(Informer):
    tools = CliManager()
    name = 'App Name'
    title = 'App title'
    description = 'App Description'
    copyright = 'App copyright'
    url = 'app url'
    msg = ''
    version = '0.0.0'

Disclaimer of liability:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright:

--------------------------------------------------------
Licensed under the terms of the BSD 3-Clause License
(see LICENSE for details).
Copyright © 2018-2024, A.A. Suvorov
All rights reserved.
--------------------------------------------------------

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

smartcliapp-0.4.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

smartcliapp-0.4.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file smartcliapp-0.4.1.tar.gz.

File metadata

  • Download URL: smartcliapp-0.4.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for smartcliapp-0.4.1.tar.gz
Algorithm Hash digest
SHA256 37a7806d62c20258122833c4a1eb106169ae0d3e07fc819962f861b7c259b0c0
MD5 26fec01b0ae423b27f43c11d6684a7f4
BLAKE2b-256 d961d6c91d21e48cf51b30c8ba0b830f38de1b8397c4144f56b42f220d8656ce

See more details on using hashes here.

File details

Details for the file smartcliapp-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: smartcliapp-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for smartcliapp-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 072398854475f0721661deac84cee28d4ca84a505592a63c78e391a69a28ff8e
MD5 108b9266737b703341c109d6dad32b5c
BLAKE2b-256 102d66481d623a53017047ed56d1fd76102c459b799fb5d0f06c9f1c8f4a67e5

See more details on using hashes here.

Supported by

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