Skip to main content

All Questions

Tagged with
5 votes
1 answer
3k views

Student report card management Python program

The program is designed to take data from a MySQL database, using mysql-connector-python, and print it as a table in Python using the texttable module. The program also plots charts based on the data ...
Random Person's user avatar
2 votes
2 answers
146 views

Receive data from SQL and CSV and send it to MySQL database using Python

Details: I have a code, which does the following: Get data from CSV and insert it into MySQL table Get data from SQL Server and insert it into MySQL table Run this code every 240 seconds - to refresh ...
DeveloperLV's user avatar
5 votes
1 answer
153 views

Lastest version of my Blackjack game

This is the latest version of my Blackjack game that uses a MySQL database to store user info. I did everything I was recommended in my previous post, added a ranking system and also fixed a bug where ...
Maria Laura's user avatar
3 votes
1 answer
192 views

Blackjack game with database - follow-up

This is a follow-up to my ex-posted Blackjack game that uses a MySQL database to store the accounts and user's money. I tried splitting display_info() a bit, I also ...
Maria Laura's user avatar
4 votes
1 answer
564 views

Blackjack game with database

This is the latest version of my Blackjack game and I did a quite big update to it. Now you can make an account that is saved in the MySQL database and you can bet money that are also saved in the ...
Maria Laura's user avatar
4 votes
1 answer
295 views

Registration and login script

This is a registration and login script I have made in Python 3. It uses a MySQL database. In the future I might use it with my Blackjack game and add a row called ...
Maria Laura's user avatar
-3 votes
1 answer
65 views

3 tables in SQL [closed]

Lets say i have 3 tables: users, posts and comments. ...
busuu's user avatar
  • 97
3 votes
1 answer
5k views

MySQL queries with try-except error handling

I have this function that I have written, that gets passed a row of data from a mysql function. The function then uses a try-except block to get some a list of values depending on a value within the ...
mp252's user avatar
  • 507
5 votes
1 answer
954 views

Inserting products scraped from the web into a database

I am trying to speed up the runtime of my program as the API can make calls. However after adding the inserts to a database 3 mins turns in 7 mins after 180 API calls, which can be one a second. How ...
Ben's user avatar
  • 163
5 votes
1 answer
756 views

Impyla parse user args into SQL query

I feel like there must be a better way to do the following. I would really appreciate any feedback/pointers so that I can improve my code and skills (or lack thereof!). The goal is to allow users to ...
SummerEla's user avatar
  • 153
3 votes
2 answers
2k views

Django ListView with MySQL query for the queryset

(Note: Even if you don't know Django, it's probably the query that needs work anyway, so you probably don't need to know Django/Python) I have a ListView that ...
ZAD-Man's user avatar
  • 247
3 votes
1 answer
281 views

Monthly rollover system

I have learned a little Python for a few projects at work. This is my first finished application and I was hoping someone would take a look at it. I would love some tips on the mistakes I've made. <...
xcrx's user avatar
  • 31