Open Self-Hosting
Self-hosted. Open-source. Privacy-first. Your server. Your data. Your keys. OpenSelfHosting.com
Show more📈 Analytical overview of Telegram channel Open Self-Hosting
Channel Open Self-Hosting (@openselfhosting) in the Arabic language segment is an active participant. Currently, the community unites 11 657 subscribers, ranking 10 660 in the Technologies & Applications category and 6 633 in the Saudi Arabia region.
📊 Audience metrics and dynamics
Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 11 657 subscribers.
According to the latest data from 30 October, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by -302 over the last 30 days and by -37 over the last 24 hours, overall reach remains high.
- Verification status: Not verified
- Engagement rate (ER): The average audience engagement rate is 7.70%. Within the first 24 hours after publication, content typically collects N/A% reactions from the total number of subscribers.
- Post reach: On average, each post receives 0 views. Within the first day, a publication typically gains 0 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 0.
- Thematic interests: Content is focused on key topics such as ذَات, قَنَاة, إِنتِرنِت, بُرمُجَة, تَجمِيعَة.
📝 Description and content policy
The author describes the resource as a platform for expressing subjective opinions:
“Self-hosted. Open-source. Privacy-first.
Your server. Your data. Your keys.
OpenSelfHosting.com”
Thanks to the high frequency of updates (latest data received on 31 October, 2026), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.
type hints ويوفّر توثيقًا تلقائيًا عبر Swagger.
التثبيت:
pip install fastapi uvicorn
مثال سريع:
from fastapi import FastAPI
app = FastAPI()
@app.get("/hello")
def hello():
return {"message": "Hello Pythonarabe"}
التشغيل:
uvicorn main:app --reload
بعدها افتح:
http://127.0.0.1:8000/docs
مصدر الشعار الرسمي: fastapi.tiangolo.compip install Flask-RESTful
مثال سريع:
from flask import Flask
from flask_restful import Api, Resource
app = Flask(__name__)
api = Api(app)
class Hello(Resource):
def get(self):
return {"message": "Hello API"}
api.add_resource(Hello, "/api/hello")
app.run(debug=True)
تجربة الطلب:
curl http://127.0.0.1:5000/api/hello
مناسبة لمشاريع Flask التي تحتاج API للوحة تحكم، تطبيق موبايل، أو Frontend منفصل مثل React.
#Python #Flask #APIpip install Flask-RESTful
مثال سريع:
from flask import Flask
from flask_restful import Api, Resource
app = Flask(__name__)
api = Api(app)
class Hello(Resource):
def get(self):
return {"message": "Hello API"}
api.add_resource(Hello, "/api/hello")
app.run(debug=True)
تجربة الطلب:
curl http://127.0.0.1:5000/api/hello
مناسبة لمشاريع Flask التي تحتاج API للوحة تحكم، تطبيق موبايل، أو Frontend منفصل مثل React.
#Python #Flask #APIpip install Flask-Login
مثال سريع:
from flask import Flask
from flask_login import LoginManager, login_required
app = Flask(__name__)
app.secret_key = "change-me"
login_manager = LoginManager()
login_manager.init_app(app)
@app.route("/dashboard")
@login_required
def dashboard():
return "Welcome back"
الفكرة المهمة: أي route عليه login_required لن يفتح إلا إذا كان المستخدم مسجل دخول.
تحتاج أيضًا تعريف user_loader حتى يعرف Flask-Login كيف يجلب بيانات المستخدم من قاعدة البيانات.
مفيدة جدًا لأي مشروع Flask فيه لوحة تحكم، حسابات مستخدمين، أو صفحات خاصة.
#Python #Flask #WebDevelopmentmarshal مدمجة مع Python ولا تحتاج تثبيت
مثال مبسط:
import marshal
source = 'print("Protected code")'
code = compile(source, "app.py", "exec")
with open("app_protected.bin", "wb") as f:
f.write(marshal.dumps(code))
تشغيل الملف لاحقًا:
import marshal
with open("app_protected.bin", "rb") as f:
code = marshal.loads(f.read())
exec(code)
مهم: هذا ليس تشفيرًا حقيقيًا ولا حماية كاملة. هو مجرد Obfuscation يجعل القراءة أصعب، ويمكن عكسه أو تحليله من شخص خبير.
للحماية الأفضل: لا تضع أسرارًا داخل الكود، واستخدم متغيرات البيئة، ووزّع التطبيق بصيغة مناسبة مثل PyInstaller عند الحاجة.
#Python #CyberSecurity #Obfuscationmarshal مدمجة مع Python ولا تحتاج تثبيت
مثال سريع:
import marshal
data = {"name": "Asim", "level": 3}
binary = marshal.dumps(data)
restored = marshal.loads(binary)
print(restored)
لكن انتبه: marshal ليست بديلًا آمنًا لـ JSON أو pickle لتبادل البيانات بين البرامج، ولا يُنصح بقراءة بيانات marshal من مصدر غير موثوق.
استخدمها للتعلم وفهم Python internals، أما لحفظ بيانات تطبيقك غالبًا JSON يكون أوضح وأكثر استقرارًا.
#Python #PythonInternalspip install pycryptodome
مثال سريع لتشفير رسالة بـ AES:
from Crypto.Cipher import AES
from Crypto.Random import get_random_bytes
key = get_random_bytes(16)
cipher = AES.new(key, AES.MODE_EAX)
ciphertext, tag = cipher.encrypt_and_digest(b"secret message")
print(ciphertext.hex())
الميزة الجميلة أنها تعطيك واجهة Python بسيطة للتعامل مع مفاهيم قوية في التشفير بدون تعقيد زائد.
مفيدة جدًا لمن يتعلم الأمن السيبراني أو يبني أدوات Python تحتاج حماية للبيانات.
#Python #CyberSecuritypip install pycryptodome
مثال سريع لتشفير رسالة بـ AES:
from Crypto.Cipher import AES
from Crypto.Random import get_random_bytes
key = get_random_bytes(16)
cipher = AES.new(key, AES.MODE_EAX)
ciphertext, tag = cipher.encrypt_and_digest(b"secret message")
print(ciphertext.hex())
الميزة الجميلة أنها تعطيك واجهة Python بسيطة للتعامل مع مفاهيم قوية في التشفير بدون تعقيد زائد.
مفيدة جدًا لمن يتعلم الأمن السيبراني أو يبني أدوات Python تحتاج حماية للبيانات.
#Python #CyberSecuritypip install flask
مثال سريع:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
return "Hello, Flask!"
ممتاز لتطبيقات الويب الخفيفة، لوحات التحكم، وخدمات الـ backend الصغيرة.
GitHubpip install flask
مثال سريع:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
return "Hello, Flask!"
ممتاز لتطبيقات الويب الخفيفة، لوحات التحكم، وخدمات الـ backend الصغيرة.
GitHubلا تحتاج تثبيت، لأنها مدمجة داخل Python
مثال سريع:
import threading
def task(name):
print(f"Hello from {name}")
t1 = threading.Thread(target=task, args=("Thread 1",))
t2 = threading.Thread(target=task, args=("Thread 2",))
t1.start()
t2.start()
t1.join()
t2.join()
تُستخدم كثيرًا في بناء أدوات أسرع وأكثر استجابة، خاصة عند التعامل مع الطلبات، التحميل، أو تنفيذ عدة مهام خفيفة معًا.
رابط التوثيق:
https://docs.python.org/3/library/threading.html
#Python #Threading #Concurrency #DeveloperToolspython is great and python is easy
Expected Output
Characters: 34
Words: 6
python: 2
is: 2
great: 1
and: 1
easy: 1
### الشروط
- اكتب الحل بنفسك
#Python #Challenge #PythonChallengepip install pyTelegramBotAPI
مثال سريع
import telebot
bot = telebot.TeleBot("TOKEN")
@bot.message_handler(commands=["start"])
def start(message):
bot.reply_to(message, "أهلًا! البوت يعمل ✅")
bot.infinity_polling()
الفكرة الأساسية: تنشئ كائن البوت بالتوكن، ثم تضيف handlers للأوامر والرسائل، وبعدها تشغله بـ infinity_polling().
نصيحة مهمة: لا تضع التوكن داخل الكود عند رفع المشروع على GitHub؛ استخدم متغيرات البيئة بدلًا من ذلك.
#Python #TelegramBot #TeleBot #برمجة