Skip to main content

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

dataorigin-0.1.5.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dataorigin-0.1.5.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file dataorigin-0.1.5.1.tar.gz.

File metadata

  • Download URL: dataorigin-0.1.5.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for dataorigin-0.1.5.1.tar.gz
Algorithm Hash digest
SHA256 f5ef38eced164a0d8958485009a54aa7a1817440ef865196765bd720f2562bf8
MD5 3ba539feae70ea420a90ade9461fb2aa
BLAKE2b-256 5a1707a1af1eedae77ebf7d489bbe2ad478f48427005de8457647c04bdf21952

See more details on using hashes here.

File details

Details for the file dataorigin-0.1.5.1-py3-none-any.whl.

File metadata

  • Download URL: dataorigin-0.1.5.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

Hashes for dataorigin-0.1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 871c1ad1b8aab39136dd83a3ae913a4992758382a3624945fbf38a1dcf958ebf
MD5 10dc9bcb820477fd41afa202824722a5
BLAKE2b-256 1d5c114744700c1c59458e73ed4de3b301eef0e96cc7af909c895e3db091f824

See more details on using hashes here.

Supported by

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