Files
hpos-data/README.md

57 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2023-08-08 03:02:26 +00:00
# hpos-data
2023-08-16 11:26:23 +05:30
Repo for all data related work.
2024-02-19 19:38:02 +05:30
`scripts` contains all the data processing scripts. `cloud-functions` contains all the funtions written in Node.js and python.
2023-12-10 16:57:26 +05:30
`queries` contains sql queries. `train` has the training files and `cuda` folder is for cuda kernels.
2023-08-16 11:26:23 +05:30
2023-08-16 11:21:39 +05:30
### installation
2023-08-08 03:02:26 +00:00
2023-12-10 16:57:26 +05:30
pip install requirements.txt
2023-08-08 03:02:26 +00:00
2024-01-21 15:39:05 +05:30
### run tests
pytest
2023-12-10 16:57:26 +05:30
### some functions are deplyed with endpoints
2023-08-21 14:39:15 +05:30
https://asia-south1-hpos-af3cc.cloudfunctions.net/registerUser
2023-12-08 21:43:32 +05:30
### gcloud set project
gcloud config set project hpos-qa
2023-09-07 18:04:46 +05:30
### deploy specific function
2023-12-08 21:43:32 +05:30
firebase deploy --only functions:consolidation
2024-02-19 20:27:27 +05:30
### deploy function with gcloud - nodejs
gcloud functions deploy registerUser --runtime nodejs18 --trigger-http --region asia-south1
### deploy function with gcloud - python
2023-12-08 21:43:32 +05:30
gcloud functions deploy my_function --runtime=python311 --region=asia-south1 --trigger-http --allow-unauthenticated
2023-12-14 21:03:09 +05:30
gcloud functions deploy clearusers --runtime=python311 --region=asia-south1 --trigger-http --memory=512MB
2023-12-08 21:43:32 +05:30
2024-02-19 19:38:02 +05:30
gcloud functions deploy consolidation --runtime=python311 --region=asia-south1 --trigger-http --allow-unauthenticated --memory=512MB
gcloud functions deploy performance --runtime=python311 --region=asia-south1 --trigger-http --allow-unauthenticated --memory=512MB
2024-01-27 01:41:53 +05:30
2023-12-08 21:43:32 +05:30
### function log
2023-12-14 21:03:09 +05:30
gcloud functions logs read performance --region=asia-south1 --limit=100
2024-01-21 15:39:05 +05:30
### list buckets
gcloud storage ls
### list devices
ls /dev/cu*