Skip to main content

It is a helper tool with reference to box skills. It is not official.

Project description

It is a helper tool with reference to box skills. It is not official.
This module refers to the box skill kit nodejs and the Box Python SDK.

pip install bskillskit

from bskillskit import FileReader
from bskillskit import SkillsWriter
from bskillskit import SkillsErrorEnum

# Interpret the event from Box
json_req = { ... }

file_reader = FileReader(json_req)
skills_writer = SkillsWriter(json_req)

# Save a status update back to Box

# Download file from Box
with open(filereader.file_name, 'wb') as f:

# Execute iference processing
result_is_not_error = True

if result_is_not_error:
# Write metadata back to Box
topi_card_json = skills_writer.create_topics_card(
{ 'text': 'Hello' },
{ 'text': 'File' }
transcripts_card_json = skills_writer.create_transcripts_card(
'text': 'Hello file',
'appears': [
'start': 0,
'end': 1
face_card_json = skills_writer.create_faces_card(
'text': "if image doesn't load this text is shown",
'image_url': ''
skills_writer.save_data_cards([topi_card_json, transcripts_card_json, face_card_json])
# Using error cards to display errors

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

bskillskit-0.8.2-py3-none-any.whl (9.6 kB view hashes)

Uploaded py3

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