Let's code better
Project description
maia
- Tips
- Versions
- Functions
About "maia"
This python module was created to make code clear and easy.
This page will be updated quite often, like the project itself, so I recommend checking for updates often
You can install this package by using a simple command:
pip install py-maia
And import this package using
import maia
Version 1.5
19 February 2021
switch & case
That just popular method of iterating, which unfortunately was not added to this language But in this function I tried to add this functionality in Python
from maia import switch
x = 10
for case in switch(x):
if case(0):
print('num is 0')
break
elif case(10):
print('num is 10')
break
else:
print('num not in list')
break
Loadings & printr
Now you can use loadings in your project!
from maia import Loading, printr
import time
for x in Loading.user_load(['x', 'b', 'c'], desc='Object: %'):
printr(x)
time.sleep(1)
print('All objets done.')
Or you can load a usual one
from maia import Loading, printr
import time
for x in Loading.usual(xrange=range(0, 100)):
printr(x)
time.sleep(0.01)
So, what about "printr()" func? This function allows you to edit last line into new line. It can be helpful in many situations then you need to work with a console, so use it :)
Photo
Now you can load photo from wedsite using just a one simple line
Photo(path).download(link)
I will add some more functions in this class later
Version 1.1
AutoInstaller
That function will help you install packages without using a console command "pip install ..."
Example:
from maia import AutoInstaller
try:
import colorama
except ImportError:
AutoInstaller()
print("Hello, AutoInstaller" + colorama.Fore.GREEN)
Version 1.0
Just crashed package, so you can just skip it
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file py-maia-1.5.tar.gz.
File metadata
- Download URL: py-maia-1.5.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e31b82db4d442a8d1f3ec60fd3a41165b1244ea4fcbab058c387e59eb3560870
|
|
| MD5 |
cc3a08cd01e31b2339fb033e0998535e
|
|
| BLAKE2b-256 |
d0d070e08c6b8dd488ce1f7a7140d7e39523bd041dd52113db8b655e17f53035
|