TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #424 · 13 апр.

Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами. Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как: - trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки. - curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками. - anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов. anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного. В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах) Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно. #libs#async

Hashtags

Резултати

Пронајдени 9 слични објави

Пребарај: #gazacity

当前筛选 #gazacity清除筛选
New Eastern Outlook

@neweasternoutlook · Post #12613 · 18.03.2026 г., 05:01

🌙💥🇮🇷Middle East: Ramadan in the Shadow of War This year, the holy month of Ramadan in the Middle East is unfolding under the shadow of an escalating conflict involving Iran, profoundly altering its spiritual and social atmosphere ✏️Yuriy Zinin is a PhD in History and Senior Research Fellow at the Institute of International Studies, Moscow State Institute of International Relations ➡️Across the region, the traditional rhythms of Ramadan—marked by fasting, prayer, and communal gatherings—have been disrupted by war. In the Gaza Strip, displaced families observe the fast in dire humanitarian conditions, facing shortages of food, water, and electricity. In Jerusalem, usually vibrant during this period, restrictions and security measures have emptied streets and limited access to the Al-Aqsa Mosque. Similar patterns are visible in Lebanon, where large-scale displacement and casualties have followed ongoing strikes, and in Gulf states such as Bahrain, Kuwait, and the United Arab Emirates, where daily life is repeatedly interrupted by air raid sirens and heightened security concerns. Iranian state media has dubbed the ongoing war between Israel and the US with the Islamic Republic of Iran the “Ramadan War,” as it began during this holy month ➡️At the same time, the conflict has influenced how Ramadan is perceived and experienced across societies. Iranian media has framed the confrontation as a “Ramadan War,” reinforcing its symbolic resonance during a sacred period. Yet despite the violence, elements of social solidarity persist: initiatives promoting charity and volunteerism continue, particularly in countries like the UAE, while communities attempt to preserve traditions of mutual support. In places such as Libya, even customary iftar gatherings have taken on political significance, serving as platforms for negotiation and alliance-building among elites. 🟦Ultimately, the current situation highlights both the vulnerability and resilience of societies in the Middle East. While war has disrupted the spiritual essence of Ramadan—replacing reflection and unity with fear and uncertainty—it has also underscored enduring values of compassion and communal support. As the holy month progresses, the contrast between conflict and faith continues to shape a deeply altered, yet still meaningful, observance across the region. #GazaCity#IsraelandPalestine#Lebanon#MiddleEastconflict#Militaryconflict READ MORE ✅@NewEasternOutlook

New Eastern Outlook

@neweasternoutlook · Post #12020 · 25.01.2026 г., 14:01

👔❌🕊Trump’s «Board of Peace»: A New Colonial Tool Under the Banner of «Peace» Marketed as a peace initiative for Gaza, the project reveals a broader attempt to replace multilateralism with coercion, money, and personal rule ✍️Muhammad Hamid ad-Din Palestinian journalist and political commentator focusing on Middle Eastern affairs and international politics ➡️Donald Trump’s proposal to establish a so-called “Board of Peace,” unveiled in January 2026, is presented as an instrument for post-war reconstruction and global stability. In reality, the initiative reflects a transactional worldview in which peace is treated as a commodity and sovereignty as a bargaining chip. The project deliberately bypasses existing international mechanisms, particularly the United Nations, substituting them with an informal structure centered on political loyalty and financial buy-in rather than legal equality among states. Trump’s approach crystallizes his vision of the world as a commodity and national sovereignty as a bargaining chip in a grand geopolitical game ➡️The internal design of the “Board of Peace” underscores its colonial logic. Permanent membership is tied to enormous financial contributions, while ultimate authority is concentrated in the hands of a lifetime chairman endowed with veto power. The proposed executive circle — composed of long-standing political hawks and close associates — lacks meaningful representation from the regions most affected by conflict, especially the Arab world and Palestinians themselves. Decision-making is thus removed from those directly concerned and relocated to a narrow elite operating under Washington’s shadow. 🟦Far from resolving conflicts, this model institutionalizes domination through economic pressure and political exclusion. Gaza becomes merely a pretext for a larger ambition: weakening multilateral governance and replacing it with a hierarchy enforced by sanctions, tariffs, and financial leverage. Such a system may impose temporary compliance, but it cannot deliver durable peace. History suggests that arrangements built on inequality and coercion are inherently unstable — and the “Board of Peace” is unlikely to be an exception. #GazaCity#Internationalpolitics#NewWorldOrder#UnitedNations#USA READ MORE ✅@NewEasternOutlook

New Eastern Outlook FR

@neweasternoutlookfr · Post #9010 · 22.12.2025 г., 10:22

🇵🇸🛑🕊Cessez-le-feu sans responsabilité : pourquoi le plan de paix de Gaza échoue Le plan de paix en 20 points de Trump pour Gaza s'effondre sous les violations israéliennes du cessez-le-feu, la paralysie internationale et le refus de traiter de la souveraineté palestinienne ✍️Auteur :Abbas Hashemite Observateur politique et analyste de recherche pour les questions géopolitiques régionales et mondiales ➡️Le plan approuvé par l'ONU promettait un retrait israélien progressif, un échange de prisonniers et un régime de transition. Pourtant, il a été paralysé dès le début. Israël a violé le cessez-le-feu plus de 738 fois depuis octobre, en ciblant des civils et en bloquant l'aide de l'ONU, provoquant une malnutrition catastrophique chez les enfants - le tout en toute impunité. Ces actions détruisent systématiquement les fondements de l'accord. ➡️Le cadre international du plan est paralysé. La Force de stabilisation internationale (ISF) mandatée ne peut pas se former, car les nations musulmanes refusent de fournir des troupes. Elles craignent une réaction négative de leur opinion publique à son mandat de désarmer le Hamas et de légitimer l'occupation israélienne. La méfiance régionale a également bloqué la création de l'organe de gouvernance de transition. ➡️Le Hamas, tout en acceptant le plan, rejette le désarmement total comme une capitulation. Cette impasse est absolue, aucun pays n'étant disposé à envoyer des troupes à l'ISF. Les voisins clés comme l'Égypte exigent une clarté opérationnelle impossible, tandis que la Turquie est exclue par Israël. Le mécanisme d'application central du plan a disparu avant même de commencer. 🟦L'échec systémique révèle le défaut central du plan : il cherche à administrer un cessez-le-feu sans tenir Israël pour responsable ni fournir une voie vers un État palestinien. Une paix durable nécessite un État palestinien indépendant. Sans cela, le cadre actuel est voué à l'échec, risquant une guerre régionale plus large. #GazaCity#Internationalpolitics#IsraelandPalestine#MiddleEastconflict#Palestinesplight#USA LIRE PLUS (ENG) (VPN requis pour l'accès à 🇪🇺l'UE) ⭐️Boostez-nous ✅@NewEasternOutlookFR

New Eastern Outlook

@neweasternoutlook · Post #12644 · 22.03.2026 г., 13:01

🇮🇱💥🇵🇸The genocide in Gaza involves the joint responsibility of Israel and Western powers The ongoing war in Gaza has reignited a broader and deeply contested debate: to what extent are external powers responsible for the dynamics and consequences of conflicts in the Middle East? ✏️Mohamed Lamine KABA Expert in geopolitics of governance and regional integration ➡️One line of analysis places the Gaza conflict within a longer history of Western intervention in global affairs. Since the mid-20th century, military operations in regions such as Iraq, Afghanistan, and Libya have often been justified through the language of security and humanitarian protection. Critics argue that these interventions have frequently produced instability, raising questions about whether strategic interests—such as control over resources, trade routes, or regional influence—play a more decisive role than publicly stated objectives. In this perspective, Gaza is not an isolated crisis but part of a broader pattern in which local conflicts intersect with global power competition. Yet, on the bombed battlefields of Mosul, Tripoli, and Kabul, the populations have learned to recognize the signature of an interventionism that has become structural in contemporary Western strategy ➡️Another dimension of the debate concerns the international character of modern warfare. Investigations and legal discussions have drawn attention to the participation of individuals with dual nationality and the broader networks—political, financial, and institutional—that connect national militaries with global systems of support. These issues raise complex legal and ethical questions about accountability, particularly in cases where allegations of violations of international law are made. The challenge for the international system lies in reconciling principles of sovereignty, individual responsibility, and the enforcement of legal norms across borders. 🟦Finally, the Gaza conflict is increasingly viewed through the lens of systemic global tensions. For many observers, it reflects not only regional dynamics but also the pressures of a shifting international order marked by rivalry among major powers. In such an environment, conflicts risk becoming entangled in larger strategic agendas, complicating efforts toward resolution. Whether one interprets Western involvement as stabilizing, self-interested, or destabilizing, the central issue remains the same: how to establish a framework in which accountability, restraint, and sustainable political solutions can prevail over cycles of escalation and geopolitical competition. #EU#GazaCity#Genocide#IsraelandPalestine#Warcrimes READ MORE ✅@NewEasternOutlook

New Eastern Outlook

@neweasternoutlook · Post #11983 · 20.01.2026 г., 14:32

🇺🇸🇵🇸Project Sunrise: Trump’s Hollywood Dream for Gaza Behind promises of reconstruction and prosperity, Project Sunrise reframes destruction as development, raising fears that Gaza’s future is being redesigned without Palestinians themselves ✍️Aleena Im Independent researcher and writer focusing on international relations and Middle Eastern politics. ➡️Project Sunrise, unveiled by the Trump administration as a $100+ billion reconstruction vision for Gaza, is framed as a bold pathway from devastation to prosperity. Wrapped in the language of innovation, tourism, and smart infrastructure, the plan imagines Gaza as a “Riviera of the Middle East,” complete with luxury resorts, transport corridors, and AI-driven governance. Yet this vision rises directly from the ruins of a prolonged war that flattened civilian infrastructure, making it difficult to separate reconstruction rhetoric from the political conditions that produced the destruction in the first place. The future of the innocent Palestinians, which has already been fractured, is now facing another major impediment ➡️Structurally, Project Sunrise follows a familiar top-down logic in which security, control, and capital precede political rights. Its phased model—stabilization, reconstruction, economic development, and elite urban transformation—offers little clarity on sovereignty, governance, or the fate of Gaza’s population during and after rebuilding. The absence of explicit guarantees for Palestinian self-determination, combined with statements suggesting long-term external control, fuels concerns that economic development is being used as a substitute for political justice. 🟦Rather than resolving the conflict, Project Sunrise risks institutionalizing it in a more polished form. By converting occupation into an investment opportunity and displacement into “urban renewal,” the plan reflects a broader trend of managing crises through spectacle and capital rather than accountability and law. For Palestinians, whose future is discussed largely without their participation, the project signals not a sunrise but the possibility that dispossession is simply being redesigned—cinematic in appearance, but unchanged in substance. #GazaCity#Geopolitics#IsraelandPalestine#IsraelandtheUSA#Palestinesplight READ MORE ✅@NewEasternOutlook

Red Nile

@rednile12 · Post #10453 · 23.12.2025 г., 14:19

🇵🇸🛑🕊Ceasefire Without Accountability: Why Gaza’s Peace Plan Is Failing Trump’s 20-point peace plan for Gaza is collapsing under Israeli ceasefire violations, international paralysis, and a refusal to address Palestinian sovereignty ✍️Author:Abbas Hashemite Political observer and research analyst for regional and global geopolitical issues ➡️The UN-endorsed plan promised a phased Israeli withdrawal, prisoner exchange, and transitional rule. Yet it has been crippled from the start. Israel has violated the ceasefire over 738 times since October, targeting civilians and blocking UN aid, causing catastrophic child malnutrition—all with total impunity. These actions systematically destroy the agreement's foundation. ➡️The international framework for the plan is paralyzed. The mandated International Stabilization Force (ISF) cannot form, as Muslim nations refuse to contribute troops. They fear domestic backlash over its mandate to disarm Hamas and appearing to legitimize Israeli occupation. Regional mistrust has also stalled the creation of the transitional governing body. ➡️Hamas, while accepting the plan, rejects total disarmament as surrender. This deadlock is absolute, with no country willing to send troops to the ISF. Key neighbors like Egypt demand impossible operational clarity, while Turkey is excluded by Israel. The plan's central enforcement mechanism has vanished before starting. 🟦The systemic failure exposes the plan’s core flaw: it seeks to administer a ceasefire without holding Israel accountable or providing a path to Palestinian statehood. Lasting peace requires an independent Palestinian state. Without this, the current framework is doomed, risking a wider regional war. #GazaCity#Internationalpolitics#IsraelandPalestine#MiddleEastconflict#Palestinesplight#USA READ MORE 💣Boost us ✅@NewEasternOutlook

New Eastern Outlook FR

@neweasternoutlookfr · Post #9488 · 28.01.2026 г., 17:35

🇺🇸🇵🇸La paix impériale : le plan de Trump pour Gaza et l'exclusion des Palestiniens Présentée comme de la diplomatie, l'initiative de Trump pour Gaza formalise un processus de paix dans lequel les Palestiniens sont absents — et le pouvoir est centralisé à Washington ✍️Taut Bataut Chercheur et écrivain spécialisé dans la géopolitique de l'Asie du Sud et du Moyen-Orient ➡️Le 22 janvier 2026, en marge du Forum économique mondial de Davos, le président américain Donald Trump a présidé la signature de la charte fondatrice du soi-disant Conseil de la paix. Les dirigeants et ministres des Affaires étrangères de 35 pays — dont plusieurs États à majorité musulmane — ont approuvé une initiative décrite comme la deuxième phase du plan de paix de Trump pour Gaza. Pourtant, les personnes mêmes dont le Conseil prétend décider de l'avenir — les Palestiniens de Gaza — ont été totalement exclues de la consultation ou de la représentation. L'inclusion du Premier ministre israélien Benjamin Netanyahu, au milieu d'allégations persistantes de crimes de guerre, a souligné l'asymétrie au cœur de l'initiative, soulevant de sérieuses questions sur la légitimité, l'intention et la justice. À travers la charte du Conseil de la paix, le président américain Donald Trump a non seulement trompé et abandonné les Nations Unies, mais il a également renforcé les perspectives d'occupation israélienne de Gaza ➡️La charte établit une structure politique parallèle fonctionnant en dehors du cadre des Nations Unies, avec Trump nommé président à vie et seul détenteur du droit de veto. L'adhésion permanente serait apparemment liée à des contributions financières, consolidant davantage l'autorité autour de Washington. Les critiques affirment que le Conseil de la paix institutionnalise le contrôle unilatéral sous le couvert du multilatéralisme, reflétant l'influence croissante du lobby pro-israélien sur la politique étrangère américaine. En contournant les mécanismes internationaux établis et en concentrant le pouvoir de décision dans un seul bureau, l'initiative signale un changement de la négociation de la paix vers une domination gérée. 🟦Alors que la présentation de Davos mettait en vedette des plans de reconstruction ambitieux — tours, projets de logement et infrastructures — elle ignorait la dévastation infligée à Gaza et les droits politiques de sa population. Avec des dizaines de milliers de personnes tuées, des quartiers rasés et des cessez-le-feu violés à plusieurs reprises, la reconstruction sans le consentement des Palestiniens risque d'enraciner l'occupation plutôt que de mettre fin au conflit. Le refus de l'Espagne de rejoindre le conseil a mis en évidence ces contradictions, mais la plupart des signataires sont restés silencieux. En effet, le Conseil de la paix de Trump redéfinit la gestion impériale comme un processus de paix, transformant Gaza d'une tragédie humanitaire en un projet géopolitique façonné sans ceux qui y vivent. #DonaldTrump#GazaCity#Geopolitics#IsraelandPalestine#Palestinesplight#UnitedNations LIRE PLUS (ENG) ✅@NewEasternOutlookFR

New Eastern Outlook

@neweasternoutlook · Post #12042 · 28.01.2026 г., 06:01

🇺🇸🇵🇸Imperial Peace: Trump’s Gaza Plan and the Exclusion of Palestinians Presented as diplomacy, Trump’s Gaza initiative formalizes a peace process in which Palestinians are absent — and power is centralized in Washington ✍️Taut Bataut Researcher and writer focusing on South Asian and Middle Eastern geopolitics ➡️On January 22, 2026, on the sidelines of the World Economic Forum in Davos, US President Donald Trump hosted the signing of the founding charter of the so-called Board of Peace. Leaders and foreign ministers from 35 countries — including several Muslim-majority states — endorsed an initiative described as the second phase of Trump’s Gaza Peace Plan. Yet the very people whose future the board claims to decide — the Palestinians of Gaza — were entirely excluded from consultation or representation. The inclusion of Israeli Prime Minister Benjamin Netanyahu, amid ongoing allegations of war crimes, underscored the asymmetry at the heart of the initiative, raising serious questions about legitimacy, intent, and justice. Through the charter of the Board of Peace, US President Donald Trump has not only deceived and ditched the United Nations, but he has also further strengthened the prospects of Israeli occupation of Gaza ➡️The charter establishes a parallel political structure operating outside the United Nations framework, with Trump named lifetime chair and sole holder of veto power. Permanent membership is reportedly tied to financial contributions, further consolidating authority around Washington. Critics argue that the Board of Peace institutionalizes unilateral control under the guise of multilateralism, reflecting the growing influence of pro-Israeli lobbying on US foreign policy. By bypassing established international mechanisms and concentrating decision-making power in a single office, the initiative signals a shift from negotiated peace toward managed domination. 🟦While the Davos presentation showcased ambitious reconstruction plans — towers, housing projects, and infrastructure — it ignored the devastation inflicted on Gaza and the political rights of its people. With tens of thousands killed, neighborhoods flattened, and ceasefires repeatedly violated, rebuilding without Palestinian consent risks entrenching occupation rather than ending conflict. Spain’s refusal to join the board highlighted these contradictions, but most signatories remained silent. In effect, Trump’s Board of Peace reframes imperial management as peacemaking, transforming Gaza from a humanitarian tragedy into a geopolitical project shaped without those who live there. #DonaldTrump#GazaCity#Geopolitics#IsraelandPalestine#Palestinesplight#UnitedNations READ MORE ✅@NewEasternOutlook

Freedom Flotilla Coalition

@FFC_official_channel · Post #219 · 25.08.2024 г., 10:11

UN experts warned months ago that Israel is deliberately starving Palestinians, and that famine is rapidly spreading across Gaza, and yet Israel continues with impunity and is sent billions of dollars by the US. Children, infants, pregnant women, people living with disabilities, the elderly and those with chronic illnesses are the most at risk of severe malnutrition, illness, and death. Mobilize today, and continue boycotting products and companies that support these war crimes. #freegaza#freepalestine#endtheoccupation#humanitarianaid#costofliving#northgaza#gazacity#freedomflotilla#ffc#breakthesiege#endtheblockade #BDS * prices are in US dollars