Skip to main content

An application that informs you of the differents Moduls and vesry easy use it in short aways

Project description

pip install mahdix

Print Something

from mahdix import p

print(p('YOUR TXT'))

Get Current Time

from mahdix import time

print(time())

Generate Text Logo

from mahdix import makelogo

logo = makelogo(text='Mahdi')
print(logo)

Random Numbers

from mahdix import random7, random8, random9, random1_2, random1_3, random1_4, random10

print(random7())
print(random8())
print(random9())
print(random1_2())
print(random1_3())
print(random1_4())
print(random10())

System Commands

from mahdix import sysT

sysT('YOUR COMMAND')

HTTP Requests

from mahdix import rqg, rqp

response_get = rqg('https://example.com')
response_post = rqp('https://example.com', data={'key': 'value'})

Random Choices

from mahdix import rc

print(rc([1, 2, 3, 4]))

Base64 Encoding/Decoding

from mahdix import bsec, bsdc

encoded_data = bsec('Hello, World!')
decoded_data = bsdc(encoded_data)

Colors

# ---[coloure]------

RED = mahdix.RED

GREEN = mahdix.GREEN

YELLOW = mahdix.YELLOW

BLUE=mahdix.BLUE

ORANGE =mahdix.ORANGE

LI_BLUE = Light_BLUE

LI_MAGENTA = Light_MAGENTA

LI_CYAN = Light_CYAN

LI_WHITE = Light_WHITE

Background colors

BG_BLACK = Background_BLACK

BG_RED = Background_RED

BG_GREEN = Background_GREEN 

get any Facebook id created date

from mahdix import getyearid

# Example: cid = '100000000023456'
print(getyearid(cid))

html_txt Function

The html_txt function fetches HTML content from the specified URL, using optional headers and data for the request.

from your_module import html_txt

url = 'https://example.com'
headers = {
    'User-Agent': 'Your User Agent',
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'Accept-Language': 'en-US,en;q=0.9',
    'Accept-Encoding': 'gzip, deflate, br',
    'Connection': 'keep-alive',
}
cookie = {'key': 'value'}  # Optional Cookes for POST requests
data = {'key': 'value'}  # Optional data for POST requests
parsed_html = html_txt(url, Headers=headers, Data=data,Cookie=cookie) # data for POST requests 
parsed_html = html_txt(url, Headers=headers,Cookie=cookie) #  for Get requests 
print(parsed_html)

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

mahdix-0.1.6.1.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file mahdix-0.1.6.1.tar.gz.

File metadata

  • Download URL: mahdix-0.1.6.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for mahdix-0.1.6.1.tar.gz
Algorithm Hash digest
SHA256 568045788d22d1dad461b9e0c819e7f2bec9332f7b0a94e8079cd60e6ace0253
MD5 ade73b1d421db3995ae758e07476a1b5
BLAKE2b-256 7d821ff8f1d7389f91e5bb1fe674e45c9d53a4338ec097d994099d67ff2af620

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page