DataOrigin utilities in a single library.
Project description
DataOrigin Package
This package provides core utilities for the DataOrigin project, focusing on leveraging AI-driven data insights for sales prospecting and lead generation in the B2B event space.
Installation
To install the dataorigin package, you can use pip:
pip install dataorigin
Usage
Example usage for google_sheets.py (assuming you have configured credentials):
from dataorigin.google_sheets import GoogleSheetsConnector
# Initialize the connector (requires GOOGLE_SHEETS_CREDENTIALS_PATH environment variable)
connector = GoogleSheetsConnector()
# Example: Read data from a spreadsheet
spreadsheet_id = "YOUR_SPREADSHEET_ID"
data = connector.read_sheet_data(spreadsheet_id)
print(data)
# Example: Write data to a spreadsheet
# Los datos se deben presentar en formato DataFrame de pandas
df = pd.DataFrame([{"a": 1, "b": 2}, {"a": 3, "b": 4}])
res = upsert_google_sheet(
df=df,
spreadsheet_id="YOUR_SPREADSHEET_ID", # o usa spreadsheet_nombre="..."
sheet_name="data", # Crea o modifica la hoja
folder_id=os.getenv("GDRIVE_FOLDER_ID"), # OPCIONAL
clear=True,
value_input_option="USER_ENTERED" # RAW o USER_ENTERED
)
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dataorigin-1.6.1.tar.gz.
File metadata
- Download URL: dataorigin-1.6.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f8a60881f21732d23132ccaf027b1185fa69b538bc58c991fc1b865cabb8b35
|
|
| MD5 |
fba1b7d6ea2e8b1678fb4debaf9c7313
|
|
| BLAKE2b-256 |
363adf0fe8e7f60b032ce07cde0db9e675d56ab6ce856ccfd80ae657451053be
|
File details
Details for the file dataorigin-1.6.1-py3-none-any.whl.
File metadata
- Download URL: dataorigin-1.6.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dd4651e696d3660bfd703800009df706d922fa61104b1fbd6538b00132cba71
|
|
| MD5 |
09209f8497d4e839679049bbee290069
|
|
| BLAKE2b-256 |
fe8e2c88332ec3cfea8dbc0540c22e219a4bb1dbbdf540fe14c66b546eb70c84
|