Prints an ASCII spaceship given an integer via flag '-length'
Project description
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
About The Project
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.
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:
-
Download the script, from https://bootstrap.pypa.io/get-pip.py
-
Open a terminal/command prompt,
cd
to the folder containing the get-pip.py file and runOn Linux/MacOS:
python3 get-pip.py
On Windows:
py get-pip.py
For more options you can also check official Python 'pip' documentation.
-
Installing
-
Option 1: pip install
pip install luanspaceship
-
Option 2: Install manually
-
Clone the repo
git clone https://github.com/Panchitoz1/luanspaceship.git
-
Ensure setuptools package is updated:
python3 -m pip install --upgrade setuptools
-
Install using setup.py
python3 setup.py install
This should also install all package-dependences and program should run without problems.
-
(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.
-
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
License
Distributed under the MIT License. Check LICENSE file for more information.
Contact
Francisco Carrasco Varela - email: ffcarrasco@uc.cl
Project Link: https://github.com/Panchitoz1/luanspaceship
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd4f5b27df90a5e73a3930702550dacf186c053b0e033edfe12b7310e22156ee |
|
MD5 | d02ca956e2b7b82cccdc0e9d8fbff215 |
|
BLAKE2b-256 | d164c995c60d050bc94c8d6ee718ffdeeba34d69b2f4447cbf48ca7fe77fa415 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6eac932082d340d2dacb833b363d6e0944b31924a3c33ed5adc4b957a7b62c8 |
|
MD5 | 6bd8e4fd90110b893373a9ad09c939d7 |
|
BLAKE2b-256 | a6dc38d806a6e5626cf0f361ac8ee9d3b7289589f763a03e3623b8b925245597 |