Python Forum
Would Python be a good langue to write this program in?
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Would Python be a good langue to write this program in?
#1
Hi all,

I'm new to Python, but I do have mild experience coding in other languages. (Mainly Java.) I'm looking to build the following program:

A database collection of audio files (sound effects.) I want to be able to tag my files. For example: Explosion, Fire, War -- might be the tags on one file. The point of the application is to make it easy to search through a large amount of files. Beyond that, the only other thing the application would need to do is play audio files in a simple media player.

My concern is search time - I have over 200,000+ files. If I code in Python, would this be an issue?

Thanks for your patience in dealing with a beginner. Look forward to any advice you can give!

Mike
Reply
#2
Python will be absolutely fine for such a small database, and probably quicker and easier to develop in than Java.

Here's one of many lists of a number of well known sites that ran for years on Python (and mostly still do):

https://www.shuup.com/en/blog/25-of-the-...-websites/
I am trying to help you, really, even if it doesn't always seem that way
Reply
#3
200k+ rows in a database, plus a few tags, is a very small database.  Python would do perfectly well for a graphical interface to such a database, and if you use sqlite, you won't even need any external packages (sqlite and tkinter are bundled with every python distribution).  Playing audio might require a little more work, but you mentioned using an external program for that, and python plays nice when it comes to communicating with other processes.
Reply
#4
Thanks guys, good to know!

I overestimated how bad search times would be with the amount of files I have, :)

Curious, at what size would a database be too large for Python to handle?
Reply
#5
Well, the database is unrelated to python, so as long as you aren't actually displaying all of it at once (which wouldn't be a good idea in any language), there isn't a max size.  Sqlite is written in C, if that matters, though.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python: Regex is not good for re.search (AttributeError: 'NoneType' object has no att Melcu54 9 1,528 Jun-28-2023, 11:13 AM
Last Post: Melcu54
  Good practices with Python if Pedroski55 1 1,240 Nov-07-2021, 07:48 AM
Last Post: Gribouillis
  write a program which prints the day in english ben1122 10 4,017 Jul-25-2021, 05:55 PM
Last Post: ben1122
  Good Example for bi-directional Communication between Python and Windows (C#) raybowman 0 1,615 Nov-14-2020, 06:44 PM
Last Post: raybowman
  I have an index error inline 76 but I write the program in a way that cant reach tha abbaszandi 2 2,075 Nov-13-2020, 07:43 AM
Last Post: buran
  How to write a script to execute a program need passing additional input? larkypython 2 2,542 Nov-23-2019, 04:38 AM
Last Post: larkypython
  Help me write a Christmas Program! marienbad 3 2,391 Dec-26-2018, 12:57 PM
Last Post: marienbad
  Is the Python website good for learning Python? OnisionTheOninonBoy 18 11,341 Jan-30-2017, 09:21 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

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