A New Born Python Micro Framework
Project description
Pysha
Pysha Micro Framework. For Doing Something Beautiful In Python :)
Because Currently This Micro Framework Is In Progress, I Will Some Helps Later.
Installation
Just Run This Command :
pip install pysha
Usage
Add This At First Of Your Code :
from pysha import *
Examples
- Switch-Case
Switch(var).cases({
Case(5):
lambda: (
print("Number Wasnt 5.") ,
print(2)
),
Case(10):
lambda: (
print("Number Was 10 !") ,
print(3)
),
Case(15):
lambda: (
print("Number Wasnt 15.") ,
print(4)
),
Case(20):
lambda: (
print("Number Wasnt 20.") ,
print(5)
),
Default:
lambda:(
print("Finish")
)
})
- Multi-Layer Ecnryption/Decryption
variable = make_enc(alg=[Algorithms.XOR,Algorithms.Base64],key=10)
variable.enc("Hello")
variable.dec("Qm9mZmU=")
- Colored User-Input
name = colorprompt(colorize("(Fore.GREEN)[Enter Your Name :] "),char_color=fore["cyan"])
password = passprompt(colorize("(Fore.GREEN)[Enter Your Password :] "),mask_color=fore["cyan"])
pp(name)
- Save And Load Variables With Encryption
# Save 2 Variables
Save("test.txt",name="Arshia",age=19)()
# Load Those 2 Variables
import sys
this = sys.modules[__name__]
Load("test.txt")(this)
**After Load Variables, They Are Accessable In Your Code ! **
And Lots Of Beautiful Things :)
You Can Look At Full Wiki To See More :)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysha-0.0.2.tar.gz
(15.2 kB
view details)
Built Distribution
pysha-0.0.2-py3-none-any.whl
(29.4 kB
view details)
File details
Details for the file pysha-0.0.2.tar.gz
.
File metadata
- Download URL: pysha-0.0.2.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb8e4d81242883eb8ccbf1be54994076e9bbaf2d6284f4fcab361ddb1cbea3f9 |
|
MD5 | efee0c1e02b21bfcd9938f9d67b94f23 |
|
BLAKE2b-256 | 8e16e586030e6df7777682b43ef0d3f03ebff0055bbc3d4144b7d6f5b44f5d6e |
File details
Details for the file pysha-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pysha-0.0.2-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df633d258f838722e21366aa2e9d5a88d365f89fa69a1111349fe79e113a8764 |
|
MD5 | 80953ea9fb92e74966d3df4c2a0877ee |
|
BLAKE2b-256 | 4a16df7d738096e1906041f43312e21b6abd77f94065b48483cb480d884b2d6b |