Skip to main content

Package to download and manipulate Excel files from OneDrive URLs that are set to *accessible by anyone with the URL*

Project description

excel_1drive_noPassword

_____________________________________________

The package is immensely useful for data analysts and scientsits who work with files placed in Excel Onedrive files.

This package can be used to directly import all the sheets and their data in an excel file placed in the Onedrive without the need for username or password in a hssle free manner.

The excel file in the Onedrive should be configured to be accessible by anyone with a valid url.


Instructions.

To install the package, perform:

pip install excel_1drive_noPassword

How to use the methods:

1. To extract the entire excel sheet as a Dictionary where the keys are the sheet names and the values are the dataframes:

#Importing Library.
import excel_1drive_noPassword as odrxl

#The url of the excel file in the onedrive.
url = "https://1drv.ms/x/s!ApzxvrDY1mm1gTt1N0uvVwITl91i?e=z7YP4T"

data_dict = odrxl.excel_1drive_toDict(url)

2. To extract the sheetnames of the excel file.

#Importing Library.
import excel_1drive_noPassword as odrxl

#The url of the excel file in the onedrive.
url = "https://1drv.ms/x/s!ApzxvrDY1mm1gTt1N0uvVwITl91i?e=z7YP4T"

sheetnames = odrxl.excel_1drive_sheetnames(url)

print(sheetnames)

3. To extract a single sheet from the excel file as a dataframe.

#Importing Library.
import excel_1drive_noPassword as odrxl

#The url of the excel file in the onedrive.
url = "https://1drv.ms/x/s!ApzxvrDY1mm1gTt1N0uvVwITl91i?e=z7YP4T"

sheetname = "sheet_1"

df_sheet = odrxl.excel_1dr_SingleSheet_toDF(url, sheetname)

Have fun. :-)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

excel_1drive_noPassword-1.2.4.tar.gz (16.5 kB view details)

Uploaded Source

File details

Details for the file excel_1drive_noPassword-1.2.4.tar.gz.

File metadata

  • Download URL: excel_1drive_noPassword-1.2.4.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for excel_1drive_noPassword-1.2.4.tar.gz
Algorithm Hash digest
SHA256 35c0b684a7afd228e2ecf065cae296272632cda63b5dad4722d532d02dca2554
MD5 ab465d19e7cf55f75f843f45b93011cc
BLAKE2b-256 48824c0a5efbad9971abbd45bc86d4a709948ef5288ee9fb9c7dd22a730d9b73

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page