Skip to main content

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.

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

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.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


Download files

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

Source Distribution

modelpark-0.1.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

modelpark-0.1.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file modelpark-0.1.4.tar.gz.

File metadata

  • Download URL: modelpark-0.1.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for modelpark-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c96edcd83c41f9f1f537c1236a6a75cc2bafa6d9d0b127f9b7649e14f6418042
MD5 7dde97ca6f883314d4837183a2f9756c
BLAKE2b-256 47d2d4c0818da86eb20e145578c2bb9d59dfd4bf97d3203bb1fe04d75d986427

See more details on using hashes here.

File details

Details for the file modelpark-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: modelpark-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for modelpark-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e7be851ee7e63d74d29cb563e116f74a7f4cd541cdbb0ee68dd70ba7c5710954
MD5 e063ab8d9ed96f4588d117fec6ccff56
BLAKE2b-256 26ec7454081fb3894526af03e6fca13b6cd1c1d03cd89c74f9e156d0f8a4053f

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