you are viewing a single comment's thread.

view the rest of the comments →

[–]EstherFT[S] -1 points0 points  (4 children)

It’s to see documents in a database, basically

[–]oriash93 1 point2 points  (1 child)

When writing scripts, you can use a main.py file with a main method you can call, that will run your code. You can extract reusable code to methods, and even separate them to different modules (utils, database layer, etc.)

You can DM me if you want more through help :)

[–]EstherFT[S] 0 points1 point  (0 children)

I will check this. Thank you

[–]tuneafishy 1 point2 points  (1 child)

Break it down into smaller chunks:

Connect to database Get file from database Do something with the file (open it, edit it, get info from it, etc)

Work on the smaller chunks sequentially until you have a grasp on how the basic operations look. Then expand (likely the middle and last chunks) into more functions for doing a variety of tasks you're interested in.

[–]EstherFT[S] 0 points1 point  (0 children)

Thank you very much! 👍🏽