{"id":23673025,"url":"https://github.com/sloppycoder/edgarai","last_synced_at":"2025-12-20T09:30:19.849Z","repository":{"id":269610686,"uuid":"907983643","full_name":"sloppycoder/edgarai","owner":"sloppycoder","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-31T19:28:11.000Z","size":264,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-12-31T20:27:53.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sloppycoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-24T19:23:12.000Z","updated_at":"2024-12-31T19:28:15.000Z","dependencies_parsed_at":"2024-12-24T20:34:36.837Z","dependency_job_id":null,"html_url":"https://github.com/sloppycoder/edgarai","commit_stats":null,"previous_names":["sloppycoder/edgarai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fedgarai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fedgarai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fedgarai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fedgarai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sloppycoder","download_url":"https://codeload.github.com/sloppycoder/edgarai/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239699579,"owners_count":19682574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-29T11:34:25.579Z","updated_at":"2025-12-20T09:30:19.767Z","avatar_url":"https://github.com/sloppycoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BigQuery Helper Functions\n\n## Deploy\n\n```shell\n# enable APIs\ngcloud services enable \\\n   cloudbuild.googleapis.com \\\n   run.googleapis.com \\\n   cloudfunctions.googleapis.com \\\n   eventarc.googleapis.com \\\n   bigquery.googleapis.com \\\n   pubsub.googleapis.com\n\ngcloud config set compute/region us-central1\n\n# create the bucket\ngsutil mb -l us-central1 -b on -p edgar-ai gs://edgar_666/\n\n# create pub/sub topic\n\n```shell\n# start subscriber for response messages from functions\npython -m gcp_helper\n\n\n# Do the create remote function setup in BigQuery and\n# then invoke function using SQL\nselect `edgar`.trigger_processor('load_master_idx', '2020|1');\n\n select `edgar`.trigger_processor(\n      'chunk_one_filing',\n      '1002427|edgar/data/1002427/0001133228-24-004879.txt')\n  ;\n\n\ngsutil ls -lr  gs://edgar_666/cache\n\n```\n\n## IAM roles required\nEnsure the service account or user have the following roles in order to do development.\n\n```shell\ngcloud projects get-iam-policy \u003cproject_id\u003e \\\n    --flatten=\"bindings[].members\" \\\n    --format=\"table(bindings.role)\" \\\n    --filter=\"bindings.members:serviceAccount:\u003cservice_account_email\u003e\"\nROLE\nroles/bigquery.dataOwner\nroles/bigquery.jobUser\nroles/cloudfunctions.developer\nroles/compute.networkViewer\nroles/iam.securityReviewer\nroles/iam.serviceAccountUser\nroles/pubsub.publisher\nroles/pubsub.subscriber\nroles/run.admin\nroles/storage.objectAdmin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloppycoder%2Fedgarai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsloppycoder%2Fedgarai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloppycoder%2Fedgarai/lists"}