Skip to content

Commit 116834f

Browse files
authored
Merge pull request #149 from alloyha/master
2 parents 6deaf49 + 2eb95b0 commit 116834f

1 file changed

Lines changed: 44 additions & 19 deletions

File tree

README.md

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ Estimated cost: $0.01
298298

299299
</details>
300300

301-
302301
## Installation
303302

304303
<details>
@@ -313,50 +312,76 @@ This is relatively painless, I swear.
313312
### Create project
314313

315314
1. Go to https://bigquery.cloud.google.com.
316-
2. Sign up if you haven't already. The first TB of queried data each month
317-
is free. Each additional TB is $5.
315+
2. Sign up if you haven't already. The first TB of queried data each month is free. Each additional TB is $5.
316+
317+
3. Sign in on your account if you are not already;
318318

319-
3. Go to https://console.developers.google.com/cloud-resource-manager and click CREATE PROJECT if you don't already have one:
319+
4. Go to https://console.developers.google.com/cloud-resource-manager and click CREATE PROJECT if you don't already have one:
320320

321321
![create](https://user-images.githubusercontent.com/1324225/47172949-6f4ea880-d315-11e8-8587-8b8117efeae9.png "CREATE PROJECT")
322322

323-
4. This takes you to [https://console.developers.google.com/projectcreate](https://console.developers.google.com/projectcreate). Fill out the form and click CREATE. Any name is fine, but I recommend you choose something to do with PyPI like pypinfo. This way you know what the project is designated for:
323+
5. This takes you to [https://console.developers.google.com/projectcreate](https://console.developers.google.com/projectcreate). Fill out the form and click CREATE. Any name is fine, but I recommend you choose something to do with PyPI like pypinfo. This way you know what the project is designated for:
324324

325325
![click](https://user-images.githubusercontent.com/1324225/47173020-986f3900-d315-11e8-90ab-4b2ecd85b88e.png)
326326

327-
5. The next page should show your new project. If not, reload the page and select from the top menu:
327+
6. A while after creation, at the left-top corner, select the project name of your choice on dropdown component AND at the left-top corner "Navigation Menu", select option "Cloud Overview > Dashboard":
328328

329329
![show](https://user-images.githubusercontent.com/1324225/47173170-0b78af80-d316-11e8-879e-01f34e139b80.png)
330330

331331
### Enable BigQuery API
332332

333-
6. Go to https://console.cloud.google.com/apis/api/bigquery-json.googleapis.com/overview and make sure the correct project is chosen using the drop-down on top. Click the ENABLE button:
333+
7. Click on top-left button "Navigation Menu" and click on option "API and services > Library":
334+
335+
![api_library](https://user-images.githubusercontent.com/13961685/224557997-6842161c-6589-4c2a-8974-6bb3c8dc0b0b.png)
336+
337+
8. Perform a search with keywords "big query api" on available text field:
334338

335-
![enable](https://user-images.githubusercontent.com/1324225/47173408-a6718980-d316-11e8-94c2-a17ff54fc389.png)
339+
![big_query_api_search](https://user-images.githubusercontent.com/13961685/224558113-4f3a3006-3216-41e9-9554-3ce60da60fd1.png)
336340

337-
7. After enabling, click CREATE CREDENTIALS:
341+
9. Enable Big Query API by button "Enable" press:
342+
343+
![big_query_api](https://user-images.githubusercontent.com/13961685/224558381-4af65bf6-348b-4e48-bd14-d667c4a6e1c7.png)
344+
345+
10. After enabling, click CREATE CREDENTIALS:
338346

339347
![credentials](https://user-images.githubusercontent.com/1324225/47173432-bc7f4a00-d316-11e8-8152-6a0e6cfab70f.png)
340348

341-
8. Choose the "BigQuery API" and "No, I'm not using them":
349+
**Note**: You will be requested to go back to Big Query panel. In this case, click on top-left button "Navigation Menu", option "API and services > Enabled APIs and services" and on consequent page, on item "Big Query API":
350+
351+
![enabled_credentials](https://user-images.githubusercontent.com/13961685/224572489-402be9b3-a441-45f0-a469-df3a292b2d80.png)
352+
353+
11. On the page after clicking the "CREATE CREDENTIALS" button, choose "BigQuery API", "Application Data" and "No, I'm not using them":
342354

343-
![bigquery-api](https://user-images.githubusercontent.com/1324225/47173510-ec2e5200-d316-11e8-8508-2bfbb8f6b02f.png)
355+
![credentials_page_1](https://user-images.githubusercontent.com/13961685/224556508-e57d9ea0-564c-45db-b553-a53f60c307af.png)
344356

345-
9. Fill in a name, and select role "BigQuery User" (if the "BigQuery" is not an option
346-
in the list, wait 15-20 minutes and try creating the credentials again), and select a JSON key:
357+
12. Fill account details and press button "Create and Continue":
347358

348-
![bigquery-user](https://user-images.githubusercontent.com/1324225/47173576-18e26980-d317-11e8-8bfe-e4775d965e32.png)
359+
![credentials_page_2](https://user-images.githubusercontent.com/13961685/224557099-e0e4785d-5af8-41d8-b179-5df7c49fca79.png)
349360

350-
10. Click continue and the JSON will download to your computer. Note the download location. Move the file wherever you want:
361+
13. Select role "BigQuery User" (option path "BigQuery > Big Query User"), press button "Done":
351362

352-
![download](https://user-images.githubusercontent.com/1324225/47173614-331c4780-d317-11e8-9ed2-fc76557a2bf6.png)
363+
![credentials_page_3](https://user-images.githubusercontent.com/13961685/224557170-73532a10-ad64-4e74-9018-8c5f8ad205d7.png)
353364

354-
11. `pip install pypinfo`
355-
12. `pypinfo --auth path/to/your_credentials.json`, or set an environment variable
356-
`GOOGLE_APPLICATION_CREDENTIALS` that points to the file.
365+
14. On Big Query API panel (See **Note** on item *10*), click on tab "CREDENTIALS". On section "Service accounts", click on created credentials on items 11, 12 and 13.
366+
367+
![create_service_credential_key](https://user-images.githubusercontent.com/13961685/224572983-d005fef7-9490-429a-bd6b-58616dd6cc86.png)
368+
369+
15. On page from credential click, click on tab "KEYS". On dropdown menu "ADD KEY", click on option "Create new key":
370+
371+
![create_credential_key](https://user-images.githubusercontent.com/13961685/224573182-5d812f47-c1c5-4aaa-a774-6ae00ce8250d.png)
372+
373+
16. On appearing box, click on option "JSON" and press button "CREATE": This will start the download of credentials on a JSON file with name pattern `{name}-{credentials_hash}.json`:
374+
375+
![create_private_key](https://user-images.githubusercontent.com/13961685/224573235-70f35826-73bb-4dad-bcbf-e6267d105121.png)
376+
377+
### Installation and authentication
378+
379+
17. Run `python -m pip install pypinfo` in the terminal.
380+
18. `pypinfo --auth path/to/your_credentials.json`, or set an environment variable `GOOGLE_APPLICATION_CREDENTIALS` that points to the file.
357381

358382
</details>
359383

384+
360385
## Credits
361386

362387
- [Donald Stufft](https://github.com/dstufft) for maintaining [PyPI](https://pypi.org) all these years;

0 commit comments

Comments
 (0)