Skip to main content

Python SDK for Iconik's API

Project description

Pythonik

Pythonik is a comprehensive Python SDK designed for seamless interaction with the Iconik API. It offers a user-friendly interface to access various functionalities of Iconik, making it easier for developers to integrate and manage Iconik assets and metadata within their applications.

Features

  • Easy-to-use methods for accessing Iconik assets and metadata.
  • Robust handling of API authentication and requests.
  • Configurable timeout settings for API interactions.

Installation

You can install Pythonik directly from PyPI:

pip install pythonik

If you're using Poetry:

poetry add pythonik

Usage

Get an Asset from Iconik

To retrieve an asset from Iconik, use the following code:

from pythonik.client import PythonikClient

client = PythonikClient(app_id=app_id, auth_token=auth_token, timeout=5)
asset = client.assets().get(asset_id)
print(asset)

Get Metadata from a View

To get metadata for an asset from a specific view, use the following code:

from pythonik.client import PythonikClient

asset_id = '123'
view_id = '456'

client = PythonikClient(app_id=app_id, auth_token=auth_token, timeout=5)
metadata = client.metadata().get_asset_metadata(asset_id, view_id)
print(metadata)

Checkout the API reference and advanced usage guide to see all you can do with Pythonik.

Publishing to PyPI (for maintainers) (Coming Soon)

To publish a new version to PyPI:

  1. Create and push a tag on the default branch (main):
    git tag {tag}
    git push --tags
    

Using Poetry

This project uses Poetry for dependency management and packaging. Below are instructions on how to work with Poetry, create a Poetry shell, and run tests using pytest.

Setting Up Poetry

First, install Poetry if you haven't already:

Creating a Poetry Shell

To create and activate a Poetry shell, which sets up an isolated virtual environment for your project:

  1. Navigate to your project directory.

  2. Run the following command:

    poetry shell
    

This command will activate a virtual environment managed by Poetry. You can now run Python commands and scripts within this environment.

Install all dependencies including pytest

    poetry install

Running Tests with pytest

To run tests using pytest, follow these steps:

  1. Inside the Poetry shell, run the tests with the following command:

    pytest
    

This will discover and execute all the tests in your project.


By following these steps, you can efficiently manage dependencies, create a virtual environment, and run tests in your Python project using Poetry.

Support

For support, please contact NSA.

Roadmap

Details about upcoming features and enhancements will be added here.

Contributing

Please see the contribution guide for information on how to contribute.

Authors and Acknowledgment

This SDK is developed and maintained by North Shore Automation developers, including Brant Goddard, Prince Duepa, Giovann Wah, and Brandon Dedolph.

Contributors

License

License information will be available soon.

Project Status

Current project status and updates will be posted here.

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

nsa_pythonik-0.6.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

nsa_pythonik-0.6.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file nsa_pythonik-0.6.0.tar.gz.

File metadata

  • Download URL: nsa_pythonik-0.6.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.0 Darwin/23.4.0

File hashes

Hashes for nsa_pythonik-0.6.0.tar.gz
Algorithm Hash digest
SHA256 5e1bfea4a29daf971d36d34f539d4ba2ebbaa090e3721c03a7ca591b92bd3f3a
MD5 3108398e8c8848077a27540101405f27
BLAKE2b-256 5461f5957b86125b06a1e4b8eac28de9ae46b6bbe01dff43c24e0947db87dd0f

See more details on using hashes here.

File details

Details for the file nsa_pythonik-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: nsa_pythonik-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.0 Darwin/23.4.0

File hashes

Hashes for nsa_pythonik-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47863922460fcdda80014241dc1eea19e33d9e1e1113a18923c89c6d7bb9e480
MD5 cc2972657e08ba72bbd324d5672c06db
BLAKE2b-256 d0c08f5129eecd1cd6f52db1ecef7a59aac3951dc8ec6965350eff7d8807603f

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