Skip to main content

Hopara Python Library

Project description

Pyhopara

Pyhopara is the Hopara Python SDK. It's main purpose is to ingest data from Python/Pandas.

Install

pip install hopara

Before using Pyhopara you should setup your environment. This is achieved by installing the Hopara CLI and sign-in or sign-up:

npm install -g hopara
hopara signup

Basic usage:

import hopara as hp

hopara = hp.Hopara()

table = hp.Table('table_name')
table.add_column('column1', hp.ColumnType.INTEGER)
table.add_column('column2', hp.ColumnType.STRING)

hopara.create_table(table)

rows = [{'column1': 1, 'column2': 'a'},
        {'column1': 2, 'column2': 'b'},
        {'column1': 3, 'column2': 'c'}]
hopara.insert_rows(table, rows)

With pandas DataFrame:

import hopara as hp
import hopara.from_pandas as hpd
import pandas as pd

hopara = hp.Hopara()

df = pd.DataFrame({
    'column1': [1, 2, 3],
    'column2': ['a', 'b', 'c']
})
table = hpd.get_table('table_name', df)

hopara.create_table(table)
hopara.insert_rows(table, hpd.get_rows(df))

Please check the Hopara and Table sections for additional options.

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

hopara-1.23.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

hopara-1.23.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file hopara-1.23.0.tar.gz.

File metadata

  • Download URL: hopara-1.23.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.1

File hashes

Hashes for hopara-1.23.0.tar.gz
Algorithm Hash digest
SHA256 da9f4b39c5574f243edffb7567b7bd9bbbbe388f56985ff9ae4b64824de509c0
MD5 1638cd69363384188cf2c924f3d77245
BLAKE2b-256 0aedd1a9f19820ed1a218d1f96099def82a5c98af97719810772b536577eed57

See more details on using hashes here.

File details

Details for the file hopara-1.23.0-py3-none-any.whl.

File metadata

  • Download URL: hopara-1.23.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.1

File hashes

Hashes for hopara-1.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58b4bdaeb97bd88da674696bd7036fa6d3c0cf9e1e7bd2f84a2c3b686ebcdf0f
MD5 4100958e05e5278db1d59f774a84c858
BLAKE2b-256 ca92a1fb92bef33a6614251883ee4e06461b4099b6365791d5ddefb138a2b3be

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