|
|
(не показано 7 промежуточных версий этого же участника) |
Строка 2: |
Строка 2: |
| === 2020-10 === | | === 2020-10 === |
| | | |
| + | * 2020-10-29, 00:10:17: [https://pypi.org/project/pygtail/ pygtail · PyPI] |
| + | *: <html><span class="kn">from</span> <span class="nn">pygtail</span> <span class="kn">import</span> <span class="n">Pygtail</span> <span class="k">for</span> <span class="n">line</span> <span class="ow">in</span> <span class="n">Pygtail</span><span class="p">(</span><span class="s2">"some.log"</span><span class="p">):</span> <span class="n">sys</span><span class="o">.</span><span class="n">stdout</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">line</span><span class="p">)</span></html> |
| + | <!-- NEXT BOOKMARK --> |
| + | * 2020-10-29, 00:09:15: [https://stackoverflow.com/questions/36327265/python-parse-log-file-in-realtime-reload-when-the-log-rotates Python Parse log file in realtime, reload when the log rotates - Stack Overflow] |
| + | *: <html><span class="hljs-keyword">import</span> os file_path = <span class="hljs-string">'/var/log/app/access.log'</span> <span class="hljs-keyword">with</span> open(file_path) <span class="hljs-keyword">as</span> f: file_size = <span class="hljs-number">0</span> <span class="hljs-keyword">while</span> <span class="hljs-literal">True</span>: line = f.readline() <span class="hljs-keyword">if</span> line: <span class="hljs-keyword">print</span> line file_status_obj = os.stat(file_path) <span class="hljs-keyword">if</span> file_size < file_status_obj.st_size: f.seek(<span class="hljs-number">0</span>) file_size = file_status_obj.st_size </html> |
| + | <!-- NEXT BOOKMARK --> |
| + | * 2020-10-28, 23:11:37: [https://github.com/Rune28/Uchi/blob/c955d157c1ad85db19cbbece9e61cb8924ad4e40/event_data_parser.py Uchi/event_data_parser.py at c955d157c1ad85db19cbbece9e61cb8924ad4e40 · Rune28/Uchi] |
| + | * 2020-10-28, 23:08:22: [https://github.com/search?l=Python&p=10&q=clickhouse_driver&type=Code Search · clickhouse_driver] |
| + | * 2020-10-28, 23:04:44: [https://github.com/ericmccarthy7/clickhouse-pool/blob/ac438b1f331a166be98faee2ab081e4afc7c59bc/clickhouse_pool/pool.py clickhouse-pool/pool.py at ac438b1f331a166be98faee2ab081e4afc7c59bc · ericmccarthy7/clickhouse-pool] |
| + | * 2020-10-28, 19:53:31: [https://github.com/recoilme/pudge recoilme/pudge: Fast and simple key/value store written using Go's standard library] |
| + | * 2020-10-28, 18:39:29: [https://habr.com/ru/company/vk/blog/430168/ Использование ClickHouse в VK, или Зачем мы написали KittenHouse / Блог компании ВКонтакте / Хабр] |
| + | * 2020-10-25, 16:00:41: [https://www.virtualbox.org/wiki/Testbuilds Testbuilds – Oracle VM VirtualBox] |
| * 2020-10-24, 23:01:03: [https://stackoverflow.com/questions/58984413/how-to-progammatically-pass-the-callable-to-gunicorn-instead-of-arguments python - How to progammatically pass the callable to gunicorn instead of arguments - Stack Overflow] | | * 2020-10-24, 23:01:03: [https://stackoverflow.com/questions/58984413/how-to-progammatically-pass-the-callable-to-gunicorn-instead-of-arguments python - How to progammatically pass the callable to gunicorn instead of arguments - Stack Overflow] |
| *: <html><button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" aria-describedby="--stacks-s-tooltip-5nem8fah"></button><div id="--stacks-s-tooltip-5nem8fah" class="s-popover s-popover__tooltip pe-none" aria-hidden="true" role="tooltip">This answer is useful<div class="s-popover--arrow"></div></div> <div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="0">0</div> <button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" aria-describedby="--stacks-s-tooltip-o4ee66hq"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"></svg></button></html> | | *: <html><button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" aria-describedby="--stacks-s-tooltip-5nem8fah"></button><div id="--stacks-s-tooltip-5nem8fah" class="s-popover s-popover__tooltip pe-none" aria-hidden="true" role="tooltip">This answer is useful<div class="s-popover--arrow"></div></div> <div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="0">0</div> <button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" aria-describedby="--stacks-s-tooltip-o4ee66hq"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"></svg></button></html> |