Подразумеваемые неймспейсы или неявные пакеты.
Этот функционал добавлен в 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
#BLZ/USDT analysis :
#BLZ is in an uptrend, making Higher Highs (HHs) and Higher Lows (HLs) above the 200ema. The price broke the trendline after bouncing from a support zone. It's likely to keep up its bullish momentum and aim for previous highs.
TF : 15min
Entry : $0.1547
Target : $0.1600
SL : $0.1507
#BLZ | S/R Breakout Confirmation Detected🧐
No FOMO, No FUD.
Everyday we are getting bunch of trade opportunities whatever the market conditions are.
Life? Difficult.
Trade? Simple.
Try out algorithm based detections, enjoy profits 💸
#BLZ👀
It seems to be in the accumulation phase lately.
If the candle closes below the support, we can say Stop-Loss. Then there will be a downside opportunity 📉
How did we come up with this analysis?
We used the Support and Resistance detection of Coinlegs algorithm 👑
Check it out today.
#BLZ follows a descending channel pattern and seems to be gearing up for a bullish breakout. The next key target to watch after the breakout is the internal minor resistance at $0.1550 .
If #BLZ holds steady at $0.1110, we could be on the brink of a significant bullish rally, much like those explosive moves we've seen before. A breakout above the crucial resistance at $0.150 could pave the way for a run toward even higher resistance zones
-caution is essential. If momentum weakens at this critical demand zone, we might see a pullback to the lower demand area around $0.0800-
#BLZ is moving up in the bullish channel on Daily time frame, price has a good support on Green zone,we expect another pump from this area 🚀
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#BLZ is moving up in a broadening channel,we expect it will pump again from the bottom of this pattern..⏳
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
You missed one more quick profit 😢 almost (395%🔥)in 14x
#BLZ/USDT (7 - 14)X
📉SHORT
➖➖➖➖➖➖➖➖➖➖
💵Target 1=0.228✅
💵Target 2=0.221✅
💵Target 3=0.213✅
💵Target 4=0.2046✅
💵Target 5=0.189✅
💵Target 6=0.175✅
🔥394.38% Profits in (14X) 🔥
🔘Six target deatroyed within few days leaving us huge profits even in this worse market.
🔘It was a perfect call exactly from the top. We knew BLZ/usdt will fall hardly. This one made us huge profits🔥.
🔘Our premium members are literally printing money out of our perfect trades.
🔘For premium Contact @cryptomathh
➖➖➖➖➖➖➖➖
Crypto Signals Premium
#BLZ
On the coin there are signs of formation of ascending OF, liquidity removal from below, and reaction from the OB area, so let's try to open long, on removal of upper magnets
📈Sign up on Bybit to trade with me