simplefunc 0.1.0__py3-none-any.whl
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.
simplefunc/__init__.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
def say(message):
|
|
2
|
+
"""Pretty self explanatory, shorter name of print!"""
|
|
3
|
+
print(message)
|
|
4
|
+
|
|
5
|
+
def write(explan):
|
|
6
|
+
"""Same thing as 'say', but for input!"""
|
|
7
|
+
return input(explan)
|
|
8
|
+
|
|
9
|
+
def length(thatThingy):
|
|
10
|
+
"""Simple name of len, all of these do the same thing I don't know what to say."""
|
|
11
|
+
return len(thatThingy)
|
|
12
|
+
|
|
13
|
+
def what_is(varInserted):
|
|
14
|
+
"""Simpler name of type()."""
|
|
15
|
+
return type(varInserted)
|
|
16
|
+
|
|
17
|
+
def shout(anStr):
|
|
18
|
+
"""Simple name of .upper() and it makes it a function! Next definition is the actual attribute ver."""
|
|
19
|
+
return anStr.upper()
|
|
20
|
+
|
|
21
|
+
class LS(str):
|
|
22
|
+
"""Attribute ver of shout function above!"""
|
|
23
|
+
def shout(anStr2):
|
|
24
|
+
return anStr2.upper()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def whisper(anStr2):
|
|
28
|
+
"""Simple name of .lower() and it makes it a function! Next definition is the actual attribute ver."""
|
|
29
|
+
return anStr2.lower()
|
|
30
|
+
|
|
31
|
+
class WS(str):
|
|
32
|
+
"""Attribute ver of shout function above!"""
|
|
33
|
+
def whisper(finalStr2):
|
|
34
|
+
return finalStr2.lower()
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: simplefunc
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Simplifies the name of a few Python functions and attributes (.upper and .lower). print is now say, input is now write, len is now length, .upper() is now .shout(), .lower() is .whisper(), and it made them functions too, shout("text here") and whisper("text here"), thank you for using!
|
|
5
|
+
Author-email: Petar <petarshishkov794@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.7
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# Simplified Functions
|
|
16
|
+
|
|
17
|
+
A python package that simplifies the names of common functions and attributes!
|
|
18
|
+
|
|
19
|
+
## How to use:
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
from simplefunc import say, write, length, what_is, shout, whisper, LS, WS
|
|
23
|
+
|
|
24
|
+
say("Hello world!")
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
simplefunc/__init__.py,sha256=5PRchu3QCBIs7DoAGCOUV7oEvdmxSnummzqHj9ddjeQ,913
|
|
2
|
+
simplefunc-0.1.0.dist-info/licenses/LICENSE,sha256=NeAj5S7Cpqgdhb-I8LipOhHQUITKd-oXL6EwAK0wLjY,618
|
|
3
|
+
simplefunc-0.1.0.dist-info/METADATA,sha256=Jy5jlKMJKMtpcMikuuDJL345Aabcoz8OOvriyjw8a2w,892
|
|
4
|
+
simplefunc-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
5
|
+
simplefunc-0.1.0.dist-info/top_level.txt,sha256=YJjUlqdjXRpgmQan6PTVCTdbA2fiLxg6Wycsdr2YgLg,11
|
|
6
|
+
simplefunc-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
The "Do Whatever You Want" License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Petar
|
|
4
|
+
|
|
5
|
+
Look, anyone can download this code for free and do whatever they want with it.
|
|
6
|
+
|
|
7
|
+
You can use it for school, use it for your own personal projects, modify it, share it, or even put it inside a massive commercial app that you sell for actual money (just like Google did with Linux).
|
|
8
|
+
|
|
9
|
+
There are only two rules:
|
|
10
|
+
1. You have to keep this copyright notice inside your code so people know I originally made it.
|
|
11
|
+
2. I built this for fun, so it comes with zero warranties. If your code breaks or your computer catches fire, that's on you—you can't sue me!
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
simplefunc
|