How to upload data to Google Cloud Firestore using python async client

Rajathithan Rajasekar
2 min readMar 16, 2023
Photo by Cullan Smith on Unsplash

In this post, we will see how to upload data to Google cloud firestore using asyncio and aiofiles packages for concurrent execution of code which speeds up the upload process.

GCP firestore asynclient code snippets are available in the below link.

There is also nice blog post from twilio on how to use asyncio and aiofiles packages in python to work with files asynchronously.

For testing, I have chosen the below newline json dataset from kaggle.

--

--

Rajathithan Rajasekar

I like to write code in Python . Interested in cloud , dataAnalysis, computerVision, ML and deepLearning. https://rajathithanrajasekar.medium.com/membership