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.0

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.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartcliapp-0.4.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for smartcliapp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ea9f730cb075ac6a358d5cd6f2c2f0fe894c23204d788da1af795cb7f7cab278
MD5 50b962971e0bbc1086e3ebd1b6ca6ea6
BLAKE2b-256 d66ca6fb1cda8ced04c36f0d0b6adcf887ca8d1dd0c86ce62a8b1c5444e23d69

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for smartcliapp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 158316a1cba4c783dff9d7059228cb7d922d7e3ac67b2bf94e56f65aef3419cd
MD5 917c4a125ec18bb869a9e17ecd7951b7
BLAKE2b-256 ee67232c26c16ff02760e49e9e27157c3333aca2747bf3ab15700fa0e13ea3be

See more details on using hashes here.

Supported by

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