Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
smartsheet-dataframe
Advanced tools
Python library to ease movement of data between a Smartsheet or report and a Pandas DataFrame.
This package can be used alongside the smartsheet-python-sdk
package or can be used standalone.
TODO: Implement functions to write to a sheet Implement usage of Pandas kwargs
To get a sheet as a dataframe:
from smartsheet_dataframe import get_as_df, get_sheet_as_df
# Standalone (without smartsheet-python-sdk)
df = get_sheet_as_df(token='smartsheet_auth_token',
sheet_id=sheet_id_int)
# Using 'generic' function (without smartsheet-python-sdk)
df = get_as_df(type_='sheet',
token='smartsheet_auth_token',
id_=sheet_id_int)
Alternatively, objects can be used from the smartsheet-python-sdk
package.
from smartsheet_dataframe import get_as_df, get_sheet_as_df
import smartsheet
# Using smartsheet-python-sdk
smartsheet_client = smartsheet.Smartsheet('smartsheet_auth_token')
sheet = smartsheet_client.Sheets.get_sheet(sheet_id_int)
df = get_sheet_as_df(sheet_obj=sheet)
# And using the 'generic' function
df = get_as_df(type_='sheet',
obj=sheet)
To get a report as a dataframe:
from smartsheet_dataframe import get_as_df, get_report_as_df
# Standalone (without smartsheet-python-sdk)
df = get_report_as_df(token='smartsheet_auth_token',
report_id=report_id_int)
# Using 'generic' function (without smartsheet-python-sdk)
df = get_as_df(type_='report',
token='smartsheet_auth_token',
id_=report_id_int)
And using a report object from the smartsheet-python-sdk
package.
from smartsheet_dataframe import get_as_df, get_sheet_as_df
import smartsheet
# Using smartsheet-python-sdk
smartsheet_client = smartsheet.Smartsheet('smartsheet_auth_token')
sheet = smartsheet_client.Reports.get_report(sheet_id_int)
df = get_sheet_as_df(sheet_obj=sheet)
# And using the 'generic' function
df = get_as_df(type_='sheet',
obj=sheet)
pip install smartsheet-dataframe
FAQs
Converts Smartsheet sheets and reports to a Pandas DataFrame
We found that smartsheet-dataframe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.