This module refers to the box skill kit nodejs and the Box Python SDK.
https://github.com/box/box-skills-kit-nodejs
https://github.com/box/box-python-sdk
Install
```sh
pip install bskillskit
```
Example
```python
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
skills_writer.saveProcessingCard()
# Download file from Box
with open(filereader.file_name, 'wb') as f:
file_reader.download_to(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
}
]
}
],
1
)
face_card_json = skills_writer.create_faces_card(
[
{
'text': "if image doesn't load this text is shown",
'image_url': 'https://seeklogo.com/images/B/box-logo-646A3D8C91-seeklogo.com.png'
}
],
None,
'Logos'
)
skills_writer.save_data_cards([topi_card_json, transcripts_card_json, face_card_json])
else:
# Using error cards to display errors
skills_writer.save_error_card(SkillsErrorEnum.INVALID_FILE_FORMAT)
```
Metadata
Release files for bskillskit 0.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bskillskit-0.8.2-py3-none-any.whl | Python 3 | none | any | Details for bskillskit-0.8.2-py3-none-any.whl |
Release files / bskillskit-0.8.2-py3-none-any.whl
| Download URL | bskillskit-0.8.2-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a76dad870de86d8a94cbcaff6c560062f29eac8aa6278b4fa305021e5da0de0
|
|
BLAKE2b-256 checksum How to use checksums |
9f11d2be875c92dba010efab7a2c2ebb7344b1976f717a59adec30c3f929e281
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/36.4.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
|
Security for bskillskit 0.8.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.