🌟 DeepXDE - Python library for ML and PINN
- pip install deepxde
ویژگی ها :
؛DeepXDE الگوریتم های زیادی را پیاده سازی می کند و بسیاری از توابع را پشتیبانی می کند:
-؛ DeepXDE به شما اجازه می دهد تا کد را بسیار مختصر بنویسید، تقریباً مانند یک فرمول ریاضی
- کار بسیار ساده با اشیاء هندسی. موارد اولیه مثلث، مستطیل، چند ضلعی، بیضی، ستاره، مکعب، کره، ابرمکعب و ابرکره هستند. از کار با ابرهای نقطه پشتیبانی می کند
- 5 نوع شرایط مرزی را می توان در نظر گرفت: دیریکله، نویمان، رابین، دوره ای و عمومی، که می تواند در یک منطقه دلخواه یا در مجموعه ای از نقاط مشخص شود.
به طور کلی یک کتابخانه عالی برای PINN و برنامه های مشابه
🖥 GitHub
🟡 Docks
#library
#Python_tricks
#python
🆔 @Python4all_pro
- pip install deepxde
ویژگی ها :
؛DeepXDE الگوریتم های زیادی را پیاده سازی می کند و بسیاری از توابع را پشتیبانی می کند:
-؛ DeepXDE به شما اجازه می دهد تا کد را بسیار مختصر بنویسید، تقریباً مانند یک فرمول ریاضی
- کار بسیار ساده با اشیاء هندسی. موارد اولیه مثلث، مستطیل، چند ضلعی، بیضی، ستاره، مکعب، کره، ابرمکعب و ابرکره هستند. از کار با ابرهای نقطه پشتیبانی می کند
- 5 نوع شرایط مرزی را می توان در نظر گرفت: دیریکله، نویمان، رابین، دوره ای و عمومی، که می تواند در یک منطقه دلخواه یا در مجموعه ای از نقاط مشخص شود.
به طور کلی یک کتابخانه عالی برای PINN و برنامه های مشابه
🖥 GitHub
🟡 Docks
#library
#Python_tricks
#python
🆔 @Python4all_pro
اسکریپت ساده پایتون برای تبدیل PDF به کتاب صوتی
مراحل اجرای پروژه :
ابتدا فایل PDF را می گیریم و هر صفحه را با استفاده از نرم افزار PyMuPDF به تصویر تبدیل می کنیم.
سپس با استفاده از نرم افزار Pytesseract OCR، تصویر(ها) را می گیریم و متن داخل تصویر را اسکن می کنیم.
سپس از کتابخانه Google Text to Speech (gTTS) برای تبدیل متن به فایل صوتی استفاده می کنیم.
در نهایت، میکسر Pygame را برای پخش فایل صوتی با صدای بلند دریافت می کنیم.
دریافت کد و اجرای پروژه👇👇
https://morioh.com/p/fc5a77c42ba0?f=5c21fb01c16e2556b555ab32
#library
#Python_tricks
#python
🆔 @Python4all_pro
مراحل اجرای پروژه :
ابتدا فایل PDF را می گیریم و هر صفحه را با استفاده از نرم افزار PyMuPDF به تصویر تبدیل می کنیم.
سپس با استفاده از نرم افزار Pytesseract OCR، تصویر(ها) را می گیریم و متن داخل تصویر را اسکن می کنیم.
سپس از کتابخانه Google Text to Speech (gTTS) برای تبدیل متن به فایل صوتی استفاده می کنیم.
در نهایت، میکسر Pygame را برای پخش فایل صوتی با صدای بلند دریافت می کنیم.
دریافت کد و اجرای پروژه👇👇
https://morioh.com/p/fc5a77c42ba0?f=5c21fb01c16e2556b555ab32
#library
#Python_tricks
#python
🆔 @Python4all_pro
368 solved Python problems with Leetcode
Here you can find a lot of litcode problems with solutions in Python.
Here are the conditions for some of the tasks:
- find the most popular word in the set
— remove one element so that the list is strictly ascending
— merge k sorted lists
— go around the matrix in a spiral and collect the resulting numbers
▶️ https://github.com/qiyuangong/leetcode
#Python_tricks
#python
🆔 @Python4all_pro
Here you can find a lot of litcode problems with solutions in Python.
Here are the conditions for some of the tasks:
- find the most popular word in the set
— remove one element so that the list is strictly ascending
— merge k sorted lists
— go around the matrix in a spiral and collect the resulting numbers
▶️ https://github.com/qiyuangong/leetcode
#Python_tricks
#python
🆔 @Python4all_pro
JPype
؛JPype ماژولی است که به شما امکان می دهد با کدهای جاوا از پایتون تعامل داشته باشید.
قابلیت های JPype:
- دسترسی به کتابخانه های جاوا از پایتون.
- یکپارچه سازی با کد جاوای موجود.
- استفاده از JVM از پایتون.
در این مثال کلاس String را از جاوا وارد کرده و نمونه ای از این کلاس ایجاد می کنیم.
سپس متد ()toUpperCase را در شی javaString فراخوانی می کنیم. بنابراین، از پایتون می توانیم با اشیا کار کنیم و متدهای جاوا را فراخوانی کنیم.
Result of the program:
HELLO FROM JAVA!
#Python_tricks
#python
🆔 @Python4all_pro
؛JPype ماژولی است که به شما امکان می دهد با کدهای جاوا از پایتون تعامل داشته باشید.
قابلیت های JPype:
- دسترسی به کتابخانه های جاوا از پایتون.
- یکپارچه سازی با کد جاوای موجود.
- استفاده از JVM از پایتون.
در این مثال کلاس String را از جاوا وارد کرده و نمونه ای از این کلاس ایجاد می کنیم.
سپس متد ()toUpperCase را در شی javaString فراخوانی می کنیم. بنابراین، از پایتون می توانیم با اشیا کار کنیم و متدهای جاوا را فراخوانی کنیم.
Result of the program:
HELLO FROM JAVA!
#Python_tricks
#python
🆔 @Python4all_pro
🖥 ؛Litetar یک فریمورک قدرتمند و انعطاف پذیر ASGI است که بر ایجاد API متمرکز شده است
—
Litestar offers data validation, dependency injection, ORM integration, authorization primitives, and much more that you need to get your applications up and running.
A simple example of using Litestar:
from litestar import Litestar, get
🖥 GitHub
👉 Docks
#Python_tricks
#python
🆔 @Python4all_pro
—
pip install litestar
Litestar offers data validation, dependency injection, ORM integration, authorization primitives, and much more that you need to get your applications up and running.
A simple example of using Litestar:
from litestar import Litestar, get
@get("/")
async def hello_world() -> str:
return "Hello, world!"
app = Litestar([hello_world])
🖥 GitHub
👉 Docks
#Python_tricks
#python
🆔 @Python4all_pro
این سایت با انیمیشن و به صورت بصری به شما الگوریتم هارو یاد میده و میتونید ازش برای یادگیری الگوریتم استفاده کنید.
http://www.algoanim.ide.sk/
🆔 @Python4all_pro
http://www.algoanim.ide.sk/
🆔 @Python4all_pro
www.algoanim.ide.sk
Algorithm Animations and Visualizations
Algoanim.ide.sk - collection of computer science algorithm animations and visualizations for teaching and learning programming.
Tornado: a web framework for asynchronous network operations
Tornado is a web framework and Python library designed to handle network operations asynchronously.
Features of Tornado:
* Non-blocking I/O processing that scales to tens of thousands of active connections.
* Independence from the WSGI standard, which makes it different from most Python web frameworks.
* Integration with the asyncio module from the Python standard library, providing the same event loop.
* Support for long polling and web sockets.
Link: https://www.tornadoweb.org/en/stable/
#library
#python
🆔 @Python4all_pro
Tornado is a web framework and Python library designed to handle network operations asynchronously.
Features of Tornado:
* Non-blocking I/O processing that scales to tens of thousands of active connections.
* Independence from the WSGI standard, which makes it different from most Python web frameworks.
* Integration with the asyncio module from the Python standard library, providing the same event loop.
* Support for long polling and web sockets.
Link: https://www.tornadoweb.org/en/stable/
#library
#python
🆔 @Python4all_pro
Forwarded from تهران دیتا-دانشگاه تهران
شروع دوره:
جامعترین دوره پروژه محور علم داده کل کشور
15 سرفصل کاربردی با 12 نرم افزار و ابزار تخصصی
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Run #Javascript code using #python subprocess #Library
#code
🆔 @Python4all_pro
import subprocess
js_code = """
console.log("Hello, World!");
"""
with open("script.js", "w") as file:
file.write(js_code)
result = subprocess.run(["node", "script.js"], capture_output=True, text=True)
print(result.stdout)
#code
🆔 @Python4all_pro
Find system name , version processor using #python.
#code
🆔 @Python4all_pro
import platform
system_name = platform.system()
system_version = platform.version()
architecture = platform.architecture()[0]
processor = platform.processor()
print("OS:", system_name)
print("OS Version:", system_version)
print("32 or 64:", architecture)
print("Processor :", processor)
#code
🆔 @Python4all_pro
Downloading a Audio file from YouTube Video
Free Code: https://www.clcoding.com/2024/06/downloading-audio-file-from-youtube.html
#code
🆔 @Python4all_pro
Free Code: https://www.clcoding.com/2024/06/downloading-audio-file-from-youtube.html
#code
🆔 @Python4all_pro
Convert Image to text
#code
🆔 @Python4all_pro
import pytesseract as t
from PIL import Image
img = Image.open("photo.jpg")
text = t.image_to_string(img)
print(text)
#code
🆔 @Python4all_pro
-Location of Mobile Number Code -
#code
🆔 @Python4all_pro
import phonenumbers
from phonenumbers import (timezone,geocoder,carrier)
number = input("Enter the phone number with country code : ")
# Parsing String to the Phone number
phoneNumber = phonenumbers.parse(number)
# printing the timezone using the timezone module
timeZone = timezone.time_zones_for_number(phoneNumber)
print(f"timezone : {timeZone}")
# printing the geolocation of the given number using the geocoder module
geolocation = geocoder.description_for_number(phoneNumber,"en")
print(f"location : {geolocation}")
# printing the service provider name using the carrier module
service = carrier.name_for_number(phoneNumber,"en")
print(f"service provider : {service}")
#code
🆔 @Python4all_pro