DAVRON_CODER Telegram 1355
pyproject.toml + Poetry 🔥

Ko'pchiligimiz Python loyihalarda (men ham)requirements.txt ishlatamiz. Lekin bilasizmi, bu usul eskirgan?)

requirements.txt faqat kutubxonalar ro‘yxatini saqlaydi, lekin Python versiyasi, qayerdan o'rnatilgani haqida malumot yuq.

Zamonaviy yechim esa pyproject.toml va Poetry.

Bu loyihani:
- barqaror qiladi
- har kimda bir xil muhit yaratadi
- dependency boshqaruvini yengillashtirar ekan

Masalan, pyproject.toml fayli shunday ko‘rinadi👇


[tool.poetry]
name = "myproject"
version = "0.1.0"
description = "Awesome Python project"
authors = ["Davronbek <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
flask = "^3.0.0"
requests = "^2.31.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"


Poetry shu fayldan foydalanib, virtual environment yaratadi va kutubxonalarni to‘liq nazorat qiladi.
Bu - xuddi Node.js’dagi package.json va package-lock.json kabi ishlaydi.

Xullas:
requirements.txt --> kechagi kun
pyproject.toml --> bugun va ertangi kun "deyishmoqda"

More 👈
Please open Telegram to view this post
VIEW IN TELEGRAM
👍11🔥4🤝41



tgoop.com/davron_coder/1355
Create:
Last Update:

pyproject.toml + Poetry 🔥

Ko'pchiligimiz Python loyihalarda (men ham)requirements.txt ishlatamiz. Lekin bilasizmi, bu usul eskirgan?)

requirements.txt faqat kutubxonalar ro‘yxatini saqlaydi, lekin Python versiyasi, qayerdan o'rnatilgani haqida malumot yuq.

Zamonaviy yechim esa pyproject.toml va Poetry.

Bu loyihani:
- barqaror qiladi
- har kimda bir xil muhit yaratadi
- dependency boshqaruvini yengillashtirar ekan

Masalan, pyproject.toml fayli shunday ko‘rinadi👇


[tool.poetry]
name = "myproject"
version = "0.1.0"
description = "Awesome Python project"
authors = ["Davronbek <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
flask = "^3.0.0"
requests = "^2.31.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"


Poetry shu fayldan foydalanib, virtual environment yaratadi va kutubxonalarni to‘liq nazorat qiladi.
Bu - xuddi Node.js’dagi package.json va package-lock.json kabi ishlaydi.

Xullas:
requirements.txt --> kechagi kun
pyproject.toml --> bugun va ertangi kun "deyishmoqda"

More 👈

BY Davronbek | SWE 🪐




Share with your friend now:
tgoop.com/davron_coder/1355

View MORE
Open in Telegram


Telegram News

Date: |

Matt Hussey, editorial director of NEAR Protocol (and former editor-in-chief of Decrypt) responded to the news of the Telegram group with “#meIRL.” Telegram offers a powerful toolset that allows businesses to create and manage channels, groups, and bots to broadcast messages, engage in conversations, and offer reliable customer support via bots. A Hong Kong protester with a petrol bomb. File photo: Dylan Hollingsworth/HKFP. Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. With the sharp downturn in the crypto market, yelling has become a coping mechanism for many crypto traders. This screaming therapy became popular after the surge of Goblintown Ethereum NFTs at the end of May or early June. Here, holders made incoherent groaning sounds in late-night Twitter spaces. They also role-played as urine-loving Goblin creatures.
from us


Telegram Davronbek | SWE 🪐
FROM American