- Python 3.10 or higher 🐍
- Poetry for dependency management 📦
To install StreamStory, follow these simple steps:
If you haven't already, you need to install Poetry. You can do this by following the official Poetry installation guide:
curl -sSL https://install.python-poetry.org | python3 -
Alternatively, you can install it via pip:
pip install poetry
git clone https://github.com/yourusername/streamstory.git
Use Poetry to install the package dependencies:
poetry install
Activate the virtual environment created by Poetry:
poetry shell
api_url = "http://streamstory.ijs.si/api/v1"
# create api key- http://streamstory.ijs.si/profile/api-keys
api_key = "212ze441-d9b7-4cf8-97d6-961484436f4a"
streamstory = StreamStory(api_url, api_key)
models = streamstory.get_models()
model_uuid = 'cceea9f2-cde7-410e-9111-ccd08b799f79
model = streamstory.get_model_by_uuid(model_uuid)
model_uuid = 'cceea9f2-cde7-410e-9111-ccd08b799f79'
streamstory.delete_model_by_uuid(model_uuid)
...
Run existing examples by navigating to the examples directory.
cd streamstory/examples
python main.py
StreamStoryPyClient is distributed under the MIT License. See LICENSE for more information.