Skip to main content

Control Stellarium by Python

Project description

StellariumRC

###Control Stellarium by Python

Installation

pip install stellariumrc

Requirements

  • python3
  • requests

Usage

Before starting, please make sure that Stellarium is running and the RemoteControl plugin is enabled.

from stellariumrc import StellariumRC

s = StellariumRC() # you can pass the host, port and password (if any) as parameters
print(s.main.getStatus()) # get the current state of Stellarium
s.main.setFocus(target='moon',mode='zoom') # focus on moon and auto zoom-in
print(s.objects.getInfo('moon')) # get info about moon

For more API descriptions, please refer to the source code comments and Stellarium's RemoteControl plugin HTTP API description.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

StellariumRC-0.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

StellariumRC-0.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file StellariumRC-0.2.tar.gz.

File metadata

  • Download URL: StellariumRC-0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for StellariumRC-0.2.tar.gz
Algorithm Hash digest
SHA256 0c6531b6f3289fc101661f9d5ae8643259b6e788690dcb4f34edea27471ec660
MD5 881032d64820f6371b0e0dae72fcd058
BLAKE2b-256 4f47a4c02ddc9002590f4f82da2cf8bf0ad2f3778eb8106a5dc62d5290162bd4

See more details on using hashes here.

File details

Details for the file StellariumRC-0.2-py3-none-any.whl.

File metadata

  • Download URL: StellariumRC-0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for StellariumRC-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bee795eb86471374ae59e46f73a72762fb49dc28b70ccf055ee1b67bc88c7ff4
MD5 ebc22279a397859409ce7e59935dcb31
BLAKE2b-256 8189da6e5a36f11671c2f0e383b30bf2af0c76c4dfc5d1d11f267834e4f42a77

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