Files
hpos-data/README.md
2024-01-21 15:39:05 +05:30

49 lines
1.0 KiB
Markdown

# hpos-data
Repo for all data related work.
`scripts` contains all the data processing scripts. `cloud-functions` conatins all the funtions written in Node.js and python.
`queries` contains sql queries. `train` has the training files and `cuda` folder is for cuda kernels.
### installation
pip install requirements.txt
### run tests
pytest
### some functions are deplyed with endpoints
https://asia-south1-hpos-af3cc.cloudfunctions.net/registerUser
### gcloud set project
gcloud config set project hpos-qa
### deploy specific function
firebase deploy --only functions:consolidation
### deploy function with gcloud
gcloud functions deploy my_function --runtime=python311 --region=asia-south1 --trigger-http --allow-unauthenticated
gcloud functions deploy clearusers --runtime=python311 --region=asia-south1 --trigger-http --memory=512MB
### function log
gcloud functions logs read performance --region=asia-south1 --limit=100
### list buckets
gcloud storage ls
### list devices
ls /dev/cu*