.ipynb files can we protect with password and save on cloud? - python

Is it possible to save jupyter files on clouds with file level password ?
so that it will be double safe with cloud password as well as file password!
right now I am using only google drive to store my file.
Is there a better way to save the file with protection ?

Related

Sending Python File Storage Type to Google Drive

i am new in the world of programming and python. I have a small flask app that consists of a form that ask users to upload a certain document. That document i then store into a variable in my python script called
file_upload = request.files['filename']
I want to send this same file storage into a folder i have in google drive.
The problem i am having is that every tutorial that i see is uploading files from a path in their computers, but i havent seen one that doesnt use a folder path.
(btw i am using GOOGLE APP ENGINE which doesnt allow me to store the file first to a directory and then to google drive)

Embedding password protected pdf's?

I have some pdf files which I would like to publish on my websites. I don't want them to be downloaded. Is there any way that I can publish those files as password protected such that they are automatically opened on the website but when someone downloads it they can't open unless they have the password?

How Open PASSWORD PROTECTED pdf file using textract

I'm working on pdf's and have created full project but now facing one problem that how to parse through contents of Password Protected PDF files (I know that password).

BigQuery: loading excel file

Is there any way we can load direct excel file into BigQuery, instead of converting to CSV.
I get the files every days in excel format and need to load into BigQuery. Right now converting into CSV manually and loading into BigQuery.
Planning to schedule the job.
If not possible to load the excel files directly into BigQuery then I need to write a process(Python) to convert into CSV before loading into BigQuery.
Please let me know if any better options are there.
Thanks,
I think you could achieve above in a few clicks, without any code.
You need to use Google Drive and external (federated) tables.
1) You could upload manually you excel files to Google Drive or synchronise them
2) In Google Drive Settings find:
"**Convert uploads** [x] Convert uploaded files to Google Docs editor format"
and check it.
To access above option go to https://drive.google.com/drive/my-drive, click on the Gear settings icon and then choose Settings.
Now you excel files will be accessible by Big Query
3) Last part: https://cloud.google.com/bigquery/external-data-drive
You could access you excel file by URI: https://cloud.google.com/bigquery/external-data-drive#drive-uri and then create table manually using above uri.
You could do last step also by API.

Encrypt a file with a password to send via email in python

Here is what I need to do in python:
Take a CSV from a saved location. Encrypt it. Send it via email.
We have a report that creates a csv every week and it needs to get emailed to someone. When they open the attachment from their email, it needs to ask them to input a predetermined password before they can view the csv contents.
I know how to send email with attachments using the smtp and mime modules.
I don't really know much about encryption but most of my searches turn up for files that are going to also be DEcrypted by python, or for encrypting passwords themselves.
Is asking for password upon opening a .csv file possible? Are there any resources out there for tutorials on this?
As an unsophisticated approach, you could zip the csv file that requires a password to unzip. This is a simple command line option (to the zip utility) that you could call from Python, then attach the resulting file. This wouldn't give you the best encryption, but may serve your purpose. See this link on using stronger encryption with zip archives.

Categories