Skip to main content

akkio-python

Convenient access to the Akkio API from python

Installation

pip install akkio

Usage

import akkio
akkio.api_key = 'YOUR-API-KEY-HERE' # get your API key at https://app.akk.io/team-settings

models = akkio.get_models()['models']
for model in models:
  print(model)

datasets = akkio.get_datasets()['datasets']
for dataset in datasets:
  print(dataset)

new_dataset = akkio.create_dataset('python api test')
print(new_dataset)

# create a toy dataset
import random
rows = []
for i in range(1000):
  rows.append({
    'x': random.random()
  })
  rows[-1]['y'] = rows[-1]['x'] > 0.5

akkio.add_rows_to_dataset(new_dataset['dataset_id'], rows)

new_model = akkio.create_model(new_dataset['dataset_id'], ['y'], [], {'duration': 1})
print(new_model)
prediction = akkio.make_prediction(new_model['model_id'], [{'x': 0.1}, {'x':0.7}], explain=True)
print(prediction)

Metadata

Release files for akkio 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for akkio 1.0.5
File Size Uploaded
akkio-1.0.5.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for akkio 1.0.5
File Interpreter ABI Platform
akkio-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 kB

Release files / akkio-1.0.5.tar.gz

Download URL akkio-1.0.5.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b9cf8a26edce99ffb6150d87424fded69570341722310089016c5051bdf7b2b9
BLAKE2b-256 checksum
How to use checksums
953c1605494e641c4ad11fa0945c2be6ccd95cfd6fb8eefa4d24b72a69789cd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.7

Release files / akkio-1.0.5-py3-none-any.whl

Download URL akkio-1.0.5-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd3f92b228fa6f3440396b5de8db8b02d1bec65d8f563f75af7eb81acedb40d5
BLAKE2b-256 checksum
How to use checksums
25e4ab7cac81eb16fec04b1ff622be9f2ea98bbb5137013c0f71ed0790f8670c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page