Skip to content

A fancy command line tool written in Python with the sole purpose of indexing strings with a configurable delimiter.

License

Notifications You must be signed in to change notification settings

Suhaybu/simple-string-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-string-indexer

The rich history behind this tool

TODO! I still have to do the readme and everything. Ignore this for now

Getting Started

Prerequisites

  • Python 2.6 or higher

Set up

  1. Clone the repository:

    git clone https://github.com/suhaybu/simple-string-indexer.git
  2. Setup a virtual environment [Optional]:

    • Initialize the venv: python3 -m venv .venv
    • Activate (Linux/MacOS): source .venv/bin/activate
    • Acrivate (Windows): .\.venv\Scripts\activate
  3. Install the depdendencies:

    pip install -r requirements.txt

Running the code

Simply run the run.py file in the directory.

	python run.py

Current tasks

✔️ Create an awesome UI design

✔️ Create logic for Indexer

✔️ Create logic for finding index of a specific word

✔️ Create logic for finding index of a specific word

✔️ Handle inputs and outputs

✔️ Create logic for clear terminal

✔️ Create logic for logging

✔️ Create logic for printing formatted input/output

❌ Implementing logging logic into functions

❌ Finish README.md

❌ Restructure the poorly structured code

Here's a sneak peak of UI design Prototype

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ █▀ █ █▀▄▀█ █▀█ █░░ █▀▀   █▀ ▀█▀ █▀█ █ █▄░█ █▀▀   █ █▄░█ █▀▄ █▀▀ ▀▄▀ █▀▀ █▀█ ┃
┃ ▄█ █ █░▀░█ █▀▀ █▄▄ ██▄   ▄█ ░█░ █▀▄ █ █░▀█ █▄█   █ █░▀█ █▄▀ ██▄ █░█ ██▄ █▀▄ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

:::::::::::::::::· Welcome user to my simple Python program! ·:::::::::::::::::
:::::::· Coded & designed by suhaybu. ASCII text https://fsymbols.com/ ·:::::::

::::::::::::::::::::::::::::::::· Your input: ·::::::::::::::::::::::::::::::::
╭─────────────────────────────────────────────────────────────────────────────╮
│ Time to put down your phone and get back to work! Enter my room code:       │
│ 4XCKWRCSG to plant a 120-minute Osmanthus with me!                          │
╰─────────────────────────────────────────────────────────────────────────────╯

::::::::::::::::::::::::::::::· Indexed Result: ·::::::::::::::::::::::::::::::
╭─────────────────────────────────────────────────────────────────────────────╮
│ [0]Time [1]to [2]put [3]down [4]your [5]phone [6]and [7]get [8]back [9]to   │
│ [10]work! [11]Enter [12]my [13]room [14]code: [15]4XCKWRCSG [16]to          │
│ [17]plant [18]a [19]120-minute [20]Osmanthus [21]with [22]me!               │
╰─────────────────────────────────────────────────────────────────────────────╯

:::::::::::::::::::::::::::::· Select an option: ·:::::::::::::::::::::::::::::
╔═════════════════════════════════════════════════════════════════════════════╗
║ 1. Find index of a specific word                                            ║
║ 2. Find word at a specific index                                            ║
║ 3. Input another String                                                     ║
║ 4. Exit                                                                     ║
╚═════════════════════════════════════════════════════════════════════════════╝

:: Enter your choice:

Credits

  • ASCII Art 🖌️ was generated using FSymbols.com
  • colorama 🎨 library used for coloring the outputs!

About

A fancy command line tool written in Python with the sole purpose of indexing strings with a configurable delimiter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages