Skip to main content

A light weight python api for the table bin platform.

Project description

tablebin-python

A light weight python api for the table bin platform.

A sample code looks like below

with open('mylist.json') as f: 
    mylist = json.load(f)

header = tablebin.TableHeader()

hash_formatter = formatters.TableLinkFormatter(text="hash", target="https://etherscan.io/tx/{{this}}")
header.add_column(tablebin.TableColumn(name='hash', field_type='string', formatter=hash_formatter))

header.add_column(tablebin.TableColumn(name='owner', field_type='string'))
header.add_column(tablebin.TableColumn(name='eth_value', field_type='string', sortable=True))
header.add_column(tablebin.TableColumn(name='balance', field_type='string', sortable=True))
header.add_column(tablebin.TableColumn(name='total', field_type='number', sortable=True))
header.add_column(tablebin.TableColumn(name='count', field_type='number', sortable=True))

header.add_column(tablebin.TableColumn(name='timestamp', field_type='string'))
header.add_column(tablebin.TableColumn(name='buy_cap', field_type='string', sortable=True))

config = tablebin.TableConfig()

table_data = tablebin.TableData(mylist)

table_bin = tablebin.TableBin(api_key=TABLE_BIN_API_KEY)
# print(table_data._data)

response = table_bin.create_table(header, table_data)

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

tablebin-1.1.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

tablebin-1.1.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file tablebin-1.1.2.tar.gz.

File metadata

  • Download URL: tablebin-1.1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for tablebin-1.1.2.tar.gz
Algorithm Hash digest
SHA256 b4bdac22f21063107f5a07e1ad8c7ccf77a6b5ce0265f803df58ecdaf97fce93
MD5 b3cacacfde61c07a9a3cd8283e6d7f74
BLAKE2b-256 a4a9485e9fe1a3c5429caf9a37a7eecdb9f9305e7234f8c8b231c5ae1dd73fe8

See more details on using hashes here.

File details

Details for the file tablebin-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: tablebin-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for tablebin-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9591c46d9654de05f59fed6b128473be0c58b27924955db9dc2c7649dbfe2066
MD5 bbdead95d1c3950818e9bb84055f380f
BLAKE2b-256 8c14e40c20585c99d40a3445b62a31529fa6d6e863aace90b8176c6836e3a4fd

See more details on using hashes here.

Supported by

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