| .. | ||
| alembic | ||
| api | ||
| data | ||
| frontend | ||
| models | ||
| proof_of_concept | ||
| rec | ||
| repositories | ||
| tasks | ||
| .dockerignore | ||
| .env.sample | ||
| .style.yapf | ||
| 1_dump_listings.py | ||
| 3_dump_images.py | ||
| 4_detect_floorplan.py | ||
| 5_routing.py | ||
| 9_recalculate_regex_squaremeter.py | ||
| 91_recalculate_floorplan.py | ||
| alembic.ini | ||
| celery_app.py | ||
| csv_exporter.py | ||
| data_access.py | ||
| database.py | ||
| Dockerfile | ||
| exploration.ipynb | ||
| GUIDE | ||
| main.py | ||
| main_tmp.py | ||
| notifications.py | ||
| ocr.ipynb | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
| redis_repository.py | ||
| runall.sh | ||
| start.sh | ||
| TASKS.md | ||
| ui_exporter.py | ||
Setup
pip install -r requirements.txt
Formatting
yapf --style .style.yapf --recursive .
For VSCode - install yapf extension. Enable formatting using yap and the style file in this repo (there may be an easier way; I put this in my user settings json):
{
"[python]": {
"editor.formatOnSaveMode": "file",
"editor.formatOnSave": true,
"editor.defaultFormatter": "eeyore.yapf",
"editor.formatOnType": false
},
"yapf.args": ["--style", "/home/wizard/code/realestate-crawler/crawler/.style.yapf"]
}
ADB commands (from /Applications/BlueStacks.app/Contents/MacOS):
Set proxy
./hd-adb shell settings put global http_proxy 192.168.9.110:8080
Disable proxy:
/hd-adb shell settings put global http_proxy :0
Connect adb
./hd-adb connect 127.0.0.1:5555
Disconnect adb
/hd-adb disconnect