Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you manage script?
#15
(Oct-13-2022, 04:35 AM)kucingkembar Wrote: so, any tips, software, or idea to handle this?
I use a program that I wrote myself to manage not only code snippets but innumerable small pieces of information. It is a command line application which basically queries a small database (currently a json file). The name of the program is kno-g, so for example if I type this in a terminal

Output:
$ kno-g warnings
The program shows me a list of all the notes that contain the word 'warnings'. In this case there are only 2 notes as you can see in the attached screenshot.

Then I can choose to view the note or to edit it, which opens a text editor to do so and I see the contents of the note.

Each note has a first line with a question, which is used to create the list of notes to choose from, and it has a body, the answer to the question. For example here is one note (in french, the question is how to remove all warnings from python)

Output:
Comment supprimer tous les warnings de python ? mettre tout en haut import warnings warnings.filterwarnings("ignore") aussi en ligne de commande: python -W ignore
The search engine is extremely simple: for every word in the notes, the program keeps a reference of all the notes that contain this word.

I have been using this program for many years, I use it every day and as simple as it is, it saved me a lot of time and efforts.
kucingkembar likes this post

Attached Files

Thumbnail(s)
   
Reply


Messages In This Thread
How do you manage script? - by kucingkembar - Oct-13-2022, 04:35 AM
RE: How do you manage script? - by perfringo - Oct-13-2022, 06:56 AM
RE: How do you manage script? - by Larz60+ - Oct-13-2022, 06:57 AM
RE: How do you manage script? - by kucingkembar - Oct-13-2022, 04:05 PM
RE: How do you manage script? - by rob101 - Oct-13-2022, 08:44 AM
RE: How do you manage script? - by perfringo - Oct-13-2022, 09:01 AM
RE: How do you manage script? - by snippsat - Oct-13-2022, 10:14 AM
RE: How do you manage script? - by kucingkembar - Oct-13-2022, 04:01 PM
RE: How do you manage script? - by kucingkembar - Oct-13-2022, 04:07 PM
RE: How do you manage script? - by kucingkembar - Oct-13-2022, 04:11 PM
RE: How do you manage script? - by kucingkembar - Oct-13-2022, 06:34 PM
RE: How do you manage script? - by rob101 - Oct-13-2022, 07:04 PM
RE: How do you manage script? - by perfringo - Oct-14-2022, 06:16 AM
RE: How do you manage script? - by deanhystad - Oct-14-2022, 08:57 PM
RE: How do you manage script? - by Gribouillis - Oct-15-2022, 06:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python manage variables across project level mg24 1 976 Nov-12-2022, 05:01 AM
Last Post: deanhystad
  Python, how to manage multiple data in list or dictionary with calculations and FIFO Mikeardy 8 2,764 Dec-31-2021, 07:47 AM
Last Post: Mikeardy
  how to manage crypto trading flooding data from exchange servers Mikeardy 0 1,287 Dec-26-2021, 08:31 PM
Last Post: Mikeardy
  API Gateway to manage multiple API's get put data robsuttonjr 2 2,604 Mar-09-2021, 04:09 PM
Last Post: robsuttonjr
  Manage user names in TRAC susja 3 6,453 Dec-06-2020, 09:34 PM
Last Post: susja
  How to manage multiple datasets in Python ThePhantom 2 1,982 May-06-2020, 12:17 AM
Last Post: ThePhantom
  how to manage an input() rodrigoH 1 1,699 Mar-16-2020, 12:24 AM
Last Post: jefsummers
  Easier way to manage dependencies? Tylersuard 2 2,417 Jan-01-2020, 09:19 PM
Last Post: Tylersuard

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020