Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hopara

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hopara

Hopara Python Library

  • 1.20.0
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc