How s11ngh/pyscope works
Project type and purpose
• pyscope is a pure-Python, open-source library/framework (not a web app) for robotic scheduling, operation, and control of small optical telescopes.
• It exposes both a programmatic API (subpackages under pyscope/) and command-line entry points (scripts in pyscope/bin/scripts).
File structure
• Top-level subpackages under pyscope/:
• observatory – device drivers and observatory abstractions (ASCOM, simulators, HTML monitors).
• scheduling – rule-based scheduler and optimizer for building observing queues.
• telrun – “telescope run” orchestration module & CLI interface.
• reduction – basic image calibration & WCS tools.
• analysis – convenience scripts for simple science calculations (e.g., calc_zmag).
• utils – shared utilities (config parsing, exceptions, HTML parsing, airmass calculations).
• pyscope/bin/cfg_templates: YAML/INI templates for configuring observatory, logging, notifications, sync, telrun, etc.
• pyscope/bin/scripts: executable wrappers to launch sync managers and telrun sessions.
• docs/ & README.rst: user/developer guides and API reference.
• tests/: end-to-end and unit tests organized by subpackage name.
README
• Confirms modular, extensible design built on ASCOM and Astropy.
• Highlights key features: observatory control, telrun module for full automation, data reduction/analysis tools.
• Lists dependencies: Python 3.x, Astropy ecosystem, ASCOM drivers or Maxim DL for hardware.
Diagramming recommendations
• CLI → Config → Core API → External drivers
• Core API → Data store (FITS files, logs)
• Analysis/Reduction → Data store
• Blue for CLI & Config
• Green for Core API subpackages
• Orange for External services/drivers
• Gray for data stores
• Rectangles for software modules