LyroxPy 1.0.0__tar.gz
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.
- lyroxpy-1.0.0/LyroxPy.egg-info/PKG-INFO +13 -0
- lyroxpy-1.0.0/LyroxPy.egg-info/SOURCES.txt +7 -0
- lyroxpy-1.0.0/LyroxPy.egg-info/dependency_links.txt +1 -0
- lyroxpy-1.0.0/LyroxPy.egg-info/requires.txt +1 -0
- lyroxpy-1.0.0/LyroxPy.egg-info/top_level.txt +1 -0
- lyroxpy-1.0.0/LyroxPy.py +129 -0
- lyroxpy-1.0.0/PKG-INFO +13 -0
- lyroxpy-1.0.0/setup.cfg +4 -0
- lyroxpy-1.0.0/setup.py +15 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: LyroxPy
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Tg ; @LyroxPy
|
|
5
|
+
Author: Lyrox
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Dist: requests
|
|
10
|
+
Dynamic: author
|
|
11
|
+
Dynamic: classifier
|
|
12
|
+
Dynamic: requires-dist
|
|
13
|
+
Dynamic: summary
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
requests
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
LyroxPy
|
lyroxpy-1.0.0/LyroxPy.py
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import requests
|
|
2
|
+
import time
|
|
3
|
+
import webbrowser
|
|
4
|
+
import sys
|
|
5
|
+
import base64
|
|
6
|
+
import os
|
|
7
|
+
import cfonts as _cfonts
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# - - - REQUESTS - - -
|
|
12
|
+
|
|
13
|
+
def get(url, timeout=10):
|
|
14
|
+
# HTTP GET isteği atar
|
|
15
|
+
r = requests.get(url, timeout=timeout)
|
|
16
|
+
return r.status_code, r.text
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# - - - TIME - - -
|
|
20
|
+
|
|
21
|
+
def sleep(sec):
|
|
22
|
+
# Belirtilen saniye kadar bekler
|
|
23
|
+
time.sleep(sec)
|
|
24
|
+
|
|
25
|
+
def now():
|
|
26
|
+
# Şu anki zamanı (timestamp) döndürür
|
|
27
|
+
return time.time()
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# - - - WEBBROWSER - - -
|
|
31
|
+
|
|
32
|
+
def open(url): #siteyi açar
|
|
33
|
+
webbrowser.open_new_tab(url)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# - - - SYS - - -
|
|
37
|
+
|
|
38
|
+
def exit(code=0):
|
|
39
|
+
# Programdan çıkış yapar
|
|
40
|
+
sys.exit(code)
|
|
41
|
+
|
|
42
|
+
def argv():
|
|
43
|
+
# Komut satırı argümanlarını döndürür
|
|
44
|
+
return sys.argv
|
|
45
|
+
|
|
46
|
+
def path():
|
|
47
|
+
# Python sys.path listesini döndürür
|
|
48
|
+
return sys.path
|
|
49
|
+
|
|
50
|
+
def version():
|
|
51
|
+
# Python sürüm bilgisini verir
|
|
52
|
+
return sys.version
|
|
53
|
+
|
|
54
|
+
def platform():
|
|
55
|
+
# Çalışılan platformu verir (linux, win32 vb.)
|
|
56
|
+
return sys.platform
|
|
57
|
+
|
|
58
|
+
def executable():
|
|
59
|
+
# Python çalıştırıcısının yolunu verir
|
|
60
|
+
return sys.executable
|
|
61
|
+
|
|
62
|
+
def modules():
|
|
63
|
+
# Yüklü modülleri döndürür
|
|
64
|
+
return sys.modules
|
|
65
|
+
|
|
66
|
+
def setrecursionlimit(limit):
|
|
67
|
+
# Recursion limit ayarlar
|
|
68
|
+
sys.setrecursionlimit(limit)
|
|
69
|
+
|
|
70
|
+
def getrecursionlimit():
|
|
71
|
+
# Mevcut recursion limitini verir
|
|
72
|
+
return sys.getrecursionlimit()
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# - - - BASE64 - - -
|
|
76
|
+
|
|
77
|
+
def b64e(data):
|
|
78
|
+
# Base64 encode eder
|
|
79
|
+
if isinstance(data, str):
|
|
80
|
+
data = data.encode()
|
|
81
|
+
return base64.b64encode(data).decode()
|
|
82
|
+
|
|
83
|
+
def b64d(data):
|
|
84
|
+
# Base64 decode eder
|
|
85
|
+
if isinstance(data, str):
|
|
86
|
+
data = data.encode()
|
|
87
|
+
return base64.b64decode(data)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# - - - OS - - -
|
|
91
|
+
|
|
92
|
+
def listdir(path="."):
|
|
93
|
+
# Klasör içeriğini listeler
|
|
94
|
+
return os.listdir(path)
|
|
95
|
+
|
|
96
|
+
def mkdir(path):
|
|
97
|
+
# Klasör oluşturur (varsa hata vermez)
|
|
98
|
+
os.makedirs(path, exist_ok=True)
|
|
99
|
+
|
|
100
|
+
def remove(path):
|
|
101
|
+
# Dosya siler
|
|
102
|
+
if os.path.exists(path):
|
|
103
|
+
os.remove(path)
|
|
104
|
+
|
|
105
|
+
def isfile(path):
|
|
106
|
+
# Dosya mı kontrol eder
|
|
107
|
+
return os.path.isfile(path)
|
|
108
|
+
|
|
109
|
+
def isdir(path):
|
|
110
|
+
# Klasör mü kontrol eder
|
|
111
|
+
return os.path.isdir(path)
|
|
112
|
+
|
|
113
|
+
def getcwd():
|
|
114
|
+
# Mevcut dizini verir
|
|
115
|
+
return os.getcwd()
|
|
116
|
+
|
|
117
|
+
def chdir(path):
|
|
118
|
+
# Dizin değiştirir
|
|
119
|
+
os.chdir(path)
|
|
120
|
+
|
|
121
|
+
def system(command):
|
|
122
|
+
# Sistem komutu çalıştırır
|
|
123
|
+
return os.system(command)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
# - - - CFONTS - - -
|
|
127
|
+
|
|
128
|
+
def render(*args, **kwargs): #Logo İçin
|
|
129
|
+
return _cfonts.render(*args, **kwargs)
|
lyroxpy-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: LyroxPy
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Tg ; @LyroxPy
|
|
5
|
+
Author: Lyrox
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Dist: requests
|
|
10
|
+
Dynamic: author
|
|
11
|
+
Dynamic: classifier
|
|
12
|
+
Dynamic: requires-dist
|
|
13
|
+
Dynamic: summary
|
lyroxpy-1.0.0/setup.cfg
ADDED
lyroxpy-1.0.0/setup.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="LyroxPy",
|
|
5
|
+
version="1.0.0",
|
|
6
|
+
py_modules=["LyroxPy"],
|
|
7
|
+
install_requires=["requests"],
|
|
8
|
+
author="Lyrox",
|
|
9
|
+
description="Tg ; @LyroxPy",
|
|
10
|
+
classifiers=[
|
|
11
|
+
"Programming Language :: Python :: 3",
|
|
12
|
+
"License :: OSI Approved :: MIT License",
|
|
13
|
+
"Operating System :: OS Independent",
|
|
14
|
+
],
|
|
15
|
+
)
|