|
|
How It Works🚀 Launches Local Server 🔧 Control via CLI 🌐 Access via HTTP |
Installation
Install from PyPI:
$ pip install moondream-station
Install from source:
$ git clone https://github.com/m87-labs/moondream-station.git
$ cd moondream-station
$ pip install -e .
That's it! Moondream Station will automatically set itself up.
Usage
Launch Moondream Station
To fire up Moondream Station, execute this command in your terminal:
$ moondream-station
Model Management
By default, Moondream Station uses the latest model your machine supports. If you want to view or activate other Moondream models, use the following commands:
models- List available modelsmodels switch <model>- Switch to a model
Service Control
We like to think Moondream has 20/20 vision; that’s why, by default, we launch Moondream Station on port 2020. If that port is taken, Moondream Station will try a nearby free port. Additionally, you can control the port and status of the inference service with the following commands:
start [port]- Start REST server (default: port 2020)stop- Stop serverrestart- Restart server
Inference
Access via HTTP: Point any of our inference clients at your Moondream Station; for example, with our python client you can do:
import moondream as md
from PIL import Image
# connect to Moondream Station
model = md.vl(endpoint="http://localhost:2020/v1")
# Load an image
image = Image.open("path/to/image.jpg")
# Ask a question
answer = model.query(image, "What's in this image?")["answer"]
print("Answer:", answer)
For more information on our clients visit: Python, Node, Quick Start
Connect via CLI: Use all the capabilities of Moondream directly through your terminal. No need to touch any code!
infer <function> [args]- Run single inferenceinference- Enter interactive inference mode
Settings
Control the number of workers, queue size, privacy settings, and more through Settings:
settings- Show configurationsettings set <key> <value>- Set setting value
Moondream Station collects anonymous usage metrics to help us improve the app. The following data is collected:
- Event data: when you use features like caption, query, detect, or point.
- Version information: active bootstrap, hypervisor, inference client, and model version.
- System information: OS version, IP address, and Python version/runtime.
No personal information, images, or prompts/responses are ever collected. To opt out of logging, run: settings set logging false.
Utility
The utility functions provide insight into what Moondream Station is currently doing. To view statistics for your current session, use the session mode. To view a log of requests processed by Moondream Station, use the history command.
session- Show session statshelp- Show available commandshistory- Show command historyreset- Reset app data & settingsclear- Clear screenexit- Quit application
Metadata
Release files for moondream-station 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moondream_station-0.1.9.tar.gz | 41.5 kB | Without provenance | Details for moondream_station-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moondream_station-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for moondream_station-0.1.9-py3-none-any.whl |
Total release size: 89.2 kB
Release files / moondream_station-0.1.9.tar.gz
| Download URL | moondream_station-0.1.9.tar.gz |
|---|---|
| Size | 41.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f8f395d15e666a0f75a3cc70898ef9e5688e4affe4c9241a3e45b1150ddc42b
|
|
BLAKE2b-256 checksum How to use checksums |
28972380e4e6d717619410907ced1c3fbd8d22caca19ce9a6ceec881b3cc7d82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Release files / moondream_station-0.1.9-py3-none-any.whl
| Download URL | moondream_station-0.1.9-py3-none-any.whl |
|---|---|
| Size | 47.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef7ad29d8cb9336d934c5513ef5c5324cc8e09a33da38acd15d78ec59f589084
|
|
BLAKE2b-256 checksum How to use checksums |
2898fdf6407ebed6fff2d50809015bc5fad80d16fa3b989498edd73e534cb3a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Security for moondream-station 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.