Logo
Explore Help
Register Sign In
sadmen
/
openpilot_comma
mirror of https://github.com/commaai/openpilot.git
1
0
Fork
You've already forked openpilot_comma
0
Code Issues Packages Projects Releases Wiki Activity
openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
4238 Commits
133 Branches
82 Tags
6.0 GiB
Tree: c81ffbf34b
openpilot_comma/tools/lib/filereader.py

9 lines
204 B
Raw Normal View History Unescape Escape

remove parallel url downloader old-commit-hash: 927ef086f785409931e4d9c5d1274e9ab5d1568a
5 years ago
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
5 years ago
merge in tools old-commit-hash: 29ac3da7b84426c6764150cb233b9c7bab1446d8
5 years ago
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
5 years ago
def FileReader(fn, debug=False):
if fn.startswith("http://") or fn.startswith("https://"):
return URLFile(fn, debug=debug)
else:
return open(fn, "rb")
Powered by Gitea Version: 1.17.1 Page: 126ms Template : 4ms
English
Bahasa Indonesia Deutsch English Español Français Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Српски Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Website