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.4.tar.gz (9.9 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.4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for dataorigin-0.1.4.tar.gz
Algorithm Hash digest
SHA256 537f94061edc70dc4415f5379ece5c15eab031bfc0b93fd6a51be2e49868ef81
MD5 7de80232f12b584d71f28322bbf88fc5
BLAKE2b-256 56f77214409efcad2f3c32dc10565972b4edde2d95e68393426b1237c2a271f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dataorigin-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3ef34831311122f4a48ae50d9c87780344d2bb8a9344bb79f74c1af435db24f3
MD5 0e42167108cbb0e6bd98006e638acdc4
BLAKE2b-256 1ca762ae81531f8b5f4a7011d98539a5c9bd99e732dd8f27871d1d2e651ad107

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