Skip to main content

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)

Release files for luanspaceship 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for luanspaceship 1.0.2
File Size Uploaded
luanspaceship-1.0.2.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for luanspaceship 1.0.2
File Interpreter ABI Platform
luanspaceship-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / luanspaceship-1.0.2.tar.gz

Download URL luanspaceship-1.0.2.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bd4f5b27df90a5e73a3930702550dacf186c053b0e033edfe12b7310e22156ee
BLAKE2b-256 checksum
How to use checksums
d164c995c60d050bc94c8d6ee718ffdeeba34d69b2f4447cbf48ca7fe77fa415
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / luanspaceship-1.0.2-py3-none-any.whl

Download URL luanspaceship-1.0.2-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6eac932082d340d2dacb833b363d6e0944b31924a3c33ed5adc4b957a7b62c8
BLAKE2b-256 checksum
How to use checksums
a6dc38d806a6e5626cf0f361ac8ee9d3b7289589f763a03e3623b8b925245597
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page