Подразумеваемые неймспейсы или неявные пакеты.
Этот функционал добавлен в Python 3.3
Что он означает?
Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py.
Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета".
Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта.
Конечно, не любую в файловой системе, а только те что находятся в sys.path.
Это значит, что теперь __init__.py нужно делать только если:
🔸 вам требуется создать код инициализации пакета
🔸 нужна совместимость со старыми версиями Python
На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего.
Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов.
repo_name/
my_library/
__init__.py
main.py
examples/
exam1.py
exam2.py
В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет.
Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет!
#basic#pep
Telegram Apps Center Bonus Program Continues
Telegram Apps Center has simplified the point accumulation system for mini-app users. Now you can save your progress and claim the prize pool by using an extra life! ❤️❤️❤️
Do your still keep streak?😲
#TON#TMA#Telegram
🚀xRocket wallet is now available in the Telegram Mini App🥳
🔵 Now, every xRocket user can easily view, send, exchange, and receive assets through a sleek and user-friendly webinterface directly within Telegram.
🚀 Stay tuned for updates because even more awesome features are coming soon, and the next version of the wallet will include $XROCK staking.
Start using xRocket wallet
🫡
#xRocket#TMA#wallet
ИТАК: КАК ПОПАСТЬ НА ИВЕНТ ПО TMA?
Во-первых, и я уже давно об этом говорю - The Bridge Finance Club это бизнес-клуб и, чтобы попасть на все события, нужно становиться его резидентом.
Но! я понимаю, что для кого-то "не нужно" или дорого - я сделала разовый вход, за 25 000 тысяч.
ОДНАКО!
Ценность аудитории новых проектов в их скилах, лояльности и желании коллаборироваться гораздо больше, чем в деньгах!
Поэтому, уже сейчас, благодаря партнерсву с Росбанком и поддержке со стороны комьюнити и компании Programmatica.com ,
мне удалось собрать в закрытом чате 100 профессионалов рынка, которые будут участвовать как онлайн, так и офлайн.
⚡️Для всех жедающих попасть на ивент онлайн СКОРО будет ссылка, абсолютно бесплатно!
Для тех кто в Москве и захочет посетить ивент, у вас будет такая вожность разового посещения со скидкой 80% (5к рублей)
Нужно будет подписаться на мои два канала и зарегистрироваься в боте, который скоро мы запустим!
ГОТОВЬТЕСЬ
#TheBridgeFinanceClub#TMA#Rosbank#ByDvoretskaia
👋 Introducing AppVerse – the awesome Telegram catalog of mini apps!
🔍 Looking for awesome games or useful tools right inside Telegram?
🙂 Want to discover new mini apps without ads or clutter?
AppVerse:
✉️ A catalog of the best Telegram Mini Apps
✍️ Neatly organized by category: games, utilities, tools
🌐 Direct launch links – no extra steps
🛠 Daily updates and top new picks
Turn your Telegram into an App Store — discover AppVerse now❗
🔗AppVerseBot
Follow, explore, and share with friends ❤️
#AppVerse#MiniApps#TMA#Catalog
🌑TON Fest Has Begun — Day1️⃣
TON Fest is a fully immersive virtual world built with Telegram Mini Apps, featuring leading and emerging projects in the Web3 space. Jump in with your avatar, complete quests, and win rewards!
How to join:
🎟 You’ll need a ticket
🖥 Use a powerful device (smartphone or PC recommended)
🧹 Clear your Telegram cache and close background apps
🔋 Fully charge your battery
🧩 Full details: Quest Guide
Quick Start Guide:
Open the TON Fest App, wait for it to load, go to the "Mining" tab, light the fire (blow into your mic 3 times) — and watch your Fire Energy convert into STAMINA.
Energy System Overview:
🔵Fire Energy regenerates every 4 hours
🔵STAMINA is used to complete quests
🔵Boost your max energy (1,000 base) by inviting friends, redeeming promo codes, and upgrading your Tent
Upgrades Available:
🔵 Fast Burn — instantly converts all Fire Energy into STAMINA
🔵 Bonfire Booster (Fan) — keeps your fire burning automatically
🔵 Tent — adds +1,000 energy cap and instantly refills it
🔵 Hype Boost — details coming soon!
App Tabs:
🔵 Tasks — all available quests
🔵 Stats — your profile, stats, and top-100 rankings (miners, gifters, inviters)
🔵 Festival — track festival phases, buy/gift tickets, enter promo codes, view partners
Promo Codes:
Grab them from friends, giveaways, the official chat, or request from support
💬 Got questions? Join the official chat
🔴Launch TON Festival
#web3#VR#TON#TMA#Quest
🌑TON Fest Extended Through May 28 — you still have time to complete quests and claim rewards from top Web3 Projects!
TON Fest is an immersive virtual world built with Telegram Mini Apps. Complete tasks, join activities, and earn on-chain rewards you won’t find anywhere else.
🎟Grab your ticket to unlock access to VIP zones, premieres, challenges, and exclusive prize pools!
#TON#Web3#Quest#TMA#VR#TONFest
🚀Telegram Apps Center Launches "Streak System"
Telegram Apps Center is a unique platform inside Telegram that allows users to discover and interact with #Web3 ecosystem applications directly in the messenger.
Why is Telegram Apps Center important for the Telegram ecosystem?
Telegram Apps Center is a strategic move for Telegram, allowing the messenger to move from traditional communication to interactive and functional services. By creating a single platform for #Web3 applications, Telegram not only strengthens its position in the market, but also attracts new users interested in innovative technologies.
Activity "Streak System"
From November 18 to December 26, 2024, the Telegram Apps Center is hosting a campaign called "Streak System" . The goal of the campaign is to increase user engagement and interest in the services of the platform's partners.
How to participate:
✔️ Participants must complete daily tasks (currently launching an app) to build and maintain their "streak" — a series of consecutive days of completing tasks.
✔️ For missed days, you can use "lives", which can be earned or purchased for 150 points.
✔️ There is also a referral mechanism where members earn points for attracting new users.
✔️ Later, the "Wheel of Fortune" will be added — a game feature that gives participants the opportunity to win additional prizes and gifts by spending accumulated points.
🏆 Prizes:
The total prize pool is 10,000 TON:
🏅 Main Prize: 1 winner - 2,000 TON.
🏅 Second prizes: 4 winners – 500 TON each.
🏅 Third prizes: 50 winners – 100 TON each.
🏅 Fourth prizes: 100 winners – 10 TON each.
You can read the official rules of the promotion here.
This activity is definitely worth attention!✈️
#appstore#googleplay#TMA#Telegram#TON#dApps
🌑TON Festival: the First Gameplay Presentation is Live!
The event format has grown: now #Festies is a full 3 days of activity in❤️TON, from May 23 to 25.
This is the first experience of its kind in the ecosystem: interactive 3D environment, meetings with Web3 projects, quests, live challenges, prize pools and rewards directly in the on-chain. Gameplay demo is already available 👁
🚘🚘More partners, brands, announcements and surprises are coming soon!
🎟Tickets are still available at the current price, but🔥April 4 – price increase and launch of the STAMINA phase.
Yesterday, an AMA "TMA: The Visual Aspect" was held at X Space— the organizers revealed details of the upcoming event
🎞Play Recording
#Festies#TON#Web3#Gaming#TMA#Blum#YesCoin#Boinkers#Gamee