Python Package for Listing Paths to Drive Identifiers
Project description
Drive List Paths
This small script application when run will create a json file of paths in a Google Drive to their associated identifiers. This was primarily created to serve a small set of conference websites with a fair number of PDF files. These conferences use a static site generator, and it was easier to reference links to their paths within the Google drive than by their identifiers.
Installation
This script can be installed via pip: python -m pip install pydrivelist
.
The script requires PyDrive2
. The Drive API must be enabled in order for this to work with instructutions located at the PyDrive2 documentation. Quoting from the current documentation (as of November 2021):
-
Go to APIs Console and make your own project.
-
Search for ‘Google Drive API’, select the entry, and click ‘Enable’.
-
Select ‘Credentials’ from the left menu, click ‘Create Credentials’, select ‘OAuth client ID’.
-
Now, the product name and consent screen need to be set -> click ‘Configure consent screen’ and follow the instructions. Once finished:
-
Select ‘Application type’ to be Web application.
-
Enter an appropriate name.
-
Input http://localhost:8080/ for ‘Authorized redirect URIs’.
-
Click ‘Create’.
-
Click ‘Download JSON’ on the right side of Client ID to download client_secret_.json.
-
The downloaded file has all authentication information of your application. Rename the file to “client_secrets.json” and place it in your working directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pydrivelist-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36715e6ce7b2cf5c3d66418810922d93ea4b3f8b3837852d56bec46d981b69c3 |
|
MD5 | 7d202bb0ecb24021d25c6ece4f87fe13 |
|
BLAKE2b-256 | 4fdccf964fbf0b263df4a3153f85571cfeb18bbc4fd8063d5d1c96916694ec77 |