Logo
Explore Help
Register Sign In
mawei/sunnypilot
1
0
Fork 0
You've already forked sunnypilot
mirror of https://github.com/sunnypilot/sunnypilot.git synced 2026-02-20 00:03:54 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
cfbee2bdcaa445bc2daa9851c2b259a1149c4d2c
sunnypilot/tools/lib/filereader.py

7 lines
193 B
Python
Raw Normal View History

remove parallel url downloader old-commit-hash: 927ef086f785409931e4d9c5d1274e9ab5d1568a
2020-09-21 10:32:08 +02:00
from tools.lib.url_file import URLFile
Speedup URLFile (#1888) * add parallel download support to URLFile * make python 3.8 happy * Fix chunk size * Automatic number of threads * No daemon threads in unlogger * Cache length * dont touch old filereader * Remove debug info * remove debug script * Ignore type old-commit-hash: c70700758d9e3227a157d2e9fdcb9d3204b433c2
2020-07-20 17:10:08 +02:00
Tools: Storage API (#1161) * filereader * support URLs in filereader, logreader * unused * use route files api; add auth file * Implement browser auth * Update readme, fix up cache paths * Add tests, clear token on 401 * Factor out URLFile * space old-commit-hash: c4af05868ba82d4295e3f508e8477f2f6f898834
2020-02-24 21:24:54 -05:00
def FileReader(fn, debug=False):
if fn.startswith("http://") or fn.startswith("https://"):
return URLFile(fn, debug=debug)
FrameIterator that uses 1+ GB less RAM (#21687) old-commit-hash: 8f1806602c4e4a70e073bf1abd8f61206864d652
2021-07-22 12:08:56 -07:00
return open(fn, "rb")
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 95ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API