🖥 Python interpreter written in Python in 500 lines of code
Byterun is a Python interpreter. While working on Byterun, the author discovered that the fundamental structure of the Python interpreter easily fits within the 500-line size limit. This article examines the structure of the interpreter and provides context for further study.
The goal is not to explain everything there is to know about interpreters - as in many other interesting areas of programming and computer science - you can spend years developing a deep understanding of this topic.
Byterun was written by Ned Batchelder, drawing on the work of Paul Schwartz. Its structure is similar to Python's main implementation, CPython, so understanding Byterun will help you understand interpreters in general and the CPython interpreter in particular.
Article: https://aosabook.org/en/500L/a-python-interpreter-written-in-python.html
Github: https://github.com/nedbat/byterun
🆔 @Python4all_pro
Byterun is a Python interpreter. While working on Byterun, the author discovered that the fundamental structure of the Python interpreter easily fits within the 500-line size limit. This article examines the structure of the interpreter and provides context for further study.
The goal is not to explain everything there is to know about interpreters - as in many other interesting areas of programming and computer science - you can spend years developing a deep understanding of this topic.
Byterun was written by Ned Batchelder, drawing on the work of Paul Schwartz. Its structure is similar to Python's main implementation, CPython, so understanding Byterun will help you understand interpreters in general and the CPython interpreter in particular.
Article: https://aosabook.org/en/500L/a-python-interpreter-written-in-python.html
Github: https://github.com/nedbat/byterun
🆔 @Python4all_pro
👍2🔥1
معرفی کتاب ترفندها و ابزارهای پایتون برای دانشمندان داده
با انجام پروژه های این کتاب می تونید پایتون رو بهتر یاد بگیرید و با دنیای علم داده بهتر آشنا شوید :
+۷۰۰ نکته برای کدنویسی بهتر در پایتون
+۱۵۰ مقاله علم داده
راهنمای کار با کتابخانه های محبوب دانشمندان داده
👉https://github.com/khuyentran1401/Efficient_Python_tricks_and_tools_for_data_scientists
📌https://codecut.ai/
#پایتون #علم_داده
🆔 @Python4all_pro
با انجام پروژه های این کتاب می تونید پایتون رو بهتر یاد بگیرید و با دنیای علم داده بهتر آشنا شوید :
+۷۰۰ نکته برای کدنویسی بهتر در پایتون
+۱۵۰ مقاله علم داده
راهنمای کار با کتابخانه های محبوب دانشمندان داده
👉https://github.com/khuyentran1401/Efficient_Python_tricks_and_tools_for_data_scientists
📌https://codecut.ai/
#پایتون #علم_داده
🆔 @Python4all_pro
❤2
VizTracer: A tool to trace and visualize Python code execution, logging function entries/exits, arguments, return values, and variables, with support for threading, multiprocessing, and async operations
https://github.com/gaogaotiantian/viztracer
#python
🆔 @Python4all_pro
https://github.com/gaogaotiantian/viztracer
#python
🆔 @Python4all_pro
👍3
python-sortedcontainers - A library of Python collections that support automatic sorting: SortedList, SortedDict and SortedSet!
🌟 These data structures are implemented in pure Python but provide performance comparable to C libraries. The library stands out for its ease of use, no compilation required, and efficient operations such as insertion, deletion, and lookup that run faster than linear time.
🔐 License: Apache-2.0
🖥 Github
#python #library
🆔 @Python4all_pro
🌟 These data structures are implemented in pure Python but provide performance comparable to C libraries. The library stands out for its ease of use, no compilation required, and efficient operations such as insertion, deletion, and lookup that run faster than linear time.
🔐 License: Apache-2.0
🖥 Github
#python #library
🆔 @Python4all_pro
👍1
🖥 Githubkit
When you call the GitHub API, you manually process HTTP requests, tokens, and JSON responses, which is time-consuming and error-prone.
githubkit, a Python library, provides a clean, typed interface for interacting with the GitHub API
Example:
▪ Github
▪ Documentation
🆔 @Python4all_pro
When you call the GitHub API, you manually process HTTP requests, tokens, and JSON responses, which is time-consuming and error-prone.
githubkit, a Python library, provides a clean, typed interface for interacting with the GitHub API
pip install githubkit
# or, use poetry
poetry add githubkit
# or, use pdm
pdm add githubkit
# or, use uv
uv add githubkit
Example:
from githubkit import Response
from githubkit.versions.latest.models import FullRepository
resp: Response[FullRepository] = github.rest.repos.get("owner", "repo")
repo: FullRepository = resp.parsed_data
print(repo.full_name)
▪ Github
▪ Documentation
🆔 @Python4all_pro
👍1
👍4🔥1
Ollama-OCR: A Python package and Streamlit app using Ollama's vision language models to extract text from images in various formats, with batch processing and local privacy
https://github.com/imanoop7/Ollama-OCR
#python
🆔 @Python4all_pro
https://github.com/imanoop7/Ollama-OCR
#python
🆔 @Python4all_pro
🔥2
معرفی چند سایت مفید برای یادگیری پایتون و SQL
Python
❯ Python ➟ https://realpython.com/
❯ Python ➟ https://www.fullstackpython.com/
❯ Python ➟ https://planetpython.org/
❯ Django ➟ http://learndjango.com
❯ Flask ➟ https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
❯ FastAPI ➟ https://fastapi.tiangolo.com/learn/
❯ Machine Learning ➟ https://www.tensorflow.org/resources/learn-ml
❯ Tensorflow ➟ https://www.tensorflow.org/learn
SQL and NoSQL
❯ SQL ➟ http://sqlbolt.com
❯ SQL ➟ http://sqlzap.com
❯ SQL ➟ http://sqltutorial.org
❯ SQL ➟ http://mode.com/sql-tutorial
❯ MySQL ➟ http://mysqltutorial.org
❯ PostgreSQL ➟ http://postgresqltutorial.com
❯ SQL Server ➟ http://sqlservertutorial.org
❯ Oracle ➟ http://oracletutorial.com
❯ MongoDB ➟ http://mongodbtutorial.org
#Python #Data_Science
🆔 @Python4all_pro
Python
❯ Python ➟ https://realpython.com/
❯ Python ➟ https://www.fullstackpython.com/
❯ Python ➟ https://planetpython.org/
❯ Django ➟ http://learndjango.com
❯ Flask ➟ https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
❯ FastAPI ➟ https://fastapi.tiangolo.com/learn/
❯ Machine Learning ➟ https://www.tensorflow.org/resources/learn-ml
❯ Tensorflow ➟ https://www.tensorflow.org/learn
SQL and NoSQL
❯ SQL ➟ http://sqlbolt.com
❯ SQL ➟ http://sqlzap.com
❯ SQL ➟ http://sqltutorial.org
❯ SQL ➟ http://mode.com/sql-tutorial
❯ MySQL ➟ http://mysqltutorial.org
❯ PostgreSQL ➟ http://postgresqltutorial.com
❯ SQL Server ➟ http://sqlservertutorial.org
❯ Oracle ➟ http://oracletutorial.com
❯ MongoDB ➟ http://mongodbtutorial.org
#Python #Data_Science
🆔 @Python4all_pro
Realpython
Python Tutorials – Real Python
Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
👍1
🖥 Magic Wormhole
Magic Wormhole is a library and command line utility for securely transferring files, folders or text between computers!
🌟 The transfer process is organized using unique “wormhole codes” that are easy to pronounce and entered manually or through auto-completion. These codes are one-time use, which ensures a high level of security.
🔐 License: MIT
🖥 Github
#library #Python
🆔 @Python4all_pro
Magic Wormhole is a library and command line utility for securely transferring files, folders or text between computers!
🌟 The transfer process is organized using unique “wormhole codes” that are easy to pronounce and entered manually or through auto-completion. These codes are one-time use, which ensures a high level of security.
🔐 License: MIT
🖥 Github
#library #Python
🆔 @Python4all_pro
❤3