|
Formula Student Autonomous Systems
The code for the main driverless system
|
Functions | |
| setup_gcs_client () | |
| Set up the Google Cloud Storage client. | |
| upload_csv_to_bucket (bucket_name, source_file_name, destination_blob_name) | |
| Upload a CSV file to a Google Cloud Storage bucket. | |
| download_csv_from_bucket_to_folder (bucket_name, source_blob_name, destination_folder, file_name) | |
| Download a CSV file from a Google Cloud Storage bucket to a specified folder. | |
| list_blobs (bucket_name) | |
| List all files in a Google Cloud Storage bucket. | |
| bucket_operations.download_csv_from_bucket_to_folder | ( | bucket_name, | |
| source_blob_name, | |||
| destination_folder, | |||
| file_name | |||
| ) |
Download a CSV file from a Google Cloud Storage bucket to a specified folder.
Args: bucket_name: Name of the bucket to download the file from. source_blob_name: Name of the file in the bucket. destination_folder: Folder to save the file to. file_name: Name of the file to save.
Definition at line 34 of file bucket_operations.py.

| bucket_operations.list_blobs | ( | bucket_name | ) |
List all files in a Google Cloud Storage bucket.
Args: bucket_name: Name of the bucket to list files from.
Definition at line 58 of file bucket_operations.py.

| bucket_operations.setup_gcs_client | ( | ) |
Set up the Google Cloud Storage client.
Definition at line 5 of file bucket_operations.py.

| bucket_operations.upload_csv_to_bucket | ( | bucket_name, | |
| source_file_name, | |||
| destination_blob_name | |||
| ) |
Upload a CSV file to a Google Cloud Storage bucket.
Args: bucket_name: Name of the bucket to upload the file to. source_file_name: Path to the file to upload. destination_blob_name: Name of the file in the bucket.
Definition at line 17 of file bucket_operations.py.
