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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #239 · 3 мај

Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML. Из плюсов такого подхода стоит отметить вот что: 🔸 готовый, повсеместно используемый и поддерживаемый формат 🔸 простой и понятный файл, удобочитаемый для человека 🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек Но есть и минусы 🔹 затраты времени при записи файла (кодирование данных в нужный формат строки) 🔹 затраты времени при чтении файла (декодирование данных в Python объекты) 🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...) 🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда) 🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи. Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳. 🔸 очень быстрая запись 🔸 чтение значительно быстрей чем JSON, YAML итд 🔸 размер файла значительно меньше, так как нет разметки 🔸 можно записывать данные по мере поступления не загружая всё в память 🔸 можно извлечь любую часть данных независимо Из минусов 🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата) 🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию. 🔹 не так-то просто создать такой файл без специальной библиотеки В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии. (Это не означает что нельзя записать данные разного типа, просто это будет не так удобно) Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого f15d cd29 a564 4578 ... 09e2 9bc4 a696 1253 ... 84e9 4de1 3b23 c24a ... 2534 5161 28e0 709d ... ... Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла. К чему это я? Читайте в следующем посте... #tricks#basic

Резултати

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

Пребарај: #bitcoinetfs

当前筛选 #bitcoinetfs清除筛选
SpotOnChain | Announcement

@spotonchain · Post #805 · 02.05.2024 г., 04:02

🚨 $BTC #ETF Net Inflow May 1, 2024: -$564M! • This is the largest single-day net outflow that the 10 #BitcoinETFs have ever experienced. • All 10 Bitcoin ETFs had single-day outflows, particularly with #BlackRock iShares Bitcoin Trust $IBIT seeing the first outflow since its inception. • The net inflow has been negative for 6 consecutive trading days, marking the longest streak ever. Follow @spotonchain and check out the latest updates about #Bitcoin#ETFs via https://docs.google.com/spreadsheets/d/1eoMB6ivHiKhUt7MIk0fv6gxt9-OlnktfHReHMuvWduA/edit#gid=202744242

SpotOnChain | Announcement

@spotonchain · Post #813 · 08.05.2024 г., 03:59

🚨 $BTC #ETF Net Inflow May 7, 2024: -$16M! • The net inflow turned negative after 2 days of being positive. • The #Grayscale ETF ($GBTC) re-experienced a single-day outflow of $28.6M after 2 days with inflows. • Overall, the single-day inflows and outflows of all 10 #BitcoinETFs had slowed down significantly, with five out of ten ETFs (including #BlackRock ETF $IBIT) experiencing zero flow. Follow @spotonchain and check out the latest updates about #Bitcoin ETFs via https://docs.google.com/spreadsheets/d/1eoMB6ivHiKhUt7MIk0fv6gxt9-OlnktfHReHMuvWduA/edit#gid=202744242

SpotOnChain | Announcement

@spotonchain · Post #808 · 04.05.2024 г., 02:08

🚨 $BTC #ETF Net Inflow May 3, 2024: +$343M! • #Grayscale Bitcoin Trust $GBTC experienced the first single-day inflow since its inception. • The net inflow turned positive after being negative for 7 consecutive trading days. • 8/10 #BitcoinETFs had inflows, led by #Fidelity Wise Origin Bitcoin Fund $FBTC with $102.6M, while the single-day inflow of #BlackRock iShares Bitcoin Trust $IBIT remained weak at $13M. Follow @spotonchain and check out the latest updates about #Bitcoin#ETFs via https://docs.google.com/spreadsheets/d/1eoMB6ivHiKhUt7MIk0fv6gxt9-OlnktfHReHMuvWduA/edit#gid=202744242

TOP Signals Spot

@cryptocurreniesbtc · Post #22928 · 03.08.2024 г., 06:09

US #BitcoinETFs Sold -3,628 BTC (~$237.45M) yesterday🚀 1⃣#BlackRock +655 BTC 2⃣#Grayscale -702 BTC 3⃣#Fidelity -1,590 BTC 4⃣#Bitwise -450 BTC 5⃣#ARK & 21Shares -1,340 BTC 6⃣#VanEck -352 BTC 7⃣ Grayscale $BTC +$152M Yesterday Again BlackRock in Positive Inflow.

Crypto M - Crypto News

@CryptoM · Post #65180 · 11.04.2026 г., 16:54

🚀 Bitcoin Market Divides Amid Ongoing U.S.-Iran Tensions The Bitcoin market is experiencing a notable division amid the ongoing U.S.-Iran geopolitical tensions, which have persisted for approximately six weeks. According to ChainCatcher, the market is split between passive buyers, such as those involved with Strategy and spot ETFs, who continue to accumulate, and entities like whales, mining companies, and some sovereign holders, who are reducing their holdings. On the selling side, there is a clear trend: whale addresses holding between 1,000 and 10,000 BTC have shifted from net buying to significant net selling, with their holdings changing from an increase of about 200,000 BTC to a decrease of 188,000 BTC this year. Publicly listed mining companies, under pressure from high costs, have also been selling off, with weekly sales exceeding 19,000 BTC. Additionally, sovereign holders like Bhutan have reduced their Bitcoin reserves by approximately 70% since October 2024. Analysts note that despite market sentiment reaching extreme fear levels, Bitcoin's price has remained within the $65,000 to $73,000 range. This stability suggests that the price floor is primarily supported by a few institutional buyers. The current market's buying base is narrowing, and future trends will depend on whether institutional capital inflows can continue and break through key resistance levels. #Bitcoin#Cryptocurrency#BitcoinMarket#USIranTensions#CryptoTrading#BitcoinWhales#InstitutionalInvestors#BitcoinETFs#CryptoAnalysis#MarketTrends#BTC