Skip to main content

Autoviz API by Max Cembalest

Project description

Maxplotlib

Autovisualization API

Example

maxplotlib "Show the trigonometry of music"

example maxplotlib image

General:

maxplotlib prompt --output=optional_output_folder --server=server_ip

Setup

Make sure a server with a known IP address is on (see Server if you are doing this yourself).

pip install maxplotlib
export MAXPLOTLIB_SERVER_IP=192.168....

How does it work?

Maxplotlib supports multiple LLM providers to generate matplotlib python scripts which are executed to produce images for the API response:

  • OpenAI
  • Anthropic
  • MLX: Uses Llama 3.1 (implemented in mlx_lm)

Server

Turning on a server allows other people to use your machine as a compute engine for maxplotlib API calls.

To turn on a server, install the requirements:

pip install 'maxplotlib[server]'

Then, navigate to the server directory and run the launch script:

cd src/server
./run_server

Once the server is on, remote maxplotlib API calls to your IP address will run on your machine.

You can also set these parameters using environment variables:

# Set default model for OpenAI
export OPENAI_MODEL=gpt-4o-mini

# Set default model for Anthropic
export ANTHROPIC_MODEL=claude-3-7-sonnet-20250219

# Set default model for MLX
export MLX_MODEL=mlx-community/Meta-Llama-3.1-8B-Instruct-8bit

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

maxplotlib-0.1.9.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maxplotlib-0.1.9-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file maxplotlib-0.1.9.tar.gz.

File metadata

  • Download URL: maxplotlib-0.1.9.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for maxplotlib-0.1.9.tar.gz
Algorithm Hash digest
SHA256 504b211f845bc2572d802895321f0e5f484b3eefb368ab4a1f50e7c3c159f086
MD5 c88f3dc90fa6872baa48037b36764703
BLAKE2b-256 37ed489dbcfde13458c2815aaaf61ba0320a7850a6b2a27d034e1c6d0d5c658f

See more details on using hashes here.

File details

Details for the file maxplotlib-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: maxplotlib-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for maxplotlib-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9ee574a39523d29ab2e8a5fc6ed2d1f6953d7fcc1ca51dfd40fa91bdf8838d2d
MD5 41f68a732627ab49cbe2e7fa533efcac
BLAKE2b-256 cb0f1082f7cb000afe17c8d37a8b5c2625f40ad0e28dc7ef6214ef2818082138

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page