pycersi 2.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,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Subhra Chakraborti
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,2 @@
1
+ #PyCersi/__init__.py
2
+ import Modules.pycersi as pycersi
@@ -0,0 +1,323 @@
1
+ """
2
+ DEVELOPED BY SUBHRA CHAKRABORTI
3
+ Last Update: 25th August 2024
4
+ Version: v.1.beta
5
+
6
+ Welcome to PyCersi!
7
+ I’ve designed it with careful consideration of user experience.
8
+ PyCersi contains a wealth of useful number-checking programs.
9
+ Feel free to utilize it to save your precious time. 😊
10
+ """
11
+
12
+ #Math Module is Required.
13
+ import math as m
14
+ pi = m.pi
15
+ e = m.e
16
+
17
+ #Searchers Functions.
18
+ def fibo(n):
19
+ a, b, c = 0, 1, 0
20
+ print(a)
21
+ while c<=n:
22
+ c = a + b
23
+ print(b)
24
+ a,b = b,c
25
+ if c > n:
26
+ break
27
+ def floyd(rows):
28
+ n = 1
29
+ print("Floyd's Triangle")
30
+ for i in range(1, rows + 1):
31
+ for j in range(1, i + 1):
32
+ print(n, end = ' ')
33
+ n = n + 1
34
+ print()
35
+ def gcd(list1):
36
+ return m.gcd(*list1)
37
+ def lcm(list1):
38
+ return m.lcm(*list1)
39
+
40
+ #Associated Functions.
41
+ def digirev(n):
42
+ s = 0
43
+ while n > 0:
44
+ d = n % 10
45
+ n = n // 10
46
+ s = s*10 + d
47
+ return s
48
+ def digipro(n):
49
+ s = 0
50
+ while n > 0:
51
+ d = n % 10
52
+ n = n // 10
53
+ s = s * d
54
+ return s
55
+ def digisum(n):
56
+ s = 0
57
+ while n > 0:
58
+ d = n % 10
59
+ n = n // 10
60
+ s = s + d
61
+ return s
62
+ def numSquareSum(n):
63
+ squareSum = 0
64
+ while n:
65
+ squareSum += (n % 10) ** 2
66
+ n = n // 10
67
+ return squareSum
68
+
69
+ #Number Checkers Functions.
70
+ def isabundant(n):
71
+ sum = 0
72
+ for i in range(n):
73
+ if(n%i == 0):
74
+ sum += i
75
+ if(sum > n):
76
+ return True
77
+ else:
78
+ return False
79
+ def isarmstrong(n):
80
+ s = str(n)
81
+ l = len(s)
82
+ o = n
83
+ sum = 0
84
+ while n > 0:
85
+ d = n % 10
86
+ n = n // 10
87
+ sum = sum + d**l
88
+ if sum == o:
89
+ return True
90
+ else:
91
+ return False
92
+ def isautomorphic(n):
93
+ o = n**2
94
+ d = str(o)
95
+ c = str(n)
96
+ if (d.endswith(c)):
97
+ return True
98
+ else :
99
+ return False
100
+ def isbuzz(n):
101
+ if n % 10 == 7 or n % 7 == 0:
102
+ return True
103
+ else:
104
+ return False
105
+ def iscircularprime(n):
106
+ l = len(n)
107
+ num = int(n)
108
+ s = 0
109
+ i = 0
110
+ while i < l:
111
+ rem = num % 10
112
+ num = num // 10
113
+ num = (rem * (10 ** (l - 1))) + num
114
+ if isprime(num):
115
+ s += 1
116
+ i += 1
117
+ if s == l:
118
+ return True
119
+ else:
120
+ return False
121
+ def iscurzon(n):
122
+ p1 = 2**n + 1
123
+ p2 = 2 * n + 1
124
+ if p1 % p2 == 0:
125
+ return True
126
+ else:
127
+ return False
128
+ def iscomposite(n):
129
+ if isprime(n):
130
+ return False
131
+ else:
132
+ return True
133
+ def iscoprime(nlist):
134
+ if gcd(nlist) == 1:
135
+ return True
136
+ else:
137
+ return False
138
+ def isdisarium(n):
139
+ cop, s = n, 0
140
+ while n > 0:
141
+ num = str(n)
142
+ d = n % 10
143
+ s += d**len(num)
144
+ n = n // 10
145
+ if s == cop:
146
+ return True
147
+ else:
148
+ return False
149
+ def isdudeney(n):
150
+ if digisum(n) == m.cbrt(n):
151
+ return True
152
+ else:
153
+ return False
154
+ def isduck(n):
155
+ num = str(n)
156
+ num = num.lstrip('0')
157
+ return '0' in num
158
+ def iseven(n):
159
+ return n % 2 == 0
160
+ def ishappy(n):
161
+ slow, fast = n, n
162
+ while True:
163
+ slow = numSquareSum(slow)
164
+ fast = numSquareSum(numSquareSum(fast))
165
+ if slow != fast:
166
+ continue
167
+ else:
168
+ break
169
+ return slow == 1
170
+ def isharshad(n):
171
+ s = 0
172
+ temp = n
173
+ while temp > 0:
174
+ s += temp % 10
175
+ temp //= 10
176
+ return n % s == 0
177
+ def isheteromecic(n):
178
+ return isoblong(n)
179
+ def iskrishnamurthy(n):
180
+ o = n
181
+ Sum =0
182
+ while(n>0):
183
+ a = n%10
184
+ fact = 1
185
+ for i in range(1, a+1):
186
+ fact = fact * i
187
+ Sum = Sum + fact
188
+ n = n//10
189
+ if(Sum == o):
190
+ return True
191
+ else:
192
+ return False
193
+ def ismagic(n):
194
+ return n % 9 == 1
195
+ def isneon(n):
196
+ if digisum(n*n) == n:
197
+ return True
198
+ else:
199
+ return False
200
+ def isniven(n):
201
+ return isharshad(n)
202
+ def isoblong(n):
203
+ return ispronic(n)
204
+ def isodd(n):
205
+ return iseven(n+1)
206
+ def ispalindrome(n):
207
+ if digirev(n) == n:
208
+ return True
209
+ else:
210
+ return False
211
+ def isperfect(n):
212
+ s = 0
213
+ for i in range(1, n):
214
+ if n % i == 0:
215
+ s += i
216
+ if s == n:
217
+ return True
218
+ else:
219
+ return False
220
+ def isprime(n):
221
+ c = 0
222
+ for i in range(2,(n//2)+1):
223
+ if n % i == 0:
224
+ c += 1
225
+ break
226
+ if c == 0:
227
+ return True
228
+ else:
229
+ return False
230
+ def ispronic(n):
231
+ for i in range():
232
+ if i * (i + 1) == n:
233
+ return True
234
+ else:
235
+ return False
236
+ def issunny(n):
237
+ o = n+1
238
+ if m.sqrt(o) == int(m.sqrt(o)):
239
+ return True
240
+ else:
241
+ return False
242
+ def ispecial(n):
243
+ if (digisum(n)+digipro(n)) == n:
244
+ return True
245
+ else:
246
+ return False
247
+ def isspy(n):
248
+ if digisum(n) == digipro(n):
249
+ return True
250
+ else:
251
+ return False
252
+ def istwinprime(n,m):
253
+ if isprime(n) and isprime(m):
254
+ if abs(n-m) == 2:
255
+ return True
256
+ else:
257
+ return False
258
+ else:
259
+ return False
260
+ def istwistedprime(n):
261
+ if isprime(n) and isprime(digirev(n)):
262
+ return True
263
+ else:
264
+ return False
265
+ def isunique(n):
266
+ ld = n % 10
267
+ while n > 0:
268
+ digit = n % 10
269
+ if digit == ld:
270
+ return False
271
+ n //= 10
272
+ return True
273
+ def istech(n):
274
+ digit = len(str(n))
275
+ if digit % 2 != 0:
276
+ return False
277
+ half = digit // 2
278
+ first = n // 10**half
279
+ second = n % 10**half
280
+ tsum = first + second
281
+ square = tsum**2
282
+ return square == n
283
+ def isugly(N):
284
+ while N % 2 == 0:
285
+ N //= 2
286
+ while N % 3 == 0:
287
+ N //= 3
288
+ while N % 5 == 0:
289
+ N //= 5
290
+ return N == 1
291
+
292
+ #Mathematical Functions
293
+ def digwords():
294
+ if num == 0:
295
+ return "zero"
296
+ ones = ["", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"]
297
+ teens = ["Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen"]
298
+ tens = ["", "", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"]
299
+ words = ""
300
+ if num >= 1000:
301
+ words += ones[num // 1000] + " Thousand "
302
+ num %= 1000
303
+ if num >= 100:
304
+ words += ones[num // 100] + " Hundred "
305
+ num %= 100
306
+ if 10 <= num <= 19:
307
+ words += teens[num - 10] + " "
308
+ num = 0
309
+ elif num >= 20:
310
+ words += tens[num // 10] + " "
311
+ num %= 10
312
+ if num >= 1:
313
+ words += ones[num] + " "
314
+ return words.strip()
315
+
316
+ def fact(n):
317
+ return m.factorial(n)
318
+ def factor(n):
319
+ l = list()
320
+ for i in range(2,(n//2)+1):
321
+ if n % i == 0:
322
+ l.append(i)
323
+ return l
pycersi-2.0.0/PKG-INFO ADDED
@@ -0,0 +1,170 @@
1
+ Metadata-Version: 2.1
2
+ Name: pycersi
3
+ Version: 2.0.0
4
+ Summary: A Great Python Library by Subhra Chakraborti
5
+ Home-page: https://github.com/subhrachakraborti/PyCersi
6
+ Author: Subhra Chakraborti
7
+ Author-email: mail@subhrachakraborti.com
8
+ License: MIT
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >3.5
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE.txt
15
+
16
+ # PyCersi
17
+
18
+ ![License](https://img.shields.io/badge/License-MIT-green.svg)
19
+ ![Python Versions](https://img.shields.io/pypi/pyversions/sub-py-library)
20
+
21
+ ##### DEVELOPED BY SUBHRA CHAKRABORTI
22
+
23
+ ##### LAST UPDATE: 25TH AUGUST 2024
24
+
25
+ ##### VERSION: 2.0.0
26
+
27
+ ## Overview
28
+
29
+ PyCersi is a simple Python library that provides essential tools for [describe the functionality of your library]. It is easy to use, lightweight, and can be integrated into various Python projects.
30
+
31
+ ## Features
32
+
33
+ PyCersi offers a collection of number-related utilities that can simplify common mathematical tasks:
34
+
35
+ - **Searchers**
36
+ - `Fibonacci Series Program`
37
+ - `Floyd Triangle Program`
38
+ - `Greatest Common Divisor Program`
39
+ - `Least Common Multiple Program`
40
+ - **Number Property Checkers**
41
+
42
+ - `Abundant Number Checker`
43
+ - `Armstrong Number Checker`
44
+ - `Automorphic Number Checker`
45
+ - `Buzz Number Checker`
46
+ - `Circular Prime Number Checker`
47
+ - `Curzon Number Checker`
48
+ - `Composite Number Checker`
49
+ - `CoPrime Number Checker`
50
+ - `Disarium Number Checker`
51
+ - `Dudeney Number Checker`
52
+ - `Duck Number Checker`
53
+ - `Even Number Checker`
54
+ - `Happy Number Checker`
55
+ - `Harshad Number Checker`
56
+ - `Heteromecic Number Checker`
57
+ - `Krishnamurthy Number Checker`
58
+ - `Magic Number Checker`
59
+ - `Neon Number Checker`
60
+ - `Niven Number Checker`
61
+ - `Oblong Number Checker`
62
+ - `Odd Number Checker`
63
+ - `Palindrome Number Checker`
64
+ - `Perfect Number Checker`
65
+ - `Prime Number Checker`
66
+ - `Pronic Number Checker`
67
+ - `Sunny Number Checker`
68
+ - `Special Number Checker`
69
+ - `Spy Number Checker`
70
+ - `Twin Prime Number Checker`
71
+ - `Twisted Prime Checker`
72
+ - `Unique Number Checker`
73
+ - `Tech Number Checker`
74
+ - `Ugly Number Checker`
75
+
76
+ - **Mathematical Functions**
77
+ - `Digit to Word Converter`
78
+ - `Factorial Calculator`
79
+ - `Factors Calculator`
80
+
81
+ These functions are designed to help you perform common number-related operations efficiently and can be easily integrated into larger projects.
82
+
83
+ ## Installation
84
+
85
+ PyCersi is available on PyPI and can be installed using `pip` on various platforms including Windows, macOS, and Linux.
86
+
87
+ ### Windows
88
+
89
+ 1. **Install Python**: Make sure Python is installed on your system. You can download it from the official [Python website](https://www.python.org/downloads/).
90
+ 2. **Open Command Prompt**: Press `Win + R`, type `cmd`, and hit Enter.
91
+ 3. **Run the pip command**:
92
+
93
+ ```bash
94
+ pip install pycersi
95
+ ```
96
+
97
+ ### macOS
98
+
99
+ 1. **Install Python**: Ensure Python is installed. You can use Homebrew to install it:
100
+
101
+ ```bash
102
+ brew install python
103
+ ```
104
+
105
+ 2. **Open Terminal**: You can find Terminal in Applications > Utilities.
106
+
107
+ ```bash
108
+ pip3 install pycersi
109
+ ```
110
+
111
+ ### Linux (Ubuntu/Debian-based)
112
+
113
+ 1. **Update Packages**:
114
+
115
+ ```bash
116
+ sudo apt update
117
+ ```
118
+
119
+ 2. **Install Python and pip**:
120
+
121
+ ```bash
122
+ sudo apt install python3 python3-pip
123
+ ```
124
+
125
+ 3. **Run the pip command**:
126
+
127
+ ```bash
128
+ pip3 install pycersi
129
+ ```
130
+
131
+ ## Using
132
+
133
+ 1. For using any _searchers_ functions from PyCersi module, use:
134
+ `pycersi.<name>(limit)`.
135
+
136
+ - Example: `pycersi.fibo(limit)`
137
+
138
+ 2. For using any _checker_ functions from PyCersi module, use:
139
+ `pycersi.is<name>(value)`.
140
+
141
+ - Example: `pycersi.issunny(value)`
142
+
143
+ 3. For using any _mathematical_ function from PyCersi module, use:
144
+ `pycersi.cal<name>(value)`.
145
+
146
+ - Example: `pycesi.calfact(value)`
147
+
148
+ ## Contributing
149
+
150
+ I welcome contributions to the project! If you want to contribute, please follow these steps:
151
+
152
+ Fork the repository.
153
+
154
+ 1. Create a new branch (`git checkout -b feature-branch`).
155
+ 2. Make your changes and commit them (`git commit -m 'Add some feature'`).
156
+ 3. Push to the branch (`git push origin feature-branch`).
157
+ 4. Create a pull request.
158
+ Please make sure your code follows the project's coding standards and includes tests.
159
+
160
+ ## License
161
+
162
+ This project is licensed under the MIT License - see the [LICENSE](https://www.github.com/subhrachakraborti/PyCersi/) file for details.
163
+
164
+ ## Contact
165
+
166
+ If you have any questions, feel free to open an issue or contact me directly at [mail@subhrachakraborti](mailto:mail@subhrachakraborti.com).
167
+
168
+ ## Acknowledgments
169
+
170
+ [Math Library]
@@ -0,0 +1,155 @@
1
+ # PyCersi
2
+
3
+ ![License](https://img.shields.io/badge/License-MIT-green.svg)
4
+ ![Python Versions](https://img.shields.io/pypi/pyversions/sub-py-library)
5
+
6
+ ##### DEVELOPED BY SUBHRA CHAKRABORTI
7
+
8
+ ##### LAST UPDATE: 25TH AUGUST 2024
9
+
10
+ ##### VERSION: 2.0.0
11
+
12
+ ## Overview
13
+
14
+ PyCersi is a simple Python library that provides essential tools for [describe the functionality of your library]. It is easy to use, lightweight, and can be integrated into various Python projects.
15
+
16
+ ## Features
17
+
18
+ PyCersi offers a collection of number-related utilities that can simplify common mathematical tasks:
19
+
20
+ - **Searchers**
21
+ - `Fibonacci Series Program`
22
+ - `Floyd Triangle Program`
23
+ - `Greatest Common Divisor Program`
24
+ - `Least Common Multiple Program`
25
+ - **Number Property Checkers**
26
+
27
+ - `Abundant Number Checker`
28
+ - `Armstrong Number Checker`
29
+ - `Automorphic Number Checker`
30
+ - `Buzz Number Checker`
31
+ - `Circular Prime Number Checker`
32
+ - `Curzon Number Checker`
33
+ - `Composite Number Checker`
34
+ - `CoPrime Number Checker`
35
+ - `Disarium Number Checker`
36
+ - `Dudeney Number Checker`
37
+ - `Duck Number Checker`
38
+ - `Even Number Checker`
39
+ - `Happy Number Checker`
40
+ - `Harshad Number Checker`
41
+ - `Heteromecic Number Checker`
42
+ - `Krishnamurthy Number Checker`
43
+ - `Magic Number Checker`
44
+ - `Neon Number Checker`
45
+ - `Niven Number Checker`
46
+ - `Oblong Number Checker`
47
+ - `Odd Number Checker`
48
+ - `Palindrome Number Checker`
49
+ - `Perfect Number Checker`
50
+ - `Prime Number Checker`
51
+ - `Pronic Number Checker`
52
+ - `Sunny Number Checker`
53
+ - `Special Number Checker`
54
+ - `Spy Number Checker`
55
+ - `Twin Prime Number Checker`
56
+ - `Twisted Prime Checker`
57
+ - `Unique Number Checker`
58
+ - `Tech Number Checker`
59
+ - `Ugly Number Checker`
60
+
61
+ - **Mathematical Functions**
62
+ - `Digit to Word Converter`
63
+ - `Factorial Calculator`
64
+ - `Factors Calculator`
65
+
66
+ These functions are designed to help you perform common number-related operations efficiently and can be easily integrated into larger projects.
67
+
68
+ ## Installation
69
+
70
+ PyCersi is available on PyPI and can be installed using `pip` on various platforms including Windows, macOS, and Linux.
71
+
72
+ ### Windows
73
+
74
+ 1. **Install Python**: Make sure Python is installed on your system. You can download it from the official [Python website](https://www.python.org/downloads/).
75
+ 2. **Open Command Prompt**: Press `Win + R`, type `cmd`, and hit Enter.
76
+ 3. **Run the pip command**:
77
+
78
+ ```bash
79
+ pip install pycersi
80
+ ```
81
+
82
+ ### macOS
83
+
84
+ 1. **Install Python**: Ensure Python is installed. You can use Homebrew to install it:
85
+
86
+ ```bash
87
+ brew install python
88
+ ```
89
+
90
+ 2. **Open Terminal**: You can find Terminal in Applications > Utilities.
91
+
92
+ ```bash
93
+ pip3 install pycersi
94
+ ```
95
+
96
+ ### Linux (Ubuntu/Debian-based)
97
+
98
+ 1. **Update Packages**:
99
+
100
+ ```bash
101
+ sudo apt update
102
+ ```
103
+
104
+ 2. **Install Python and pip**:
105
+
106
+ ```bash
107
+ sudo apt install python3 python3-pip
108
+ ```
109
+
110
+ 3. **Run the pip command**:
111
+
112
+ ```bash
113
+ pip3 install pycersi
114
+ ```
115
+
116
+ ## Using
117
+
118
+ 1. For using any _searchers_ functions from PyCersi module, use:
119
+ `pycersi.<name>(limit)`.
120
+
121
+ - Example: `pycersi.fibo(limit)`
122
+
123
+ 2. For using any _checker_ functions from PyCersi module, use:
124
+ `pycersi.is<name>(value)`.
125
+
126
+ - Example: `pycersi.issunny(value)`
127
+
128
+ 3. For using any _mathematical_ function from PyCersi module, use:
129
+ `pycersi.cal<name>(value)`.
130
+
131
+ - Example: `pycesi.calfact(value)`
132
+
133
+ ## Contributing
134
+
135
+ I welcome contributions to the project! If you want to contribute, please follow these steps:
136
+
137
+ Fork the repository.
138
+
139
+ 1. Create a new branch (`git checkout -b feature-branch`).
140
+ 2. Make your changes and commit them (`git commit -m 'Add some feature'`).
141
+ 3. Push to the branch (`git push origin feature-branch`).
142
+ 4. Create a pull request.
143
+ Please make sure your code follows the project's coding standards and includes tests.
144
+
145
+ ## License
146
+
147
+ This project is licensed under the MIT License - see the [LICENSE](https://www.github.com/subhrachakraborti/PyCersi/) file for details.
148
+
149
+ ## Contact
150
+
151
+ If you have any questions, feel free to open an issue or contact me directly at [mail@subhrachakraborti](mailto:mail@subhrachakraborti.com).
152
+
153
+ ## Acknowledgments
154
+
155
+ [Math Library]
@@ -0,0 +1,170 @@
1
+ Metadata-Version: 2.1
2
+ Name: pycersi
3
+ Version: 2.0.0
4
+ Summary: A Great Python Library by Subhra Chakraborti
5
+ Home-page: https://github.com/subhrachakraborti/PyCersi
6
+ Author: Subhra Chakraborti
7
+ Author-email: mail@subhrachakraborti.com
8
+ License: MIT
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >3.5
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE.txt
15
+
16
+ # PyCersi
17
+
18
+ ![License](https://img.shields.io/badge/License-MIT-green.svg)
19
+ ![Python Versions](https://img.shields.io/pypi/pyversions/sub-py-library)
20
+
21
+ ##### DEVELOPED BY SUBHRA CHAKRABORTI
22
+
23
+ ##### LAST UPDATE: 25TH AUGUST 2024
24
+
25
+ ##### VERSION: 2.0.0
26
+
27
+ ## Overview
28
+
29
+ PyCersi is a simple Python library that provides essential tools for [describe the functionality of your library]. It is easy to use, lightweight, and can be integrated into various Python projects.
30
+
31
+ ## Features
32
+
33
+ PyCersi offers a collection of number-related utilities that can simplify common mathematical tasks:
34
+
35
+ - **Searchers**
36
+ - `Fibonacci Series Program`
37
+ - `Floyd Triangle Program`
38
+ - `Greatest Common Divisor Program`
39
+ - `Least Common Multiple Program`
40
+ - **Number Property Checkers**
41
+
42
+ - `Abundant Number Checker`
43
+ - `Armstrong Number Checker`
44
+ - `Automorphic Number Checker`
45
+ - `Buzz Number Checker`
46
+ - `Circular Prime Number Checker`
47
+ - `Curzon Number Checker`
48
+ - `Composite Number Checker`
49
+ - `CoPrime Number Checker`
50
+ - `Disarium Number Checker`
51
+ - `Dudeney Number Checker`
52
+ - `Duck Number Checker`
53
+ - `Even Number Checker`
54
+ - `Happy Number Checker`
55
+ - `Harshad Number Checker`
56
+ - `Heteromecic Number Checker`
57
+ - `Krishnamurthy Number Checker`
58
+ - `Magic Number Checker`
59
+ - `Neon Number Checker`
60
+ - `Niven Number Checker`
61
+ - `Oblong Number Checker`
62
+ - `Odd Number Checker`
63
+ - `Palindrome Number Checker`
64
+ - `Perfect Number Checker`
65
+ - `Prime Number Checker`
66
+ - `Pronic Number Checker`
67
+ - `Sunny Number Checker`
68
+ - `Special Number Checker`
69
+ - `Spy Number Checker`
70
+ - `Twin Prime Number Checker`
71
+ - `Twisted Prime Checker`
72
+ - `Unique Number Checker`
73
+ - `Tech Number Checker`
74
+ - `Ugly Number Checker`
75
+
76
+ - **Mathematical Functions**
77
+ - `Digit to Word Converter`
78
+ - `Factorial Calculator`
79
+ - `Factors Calculator`
80
+
81
+ These functions are designed to help you perform common number-related operations efficiently and can be easily integrated into larger projects.
82
+
83
+ ## Installation
84
+
85
+ PyCersi is available on PyPI and can be installed using `pip` on various platforms including Windows, macOS, and Linux.
86
+
87
+ ### Windows
88
+
89
+ 1. **Install Python**: Make sure Python is installed on your system. You can download it from the official [Python website](https://www.python.org/downloads/).
90
+ 2. **Open Command Prompt**: Press `Win + R`, type `cmd`, and hit Enter.
91
+ 3. **Run the pip command**:
92
+
93
+ ```bash
94
+ pip install pycersi
95
+ ```
96
+
97
+ ### macOS
98
+
99
+ 1. **Install Python**: Ensure Python is installed. You can use Homebrew to install it:
100
+
101
+ ```bash
102
+ brew install python
103
+ ```
104
+
105
+ 2. **Open Terminal**: You can find Terminal in Applications > Utilities.
106
+
107
+ ```bash
108
+ pip3 install pycersi
109
+ ```
110
+
111
+ ### Linux (Ubuntu/Debian-based)
112
+
113
+ 1. **Update Packages**:
114
+
115
+ ```bash
116
+ sudo apt update
117
+ ```
118
+
119
+ 2. **Install Python and pip**:
120
+
121
+ ```bash
122
+ sudo apt install python3 python3-pip
123
+ ```
124
+
125
+ 3. **Run the pip command**:
126
+
127
+ ```bash
128
+ pip3 install pycersi
129
+ ```
130
+
131
+ ## Using
132
+
133
+ 1. For using any _searchers_ functions from PyCersi module, use:
134
+ `pycersi.<name>(limit)`.
135
+
136
+ - Example: `pycersi.fibo(limit)`
137
+
138
+ 2. For using any _checker_ functions from PyCersi module, use:
139
+ `pycersi.is<name>(value)`.
140
+
141
+ - Example: `pycersi.issunny(value)`
142
+
143
+ 3. For using any _mathematical_ function from PyCersi module, use:
144
+ `pycersi.cal<name>(value)`.
145
+
146
+ - Example: `pycesi.calfact(value)`
147
+
148
+ ## Contributing
149
+
150
+ I welcome contributions to the project! If you want to contribute, please follow these steps:
151
+
152
+ Fork the repository.
153
+
154
+ 1. Create a new branch (`git checkout -b feature-branch`).
155
+ 2. Make your changes and commit them (`git commit -m 'Add some feature'`).
156
+ 3. Push to the branch (`git push origin feature-branch`).
157
+ 4. Create a pull request.
158
+ Please make sure your code follows the project's coding standards and includes tests.
159
+
160
+ ## License
161
+
162
+ This project is licensed under the MIT License - see the [LICENSE](https://www.github.com/subhrachakraborti/PyCersi/) file for details.
163
+
164
+ ## Contact
165
+
166
+ If you have any questions, feel free to open an issue or contact me directly at [mail@subhrachakraborti](mailto:mail@subhrachakraborti.com).
167
+
168
+ ## Acknowledgments
169
+
170
+ [Math Library]
@@ -0,0 +1,10 @@
1
+ LICENSE.txt
2
+ README.md
3
+ setup.cfg
4
+ setup.py
5
+ Modules/__init__.py
6
+ Modules/pycersi.py
7
+ pycersi.egg-info/PKG-INFO
8
+ pycersi.egg-info/SOURCES.txt
9
+ pycersi.egg-info/dependency_links.txt
10
+ pycersi.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ Modules
@@ -0,0 +1,7 @@
1
+ [metadata]
2
+ description_file = README.md
3
+
4
+ [egg_info]
5
+ tag_build =
6
+ tag_date = 0
7
+
pycersi-2.0.0/setup.py ADDED
@@ -0,0 +1,21 @@
1
+ # setup.py
2
+ from setuptools import setup, find_packages
3
+
4
+ setup(
5
+ name="pycersi",
6
+ version="2.0.0",
7
+ description="A Great Python Library by Subhra Chakraborti",
8
+ long_description=open("README.md").read(),
9
+ long_description_content_type="text/markdown",
10
+ url="https://github.com/subhrachakraborti/PyCersi",
11
+ author="Subhra Chakraborti",
12
+ author_email="mail@subhrachakraborti.com",
13
+ license="MIT",
14
+ packages=find_packages(),
15
+ classifiers=[
16
+ "Programming Language :: Python :: 3",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Operating System :: OS Independent",
19
+ ],
20
+ python_requires=">3.5",
21
+ )