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 слични објави

Пребарај: #taxtransparency

当前筛选 #taxtransparency清除筛选
IRAS

@irassg · Post #1578 · 25.06.2025 г., 07:43

We are grateful to the participants for their strong commitment to enhancing tax transparency and combating cross-border tax evasion. IRAS remains dedicated to collaborating closely with industry partners to facilitate a smooth implementation process. #LifeatIRAS#internationaltax#taxtransparency

IRAS

@irassg · Post #1815 · 04.11.2025 г., 05:43

Ever wondered how Singapore stays at the forefront of global tax cooperation? Our active participation in international discussions is one way we do so 💪 Just a few weeks ago, Deputy Director Pang Cheng Jong and Senior Manager Kenneth Lim from the International Tax and Relations Division represented the #IRASFam at the 48th OECD Working Party 10 meeting, contributing to crucial discussions that shape the future of international tax transparency and compliance. Our team engaged with the OECD Business Advisory Group on the Amended Common Reporting Standard (CRS) and Crypto-Asset Reporting Framework (CARF), and worked with government delegates to develop interpretative guidance for both standards – work that will directly impact how these frameworks are implemented globally 🌍 Our active participation reflects Singapore’s longstanding commitment to international tax cooperation and reinforces our role as a trusted partner on the global stage 🤝 #LifeatIRAS#internationaltax#taxtransparency

IRAS

@irassg · Post #1570 · 24.06.2025 г., 07:07

💫 Proud to share that our #IRASFam represented Singapore at the 18th Automatic Exchange of Information (AEOI) Peer Review Group meeting, where Senior Assistant Director Ang Ming Kwan (International Tax and Relations Division – Exchange of Information Branch) participated as an International Peer Review Assessor alongside colleagues from the Global Forum Secretariat. Our team also engaged in productive discussions on maintaining consistency in peer review standards and made interventions to champion a level playing field for all jurisdictions. 🤝 Building meaningful connections with the Global Forum Secretariat members and fellow tax administrators has been invaluable. These partnerships drive our shared mission of advancing international tax transparency and compliance. #lifeatIRAS#taxtransparency#internationalrelations

IRAS

@irassg · Post #1402 · 24.02.2025 г., 07:59

Earlier this month, together with MOF, our colleagues from the International Tax and Relations Division represented #IRASFam at the 20th Working Group on ASEAN Forum on Taxation. This meeting provided a platform for ASEAN Member States to learn about key international tax issues, including tax transparency, Base Erosion and Profit Shifting (BEPS) and UN developments. During the forum, our team shared Singapore’s approach and progress in implementing the Crypto Asset Reporting Framework (CARF). Tax Director Gordon Cheong highlighted Singapore's enduring commitment to international tax transparency standards on Exchange of Information on Request, Common Reporting Standard and CARF. We are grateful for this valuable opportunity to strengthen relationships and foster knowledge sharing with our ASEAN counterparts, reinforcing our commitment to regional collaboration in tax administration. #LifeatIRAS#taxtransparency#ASEANcollaboration

IRAS

@irassg · Post #1869 · 26.11.2025 г., 02:10

Our team shared Singapore's journey in implementing the Amended Common Reporting Standard (CRS). Manager Nicole Kan highlighted both Singapore’s implementation progress in accordance with internationally agreed tax transparency standards and our philosophy that robust tax transparency standards are best achieved through genuine partnership with industry stakeholders. This collaborative approach has been instrumental in Singapore's successful CRS implementation. The ASEAN forum reinforced that regional cooperation is essential - through shared experiences in digitalisation, transparency, and tax certainty, ASEAN administrations can build stronger, more efficient systems that benefit businesses and citizens alike 💪 #LifeatIRAS#taxtransparency#ASEANcollaboration#internationaltax

IRAS

@irassg · Post #1253 · 29.11.2024 г., 09:10

🎤 Assistant Commissioner Angela Ang contributed as a panellist, sharing our insights on the Common Reporting Standard. She wore two hats – one as an AEOI Peer Review Group member and another as an Assessed Jurisdiction. 🤝 Tax Director Gordon Cheong chimed in too, emphasising how we had teamed up with industry partners to implement CRS. He highlighted that we will continue to closely engage and partner with the industry as we implement the amended CRS and CARF in the coming years. Read our announcement here and discover more about the Global Forum plenary meeting here. #GlobalForum#AEOI#AutomaticExchangeOfInformation#CARF#TaxTransparency#GFplenary2024