Versatile solution for sharing apps through secure URLs
Project description
ModelPark
ModelPark provides a versatile platform to share and manage your ML models directly from your machine, offering a convenient Python API to manage these tasks programmatically, including controlling access and publishing applications.
See ModelPark website and platform for more details.
Features
- Share models directly from the Python API.
- Publish and manage applications using the ModelPark Python API.
- Configure access management according to your needs through Python methods.
Installation
To install ModelPark, you can use pip:
pip install modelpark
Configuration
Ensure Python and pip are installed on your machine. This API interfaces with the ModelPark CLI but manages interactions programmatically through Python.
Usage
Here's how you can use the ModelPark Python package:
Initialize and Login
from modelpark import ModelPark
mp = ModelPark()
mp.login(username="your_username", password="your_password")
mp.init()
Register an Application
mp.register(port=3000, name="my-app", file_path="~/my-app/streamlit-app.py", access="public", framework="streamlit")
List Registered Applications
mp.ls()
Make an API Call to a Registered Application
from modelpark import APIManager
mp_api = APIManager()
user_credentials = {'username': 'your_username', 'password': 'your_password'}
app_name = 'my-app'
payload = {'key': 'value'} # Payload required by the application
# Make the API call
response = mp_api.make_api_call(app_name, user_credentials, payload)
print(response.json()) # Assuming the response is in JSON format
Stop and Logout
mp.stop()
mp.logout()
Kill an Application
mp.kill(name="my-app")
This API provides a more Pythonic way of managing your applications with ModelPark compared to using the CLI directly.
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 Distribution
Built Distribution
File details
Details for the file modelpark-0.1.5.tar.gz
.
File metadata
- Download URL: modelpark-0.1.5.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c85bea2c3e2e39ca0367959e4949cb347f58763ef145b6b35d5b55914be3c8e8 |
|
MD5 | af5297355888f52e49c6c9f48ddd941c |
|
BLAKE2b-256 | 8bb1f6a8ab017da0740bf35b9280806ed9e4504efbb5481e6197413c8739bcd8 |
File details
Details for the file modelpark-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: modelpark-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae0e51ab5c51fd1ac14fd6482f6038c453d65628697fc25db775bf2fb6d3476f |
|
MD5 | bec4e32272fef15e797a98ffee1b2215 |
|
BLAKE2b-256 | dcc5c8c17cdf75b2c1d3eda6ad4853dbc16a324e982c3be05340f068c01fff0c |