Official Klasifikasi (https://klasifikasi.com) API Client Library
Project description
Klasifikasi for Python
Official Klasifikasi API Client Library
Installation
pip install klasifikasi-py
Quick start
You will need valid clientId & clientSecret of your model. You can get those
from credential section at your model page, which is both unique per model
from klasifikasi import Klasifikasi
klasifikasi_instance = Klasifikasi(creds=[
{
'client_id': 'client_id',
'client_secret': 'client_secret'
}
])
You can pass multiple clientId & clientSecret too
from klasifikasi import Klasifikasi
klasifikasi_instance = Klasifikasi(creds=[
{
'client_id': 'client_id_1',
'client_secret': 'client_secret_1'
},
{
'client_id': 'client_id_2',
'client_secret': 'client_secret_2'
}
])
Classify
You need your model publicId to start classifying. You can get those from your
model page, or you get get it from here :
models = klasifikasi_instance.get_models()
for publicId in models:
print(publicId)
Classifying example :
result = klasifikasi_instance.classify('publicId', 'query')
Logs
You can get your classifying logs based on your model publicId
logs = klasifikasi_instance.classify('publicId', {
'started_at': '1 December 2020',
'ended_at': '2 December 2020',
'skip': 0
'take': 10
})
ended_at & started_at parameter is mandatory, the rest is optional
Error
All the function above will throw an Exception if something bad happen. Always
run each function inside try & except block
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file klasifikasi_py-0.0.2-py3-none-any.whl.
File metadata
- Download URL: klasifikasi_py-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41edb85b48d91c774bbf7b03a71f4a6868a6e6537648046d68fbc019aa608b09
|
|
| MD5 |
8d9ec8d3f72f5b82b33a34db3e3949be
|
|
| BLAKE2b-256 |
555f71dd03d773e61b4b29c2cc7f25a48bf0c5867fc9281f937c112f2b59e4ec
|