atm-system 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hajmehrad
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,162 @@
1
+ Metadata-Version: 2.4
2
+ Name: atm-system
3
+ Version: 1.0.0
4
+ Summary: A simple ATM (Automated Teller Machine) system module
5
+ Home-page: https://github.com/Hajmehrad/atm-system
6
+ Author: Hajmehrad
7
+ Author-email: mehrad.mehrad.mehrad1487@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.6
10
+ Classifier: Programming Language :: Python :: 3.7
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Development Status :: 4 - Beta
20
+ Classifier: Intended Audience :: Developers
21
+ Requires-Python: >=3.6
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Dynamic: author
25
+ Dynamic: author-email
26
+ Dynamic: classifier
27
+ Dynamic: description
28
+ Dynamic: description-content-type
29
+ Dynamic: home-page
30
+ Dynamic: license-file
31
+ Dynamic: requires-python
32
+ Dynamic: summary
33
+
34
+ # ATM System 🏦
35
+
36
+ یک سیستم خودپرداز (ATM) ساده و کارآمد که برای مدیریت حساب‌های بانکی طراحی شده است.
37
+
38
+ ## 🚀 نصب و اجرا (یک دستور!)
39
+
40
+ ```bash
41
+ pip install atm-system && atm-system
42
+ ```
43
+
44
+ **تمام!** برنامه شروع میشه! ✨
45
+
46
+ ---
47
+
48
+ ## 📖 نصب مرحله به مرحله
49
+
50
+ ### مرحله 1: نصب
51
+ ```bash
52
+ pip install atm-system
53
+ ```
54
+
55
+ ### مرحله 2: اجرا
56
+ ```bash
57
+ atm-system
58
+ ```
59
+
60
+ **برنامه شروع میشه!** 🎉
61
+
62
+ ---
63
+
64
+ ## ✨ ویژگی‌ها
65
+
66
+ - ✅ **مشاهده موجودی** - نمایش موجودی حساب با احراز هویت رمز
67
+ - 💰 **واریز پول** - افزودن مبلغ به حساب
68
+ - 🏦 **برداشت پول** - کسر مبلغ از حساب (با بررسی کافی بودن موجودی)
69
+ - 🔐 **تغییر رمز عبور** - امکان تغییر رمز برای امنیت بیشتر
70
+ - 🔑 **احراز هویت** - بررسی رمز عبور برای عملیات حساس
71
+
72
+ ---
73
+
74
+ ## 💻 استفاده در کد Python
75
+
76
+ ```python
77
+ from atm_system import atm_system
78
+
79
+ # اجرای ساده
80
+ atm_system()
81
+ ```
82
+
83
+ با مقادیر سفارشی:
84
+
85
+ ```python
86
+ from atm_system import atm_system
87
+
88
+ # رمز: 5678، موجودی: 5 میلیون
89
+ atm_system(password="5678", balance=5000000)
90
+ ```
91
+
92
+ ---
93
+
94
+ ## ⚙️ تنظیمات پیش‌فرض
95
+
96
+ - **رمز عبور**: `1234`
97
+ - **موجودی اولیه**: `1,000,000` ریال
98
+
99
+ ---
100
+
101
+ ## 📚 توابع جداگانه
102
+
103
+ ```python
104
+ from atm_system import check_balance, deposit, withdraw, change_password
105
+
106
+ balance = check_balance(balance=1000000, password="1234")
107
+ balance = deposit(balance=1000000)
108
+ balance = withdraw(balance=1000000, password="1234")
109
+ password = change_password(password="1234")
110
+ ```
111
+
112
+ ---
113
+
114
+ ## 🖥️ سیستم‌های پشتیبانی
115
+
116
+ - ✅ Windows
117
+ - ✅ macOS
118
+ - ✅ Linux
119
+
120
+ **نیاز:** Python 3.6 یا بالاتر
121
+
122
+ ---
123
+
124
+ ## 🆘 مشکل‌های رایج
125
+
126
+ ### `atm-system` کار نمی‌کند؟
127
+
128
+ ```bash
129
+ pip install --upgrade pip
130
+ pip install --upgrade atm-system
131
+ atm-system
132
+ ```
133
+
134
+ ### `pip not found`؟
135
+
136
+ ```bash
137
+ python -m pip install atm-system
138
+ python -m atm_system
139
+ ```
140
+
141
+ ### هنوز مشکل دارید؟
142
+
143
+ ```bash
144
+ pip uninstall atm-system -y
145
+ pip install atm-system
146
+ ```
147
+
148
+ **راهنمای کامل:** [INSTALL.md](INSTALL.md)
149
+
150
+ ---
151
+
152
+ ## 📄 لایسنس
153
+
154
+ MIT License - آزادانه استفاده کنید ✨
155
+
156
+ ---
157
+
158
+ ## 👤 نویسنده
159
+
160
+ **Hajmehrad**
161
+
162
+ **مشکلات یا پیشنهادات:** https://github.com/Hajmehrad/atm-system/issues
@@ -0,0 +1,129 @@
1
+ # ATM System 🏦
2
+
3
+ یک سیستم خودپرداز (ATM) ساده و کارآمد که برای مدیریت حساب‌های بانکی طراحی شده است.
4
+
5
+ ## 🚀 نصب و اجرا (یک دستور!)
6
+
7
+ ```bash
8
+ pip install atm-system && atm-system
9
+ ```
10
+
11
+ **تمام!** برنامه شروع میشه! ✨
12
+
13
+ ---
14
+
15
+ ## 📖 نصب مرحله به مرحله
16
+
17
+ ### مرحله 1: نصب
18
+ ```bash
19
+ pip install atm-system
20
+ ```
21
+
22
+ ### مرحله 2: اجرا
23
+ ```bash
24
+ atm-system
25
+ ```
26
+
27
+ **برنامه شروع میشه!** 🎉
28
+
29
+ ---
30
+
31
+ ## ✨ ویژگی‌ها
32
+
33
+ - ✅ **مشاهده موجودی** - نمایش موجودی حساب با احراز هویت رمز
34
+ - 💰 **واریز پول** - افزودن مبلغ به حساب
35
+ - 🏦 **برداشت پول** - کسر مبلغ از حساب (با بررسی کافی بودن موجودی)
36
+ - 🔐 **تغییر رمز عبور** - امکان تغییر رمز برای امنیت بیشتر
37
+ - 🔑 **احراز هویت** - بررسی رمز عبور برای عملیات حساس
38
+
39
+ ---
40
+
41
+ ## 💻 استفاده در کد Python
42
+
43
+ ```python
44
+ from atm_system import atm_system
45
+
46
+ # اجرای ساده
47
+ atm_system()
48
+ ```
49
+
50
+ با مقادیر سفارشی:
51
+
52
+ ```python
53
+ from atm_system import atm_system
54
+
55
+ # رمز: 5678، موجودی: 5 میلیون
56
+ atm_system(password="5678", balance=5000000)
57
+ ```
58
+
59
+ ---
60
+
61
+ ## ⚙️ تنظیمات پیش‌فرض
62
+
63
+ - **رمز عبور**: `1234`
64
+ - **موجودی اولیه**: `1,000,000` ریال
65
+
66
+ ---
67
+
68
+ ## 📚 توابع جداگانه
69
+
70
+ ```python
71
+ from atm_system import check_balance, deposit, withdraw, change_password
72
+
73
+ balance = check_balance(balance=1000000, password="1234")
74
+ balance = deposit(balance=1000000)
75
+ balance = withdraw(balance=1000000, password="1234")
76
+ password = change_password(password="1234")
77
+ ```
78
+
79
+ ---
80
+
81
+ ## 🖥️ سیستم‌های پشتیبانی
82
+
83
+ - ✅ Windows
84
+ - ✅ macOS
85
+ - ✅ Linux
86
+
87
+ **نیاز:** Python 3.6 یا بالاتر
88
+
89
+ ---
90
+
91
+ ## 🆘 مشکل‌های رایج
92
+
93
+ ### `atm-system` کار نمی‌کند؟
94
+
95
+ ```bash
96
+ pip install --upgrade pip
97
+ pip install --upgrade atm-system
98
+ atm-system
99
+ ```
100
+
101
+ ### `pip not found`؟
102
+
103
+ ```bash
104
+ python -m pip install atm-system
105
+ python -m atm_system
106
+ ```
107
+
108
+ ### هنوز مشکل دارید؟
109
+
110
+ ```bash
111
+ pip uninstall atm-system -y
112
+ pip install atm-system
113
+ ```
114
+
115
+ **راهنمای کامل:** [INSTALL.md](INSTALL.md)
116
+
117
+ ---
118
+
119
+ ## 📄 لایسنس
120
+
121
+ MIT License - آزادانه استفاده کنید ✨
122
+
123
+ ---
124
+
125
+ ## 👤 نویسنده
126
+
127
+ **Hajmehrad**
128
+
129
+ **مشکلات یا پیشنهادات:** https://github.com/Hajmehrad/atm-system/issues
@@ -0,0 +1,13 @@
1
+ """ATM System Package"""
2
+ __version__ = "1.0.0"
3
+ __author__ = "Hajmehrad"
4
+
5
+ from .atm import atm_system, check_balance, deposit, withdraw, change_password
6
+
7
+ __all__ = [
8
+ "atm_system",
9
+ "check_balance",
10
+ "deposit",
11
+ "withdraw",
12
+ "change_password",
13
+ ]
@@ -0,0 +1,85 @@
1
+ def check_balance(balance, password):
2
+ """نمایش موجودی"""
3
+ p = input("Password: ")
4
+ if p == password:
5
+ print("Your balance is:", balance)
6
+ else:
7
+ print("Wrong password !!")
8
+ return balance
9
+
10
+
11
+ def deposit(balance):
12
+ """واریز پول"""
13
+ amount = int(input("Deposit amount: "))
14
+ balance = balance + amount
15
+ print("Deposit successful.")
16
+ print("Your balance is:", balance)
17
+ return balance
18
+
19
+
20
+ def withdraw(balance, password):
21
+ """برداشت پول"""
22
+ p = input("Password: ")
23
+ if p == password:
24
+ amount = int(input("Withdrawal amount: "))
25
+ if amount <= balance:
26
+ balance = balance - amount
27
+ print("Withdrawal successful.")
28
+ print("Your balance is:", balance)
29
+ else:
30
+ print("Insufficient balance.")
31
+ else:
32
+ print("Wrong password !!")
33
+ return balance
34
+
35
+
36
+ def change_password(password):
37
+ """تغییر رمز عبور"""
38
+ p = input("Current password: ")
39
+ if p == password:
40
+ new_password = input("New password: ")
41
+ password = new_password
42
+ print("Password changed successfully.")
43
+ else:
44
+ print("Wrong password !!")
45
+ return password
46
+
47
+
48
+ def display_menu():
49
+ """نمایش منو"""
50
+ print("\n------ ATM ------")
51
+ print("1-Balance")
52
+ print("2-Deposit")
53
+ print("3-Withdraw")
54
+ print("4-Change password")
55
+ print("5-Exit")
56
+
57
+
58
+ def atm_system(password="1234", balance=1000000):
59
+ """تابع اصلی سیستم خودپرداز"""
60
+ while True:
61
+ display_menu()
62
+ choice = input("Choice: ")
63
+
64
+ if choice == "1":
65
+ balance = check_balance(balance, password)
66
+
67
+ elif choice == "2":
68
+ balance = deposit(balance)
69
+
70
+ elif choice == "3":
71
+ balance = withdraw(balance, password)
72
+
73
+ elif choice == "4":
74
+ password = change_password(password)
75
+
76
+ elif choice == "5":
77
+ print("Exiting the program.")
78
+ break
79
+
80
+ else:
81
+ print("Invalid choice. Please try again.")
82
+
83
+
84
+ if __name__ == "__main__":
85
+ atm_system()
@@ -0,0 +1,162 @@
1
+ Metadata-Version: 2.4
2
+ Name: atm-system
3
+ Version: 1.0.0
4
+ Summary: A simple ATM (Automated Teller Machine) system module
5
+ Home-page: https://github.com/Hajmehrad/atm-system
6
+ Author: Hajmehrad
7
+ Author-email: mehrad.mehrad.mehrad1487@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.6
10
+ Classifier: Programming Language :: Python :: 3.7
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Development Status :: 4 - Beta
20
+ Classifier: Intended Audience :: Developers
21
+ Requires-Python: >=3.6
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Dynamic: author
25
+ Dynamic: author-email
26
+ Dynamic: classifier
27
+ Dynamic: description
28
+ Dynamic: description-content-type
29
+ Dynamic: home-page
30
+ Dynamic: license-file
31
+ Dynamic: requires-python
32
+ Dynamic: summary
33
+
34
+ # ATM System 🏦
35
+
36
+ یک سیستم خودپرداز (ATM) ساده و کارآمد که برای مدیریت حساب‌های بانکی طراحی شده است.
37
+
38
+ ## 🚀 نصب و اجرا (یک دستور!)
39
+
40
+ ```bash
41
+ pip install atm-system && atm-system
42
+ ```
43
+
44
+ **تمام!** برنامه شروع میشه! ✨
45
+
46
+ ---
47
+
48
+ ## 📖 نصب مرحله به مرحله
49
+
50
+ ### مرحله 1: نصب
51
+ ```bash
52
+ pip install atm-system
53
+ ```
54
+
55
+ ### مرحله 2: اجرا
56
+ ```bash
57
+ atm-system
58
+ ```
59
+
60
+ **برنامه شروع میشه!** 🎉
61
+
62
+ ---
63
+
64
+ ## ✨ ویژگی‌ها
65
+
66
+ - ✅ **مشاهده موجودی** - نمایش موجودی حساب با احراز هویت رمز
67
+ - 💰 **واریز پول** - افزودن مبلغ به حساب
68
+ - 🏦 **برداشت پول** - کسر مبلغ از حساب (با بررسی کافی بودن موجودی)
69
+ - 🔐 **تغییر رمز عبور** - امکان تغییر رمز برای امنیت بیشتر
70
+ - 🔑 **احراز هویت** - بررسی رمز عبور برای عملیات حساس
71
+
72
+ ---
73
+
74
+ ## 💻 استفاده در کد Python
75
+
76
+ ```python
77
+ from atm_system import atm_system
78
+
79
+ # اجرای ساده
80
+ atm_system()
81
+ ```
82
+
83
+ با مقادیر سفارشی:
84
+
85
+ ```python
86
+ from atm_system import atm_system
87
+
88
+ # رمز: 5678، موجودی: 5 میلیون
89
+ atm_system(password="5678", balance=5000000)
90
+ ```
91
+
92
+ ---
93
+
94
+ ## ⚙️ تنظیمات پیش‌فرض
95
+
96
+ - **رمز عبور**: `1234`
97
+ - **موجودی اولیه**: `1,000,000` ریال
98
+
99
+ ---
100
+
101
+ ## 📚 توابع جداگانه
102
+
103
+ ```python
104
+ from atm_system import check_balance, deposit, withdraw, change_password
105
+
106
+ balance = check_balance(balance=1000000, password="1234")
107
+ balance = deposit(balance=1000000)
108
+ balance = withdraw(balance=1000000, password="1234")
109
+ password = change_password(password="1234")
110
+ ```
111
+
112
+ ---
113
+
114
+ ## 🖥️ سیستم‌های پشتیبانی
115
+
116
+ - ✅ Windows
117
+ - ✅ macOS
118
+ - ✅ Linux
119
+
120
+ **نیاز:** Python 3.6 یا بالاتر
121
+
122
+ ---
123
+
124
+ ## 🆘 مشکل‌های رایج
125
+
126
+ ### `atm-system` کار نمی‌کند؟
127
+
128
+ ```bash
129
+ pip install --upgrade pip
130
+ pip install --upgrade atm-system
131
+ atm-system
132
+ ```
133
+
134
+ ### `pip not found`؟
135
+
136
+ ```bash
137
+ python -m pip install atm-system
138
+ python -m atm_system
139
+ ```
140
+
141
+ ### هنوز مشکل دارید؟
142
+
143
+ ```bash
144
+ pip uninstall atm-system -y
145
+ pip install atm-system
146
+ ```
147
+
148
+ **راهنمای کامل:** [INSTALL.md](INSTALL.md)
149
+
150
+ ---
151
+
152
+ ## 📄 لایسنس
153
+
154
+ MIT License - آزادانه استفاده کنید ✨
155
+
156
+ ---
157
+
158
+ ## 👤 نویسنده
159
+
160
+ **Hajmehrad**
161
+
162
+ **مشکلات یا پیشنهادات:** https://github.com/Hajmehrad/atm-system/issues
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ setup.py
4
+ atm_system/__init__.py
5
+ atm_system/atm.py
6
+ atm_system.egg-info/PKG-INFO
7
+ atm_system.egg-info/SOURCES.txt
8
+ atm_system.egg-info/dependency_links.txt
9
+ atm_system.egg-info/entry_points.txt
10
+ atm_system.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ atm-system = atm_system.atm:atm_system
@@ -0,0 +1 @@
1
+ atm_system
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+ from setuptools import setup, find_packages
4
+
5
+ with open("README.md", "r", encoding="utf-8") as fh:
6
+ long_description = fh.read()
7
+
8
+ setup(
9
+ name="atm-system",
10
+ version="1.0.0",
11
+ author="Hajmehrad",
12
+ author_email="mehrad.mehrad.mehrad1487@gmail.com",
13
+ description="A simple ATM (Automated Teller Machine) system module",
14
+ long_description=long_description,
15
+ long_description_content_type="text/markdown",
16
+ url="https://github.com/Hajmehrad/atm-system",
17
+ packages=find_packages(),
18
+ entry_points={
19
+ 'console_scripts': [
20
+ 'atm-system=atm_system.atm:atm_system',
21
+ ],
22
+ },
23
+ classifiers=[
24
+ "Programming Language :: Python :: 3",
25
+ "Programming Language :: Python :: 3.6",
26
+ "Programming Language :: Python :: 3.7",
27
+ "Programming Language :: Python :: 3.8",
28
+ "Programming Language :: Python :: 3.9",
29
+ "Programming Language :: Python :: 3.10",
30
+ "Programming Language :: Python :: 3.11",
31
+ "Programming Language :: Python :: 3.12",
32
+ "Programming Language :: Python :: 3.13",
33
+ "License :: OSI Approved :: MIT License",
34
+ "Operating System :: OS Independent",
35
+ "Development Status :: 4 - Beta",
36
+ "Intended Audience :: Developers",
37
+ ],
38
+ python_requires=">=3.6",
39
+ include_package_data=True,
40
+ )