Data Manager
How to manage daily selling data using Python |
If you are thinking of running a business or starting a business, you must know that your business will need a data manager to collect and store the daily selling data that will store your daily selling data and then if you need those data later, then data manager will show you by retrieving your selling datas. You can save your daily selling data in a file with help of the method shown in this blog and retrieve that data next time you need.
Now if you can create it yourself then you will not lose data but there is no guarantee that you will not lose data if you use any third party application. Because these third party application can take access to your data and device. You can easily create such a data manager with the help of Python Programming.
In this blog you can get all the source codes and video tutorial so no worries. If you are just starting to learn python or if you want to create a python project then this blog can help you too. In this blog you will find complete guide from downloading python to converting .py to .exe file. And yes if you want to convert form .py file to .exe file then you need to install pyinstaller. you cannot convert to .exe file without pyinstaller. Everything that has been shown to be installed in this blog in downloaded for free, so there is nothing to buy here.
Now you also need to know that you don't just have to download python, you need a python text editor with python. Now you can use VS Code, Pycharm, etc. as text editor. I will use Pycharm as text editor in this blog. If you use another text editor, there is no problem, the code is the some for all editors.
With the help of this data manager you can store daily orders details, customers details Etc. information in a file. For example- When the order of a product is coming, selection regular customers, storing its data at an address, the cost of the product, the customer's mobile number, etc. you can manage all such data. This way you can add more features to your liking, such as delivery cost, salary of the delivery man, total cost and many more.
All the big multinational companies in the world have created a data manager to keep their customer and order details but their data manager is of higher quality which is made by professional software developers.
So let's get started.
How to download python in your system?
=> Go to Chrome > Type "Download python" > Install the new version or you can install any version of python (Community Edition).
How to download pycharm in your system?
=> Go to Chrome > type "Install Pycharm" > Install it.
How to create a new python file in pycharm?
=> Watch Video Tutorial.
Source Code:
def getdate():
import datetime
return datetime.datetime.now()
print("Data Manager Created By Raj")
def data():
i1 = int(input("Enter 1 For Add New Order\nEnter 2 For Retrieve Data\nEnter Here: "))
if i1 == 1:
i2 = input("Customer Name: ")
i3 = input("Product Name: ")
i4 = input("Address: ")
i5 = int(input("Price: "))
with open("Productdata.txt", "a") as f:
f.write(str([str(getdate())])+": "
+"Customer Name: "+i2+"\n"
+"Product Name: "
+i3+"\n"
+"Address: "
+i4+"\n"+"Price: "
+str(i5)+"\n")
print("Store Data successfully!!")
elif i1 == 2:
with open("Productdata.txt") as f:
print(f.read())
return data()
print(data())
# Your Data Manager is ready!!How to install pyinstaller?
=> Right click on the windows button > Open windows PowerShell > Typr "pip install pyinstaller" > Enter.
How to convert .py file to .exe file?
=> Go to the directory where your '.py' file is located > Press shift and simultaneously Right-click at the same location > Open PowerShell window here > Type pyinstaller --onefile-- w "filename.py" > If this process complete > Close the PowerShell window > Open 'dist' file > Here you can see your ".exe" file.
You can convert .exe file from .py file to .exe file and run it on multiple devices. And here is an important thing to say, this .exe file you can only run in the computer system it can not be run on any mobile system because the .exe file is not installed on the mobile phone and the .exe file in not open.
You can also see the project of making calculator in python by clicking on this link: Calculator.py
You can create programs that use other functions and code. ex: This program also created using try and exception function or you can use list function, etc.
This video tutorial is created by 2x time format you can slow it and watch it.
I hope this blog will help you.
Keep support, Do share & write a comment below.