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,
cdto the folder containing the get-pip.py file and runOn Linux/MacOS:
python3 get-pip.pyOn Windows:
py get-pip.pyFor 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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| luanspaceship-1.0.2.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|