Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have written an app in Python that accesses a Google Sheet, gathers some data and writes the data back to the sheet. It works. I am wondering about how I get the end user to create a credentials file for their sheet so the program can read and write to their file. Is the best way just to walk them through creating the JSON file and turning on sharing? It seems a little techy for a typical user.
You need to go through the OAuth process and provide an OAuth token when your application needs to modify another user's sheet.
You can find more information here: https://developers.google.com/sheets/api/guides/authorizing#OAuth2Authorizing
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
I am trying to raise a query from my system to the MS Access file stored in Share Point using Python. I have no idea how to do that. Someone Please help!!
It seems it cant be done
see https://community.powerbi.com/t5/Power-Query/Connecting-to-SQLite-db-stored-in-sharepoint/td-p/1156356 where there is the comment :
"SharePoint libraries do not behave the same as local drives or network shares. Same with Access databases. Access cannot even open its own MDB/ACCDB files in SharePoint. They have to be sync'd locally. Excel, Word, and PowerPoint, and a few others, have been modified to open files directly on SharePoint."
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am currently working on a python project and I would like to know how to serve a txt file to a browser. Ex: Accessing page.html will make a get request for a file with the same name to download. No FE processing is needed for the received file. Thanks!
You have to change the MIME type of the content. Take a look at MDN docs provided below.
the list of current content types accepted
One option that i would recommend it's application/octet-stream.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Can someone provide me the python code to add an index in azure search?
Looking under the References section on this page, as of today there's no Python SDK available for creating an index in an Azure Search account.
You would need to consume REST API directly in your code. You can read the REST API documentation for creating an index here: https://learn.microsoft.com/en-us/rest/api/searchservice/create-index.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have Python code that I want to use a lot of credentials and some "metadata" about each one of them (e.g. db credentials then I wand also store with it the tables I want to replicate)
What is the best way to store all this info with high level encryption?
Found the answer:
I wrote a yaml file with all those credentials.
I created KMS key
I upload this file to S3
When I uploaded the yaml file I chose Server Side encryption (AWS KMS, Step 7)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Is there any known way to do realtime collaboration stuff (like Google Docs) in Python (not thru the browser)? I'm working on a program, and would like to add said feature to it.
Thanks
You can try Dweet, which is a service that stores JSON data in key values pairs. You can use one of the client libraries listed on their website or you could simply make a request like so:
urllib.urlopen('https://dweet.io/dweet/for/my-thing-name?dweet=awesome')