File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ Features of PyDrive2
39
39
classes of each resource to make your program more object-oriented.
40
40
- Helps common operations else than API calls, such as content fetching
41
41
and pagination control.
42
+ - Provides `fsspec `_ filesystem implementation.
42
43
43
44
How to install
44
45
--------------
@@ -125,6 +126,23 @@ File listing pagination made easy
125
126
for file1 in file_list:
126
127
print (' title: {} , id: {} ' .format(file1[' title' ], file1[' id' ]))
127
128
129
+ Fsspec filesystem
130
+ -----------------
131
+
132
+ *PyDrive2 * provides easy way to work with your files through `fsspec `_
133
+ compatible `GDriveFileSystem `_.
134
+
135
+ .. code :: python
136
+
137
+ from pydrive2.fs import GDriveFileSystem
138
+
139
+ fs = GDriveFileSystem(" root" , client_id = my_id, client_secret = my_secret)
140
+
141
+ for root, dnames, fnames in fs.walk(" ." ):
142
+ ...
143
+
144
+ .. _`GDriveFileSystem` : https://docs.iterative.ai/PyDrive2/fsspec/
145
+
128
146
Concurrent access made easy
129
147
---------------------------
130
148
@@ -137,3 +155,5 @@ Thanks to all our contributors!
137
155
138
156
.. image :: https://contrib.rocks/image?repo=iterative/PyDrive2
139
157
:target: https://github.com/iterative/PyDrive2/graphs/contributors
158
+
159
+ .. _`fsspec` : https://filesystem-spec.readthedocs.io/en/latest/
You can’t perform that action at this time.
0 commit comments