Skip to main content

Prints an ASCII spaceship given an integer via flag '-length'

Project description

Contributors Forks Stargazers Issues MIT License


Logo

Luan Spaceship

A simple Python Command-Line Interface script that prints a variable-size spaceship!
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Installation
  3. Usage
  4. License
  5. Contact
  6. Acknowledgments

About The Project

Product Name Screen Shot

Luanspaceship is a really simple Command-Line Interface written in Python3 that prints an ASCII spaceship in function of a length given via flag. Aditionally, output can be copied into clipboard, change colors of spaceship printed (only for console visual purposes) and a couple of others functions.

This is a little project written for Science & Commit // Workshop 2022.

(back to top)

Installation

This simple project needs a few Python3 packages to run properly.

Prerequisites

  • pip (if you have already installed pip you can ignore this subsection)

    If for some reason you have not installed pip with Python3 (which would be... weird) try this:

Installing

  • Option 1: pip install

     pip install luanspaceship
    
  • Option 2: Install manually

  1. Clone the repo

    git clone https://github.com/Panchitoz1/luanspaceship.git
    
  2. Ensure setuptools package is updated:

    python3 -m pip install --upgrade setuptools
    
  3. Install using setup.py

    python3 setup.py install
    

    This should also install all package-dependences and program should run without problems.

  4. (Optional to fix 'Module error') If for some reason when run the program in terminal Python returns a Module error due to some packages not being found, try this:

    • Ensure you are in the repo directory:

      cd /path/to/repo/LuanSpaceship
      

      Once there, simply run:

      pip install -r requirements.txt
      

      and try re-running command from Step 3.

(back to top)

Usage

First of all you can type in your terminal the following command:

luanspaceship

If everything runs fine it should print an ASCII spaceship with length 5 (which is default value if -length flag is not provided).

For general purposes to print an ASCII spaceship of length <integer-number> we can simply run:

luanspaceship -length <integer-number>

Another example could be if you want to print an ASCII spaceship with length 8 and also want to copy the ASCII art result into your clipboard:

luanspaceship -length 8 -clipboard

You can also change color combinations using -colorstyle flag and/or adding some attributes/styles when being displayed with -style flag. For example:

luanspaceship -colorstyle ocean -style blink

To check all flags and functions available I recommend check short help-page running:

luanspaceship -h

Product Name Gif

(back to top)

License

Distributed under the MIT License. Check LICENSE file for more information.

(back to top)

Contact

Francisco Carrasco Varela - email: ffcarrasco@uc.cl

Project Link: https://github.com/Panchitoz1/luanspaceship

(back to top)

Acknowledgments

(back to top)

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

luanspaceship-1.0.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

luanspaceship-1.0.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file luanspaceship-1.0.2.tar.gz.

File metadata

  • Download URL: luanspaceship-1.0.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for luanspaceship-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bd4f5b27df90a5e73a3930702550dacf186c053b0e033edfe12b7310e22156ee
MD5 d02ca956e2b7b82cccdc0e9d8fbff215
BLAKE2b-256 d164c995c60d050bc94c8d6ee718ffdeeba34d69b2f4447cbf48ca7fe77fa415

See more details on using hashes here.

File details

Details for the file luanspaceship-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: luanspaceship-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for luanspaceship-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a6eac932082d340d2dacb833b363d6e0944b31924a3c33ed5adc4b957a7b62c8
MD5 6bd8e4fd90110b893373a9ad09c939d7
BLAKE2b-256 a6dc38d806a6e5626cf0f361ac8ee9d3b7289589f763a03e3623b8b925245597

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