Metadata-Version: 2.4
Name: extenpied
Version: 0.1.4
Summary: Module to extend python
Home-page: https://pypi.org/project/extenpied/
Author: Idose114
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

#EXTENPIED MODULE V0.1.4 (WIP)
#Module to extend python
Features:
fact() function (factorial)

is_palindrome() function

Logic elements (XOR, NOR, XNOR, NAND)

"arabic" variable is shorter now



#HOW 2 USE

import module first. For example:

import extendpied

If you want to make name shorter, do:

import extendpied as expied

OR even shorter:

import extenpied as xpd

**reverse()** - reverses a string. Example:

print(extenpied.reverse("Hi!!")) 

**info()** - information about variable. Example:

a = 5

extenpied.info(a)

**piedfeat()** - information about extenpied. Version, features, etc.

**randlatin()** - randomizes symbol from latin alphabet. Example:

print(extenpied.randlatin())

prints random latin letter

**randld()** - does the same as randlatin(), but digits are included

print(extenpied.randld())

**randall()** - get random latin letter, digit or special symbol (like ~ or % etc.)

print(extenpied.randall())

**nextwo** - returns exponent of two

print(extenpied.nextwo(8)) -> 256 (2^8 is 256)

**randsort** - returns a string with randomized letters (letters can repeat)

print(extenpied.randsort("Hello")) -> something like "ohleH" or "lHolo"

**iseven** - checking if number is even

print(extenpied.iseven(7)) -> False

**isodd** - checking if number is odd

print(extenpied.isodd(3)) -> True

**shuffle** - returns a string with randomized letters (letters cannot repeat)

print(extenpied.shuffle("Hello")) -> something like "Hloel" or "eolHl"

**is_palindrome** - checks if a string is a palindrome

print(extenpied.is_palindrome("racecar")) -> True

#MATHEMATICAL FUNCTIONS

**add** - adds a to b

print(extenpied.add(1, 3)) -> 4

**sub** - substract b from a

print(extenpied.sub(6, 2)) -> 4

**mul** - multiplies a by b

print(extenpied.mul(3, 4)) -> 12

**div** - divides a by b

print(extenpied.div(8, 2) -> 4

**exp** - raises a to the exponent of b

print(extenpied.exp(4, 3)) -> 64

**root** - extracts the root a of b

print(extenpied.root(3, 27)) -> 3

print(extenpied.root(4, 16)) -> 2

**fact** - returns factorial of n

print(extenpied.fact(4)) -> 24

#LOGICAL ELEMENTS

AND, OR, NOT are already in python, more upcoming

**xor** - returns True if a != b

print(extenpied.xor(False, True)) -> True

**nor** - returns False if a or b is True

print(extenpied.nor(True, False) -> False

**xnor** - returns True if a == b

print(extenpied.xnor(True, True)) -> True

**nand** - returns False if a and b are True

print(extenpied.nand(False, False)) -> True

#LICENSE

MIT license. Do anything, just mention the author (Idose114)

#INSTALLATION

Enter "pip install extenpied" to install

Goodbye and be a good boy XD

