AI Skill Hub 推荐使用:开源AI工具:星座计算 是一款优质的AI工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
stellium是一个现代Python库,用于星座图计算、可视化和报告。它提供了 astrology、birth-chart 和 chinese-astrology 等功能,适合数据可视化和 Python 开发者。
开源AI工具:星座计算 是一款基于 Python 开发的开源工具,专注于 astrology、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
stellium是一个现代Python库,用于星座图计算、可视化和报告。它提供了 astrology、birth-chart 和 chinese-astrology 等功能,适合数据可视化和 Python 开发者。
开源AI工具:星座计算 是一款基于 Python 开发的开源工具,专注于 astrology、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install stellium
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install stellium
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/katelouie/stellium
cd stellium
pip install -e .
# 验证安装
python -c "import stellium; print('安装成功')"
# 命令行使用
stellium --help
# 基本用法
stellium input_file -o output_file
# Python 代码中调用
import stellium
# 示例
result = stellium.process("input")
print(result)
# stellium 配置文件示例(config.yml) app: name: "stellium" debug: false log_level: "INFO" # 运行时指定配置文件 stellium --config config.yml # 或通过环境变量配置 export STELLIUM_API_KEY="your-key" export STELLIUM_OUTPUT_DIR="./output"
A modern, extensible Python library for computational astrology
Built on Swiss Ephemeris for NASA-grade astronomical accuracy, Stellium brings professional astrological calculations to Python with a clean, composable architecture that works for everyone, from quick scripts to production applications.
Read the extensive documentation and API autodocs at Read The Docs.
Try out some quick examples immediately, no installation needed:
Stellium The Webapp is live! Visit it here! It represents about 50-60% of the functionality of the full package, but is great for testing out the core capabilities and getting quick chart outputs.
Star the repo if you find it useful! ⭐
---
pyswisseph ships newer wheels)```bash
pip install stellium
report = (ReportBuilder() .from_chart(chart) .with_chart_overview() # Chart metadata (date, location, zodiac system) .with_planet_positions(house_systems="all") # Positions with ALL house systems .with_declinations() # Declination table with OOB detection .with_house_cusps(systems="all") # House cusps for all systems .with_aspects(mode="major") # Major aspects table .with_aspect_patterns() # Grand Trines, T-Squares, Yods, etc. .with_dignities(essential="both")) # Essential dignities (traditional + modern)
report.render(format="rich_table") # Beautiful terminal output
git clone https://github.com/katelouie/stellium.git cd stellium pip install -e .
The /examples directory contains comprehensive, runnable cookbooks:
| Cookbook | Description |
|---|---|
| **[chart_cookbook.py](examples/chart_cookbook.py)** | 21 examples: themes, palettes, house systems, tables, and more |
| **[aspects_and_orbs_cookbook.py](examples/aspects_and_orbs_cookbook.py)** | 14 examples: aspect engines, orb engines (Simple, Luminaries, Complex, Moiety), traditional moiety systems |
| **[dignities_cookbook.py](examples/dignities_cookbook.py)** | 14 examples: essential/accidental dignities, scoring, peregrine, mutual reception, dispositor graphs |
| **[report_cookbook.py](examples/report_cookbook.py)** | 15 examples: terminal reports, PDF generation, batch processing |
| **[multichart_cookbook.py](examples/multichart_cookbook.py)** | Synastry, transits, bi-, tri- and quad-wheels, compatibility |
| **[returns_cookbook.py](examples/returns_cookbook.py)** | 14 examples: returns (solar, lunar, planetary), relocations |
| **[progressions_cookbook.py](examples/progressions_cookbook.py)** | 15 examples: set by date, current date or age; various angle progression methods |
| **[arc_directions_cookbook.py](examples/arc_directions_cookbook.py)** | 14 examples: solar arc, naibod, lunar, chart ruler, sect, planetary arcs |
| **[profections_cookbook.py](examples/profections_cookbook.py)** | 24 examples: annual, monthly profections for multiple points |
| **[zodiacal_releasing_cookbook.py](examples/zodiacal_releasing_cookbook.py)** | 14 examples: ZR timelines, snapshots, peaks, Loosing of Bond, reports |
| **[dial_cookbook.py](examples/dial_cookbook.py)** | 16 examples: Uranian 90°/45°/360° dials, midpoints, pointers, transits, themes |
| **[vedic_cookbook.py](examples/vedic_cookbook.py)** | 7 examples: North Indian and South Indian chart styles, themes, label styles, ayanamsa |
| **[transit_cookbook.py](examples/transit_cookbook.py)** | 6 examples: transit lists, Gantt timelines, custom aspects/orbs, dark/light themes |
| **[ephemeris_cookbook.py](examples/ephemeris_cookbook.py)** | Examples of graphic ephemeris charts with optional natal overlays |
| **[electional_cookbook.py](examples/electional_cookbook.py)** | 43 examples: finding auspicious times, predicates, planetary hours, aspect exactitude |
| **[planner_cookbook.py](examples/planner_cookbook.py)** | 9 examples: PDF planners with charts, transits, Moon phases, VOC, calendar layouts |
| **[bazi_cookbook.py](examples/bazi_cookbook.py)** | 22 examples: BaZi (Four Pillars) charts, pillars, hidden stems, Ten Gods, Day Master strength, elements |
| **[analysis_cookbook.ipynb](examples/analysis_cookbook.ipynb)** | Jupyter notebook: batch calculation, pandas DataFrames, queries, statistics, export |
```bash
| Guide | Description |
|---|---|
| **[VISUALIZATION.md](docs/VISUALIZATION.md)** | Complete chart drawing guide with fluent API reference |
| **[REPORTS.md](docs/REPORTS.md)** | Report generation guide: sections, presets, PDF output |
| **[CHART_TYPES.md](docs/CHART_TYPES.md)** | Chart types: natal, synastry, transit, composite, Davison |
```bash
python examples/chart_cookbook.py # Generate chart SVGs python examples/report_cookbook.py # Generate PDF reports python examples/comparison_cookbook.py # Generate synastry charts ```

chart = (ChartBuilder.from_details("2000-01-06 12:00", "Seattle, WA") .with_house_systems([PlacidusHouses(), WholeSignHouses()]) # Multiple systems! .with_sidereal("lahiri") # Sidereal zodiac option .with_aspects(ModernAspectEngine()) # Swap aspect engines .with_orbs(LuminariesOrbEngine()) # Custom orb rules .add_component(ArabicPartsCalculator()) # Plugin-style components .add_component(MidpointCalculator()) # Stack as many as you want .calculate()) # Lazy evaluation ```
---
Want to customize your chart? The fluent .draw() API makes it effortless:
```python
export STELLIUM_EPHE_PATH=/opt/swisseph/ephe # macOS / Linux set STELLIUM_EPHE_PATH=D:\swisseph\ephe # Windows (cmd) $env:STELLIUM_EPHE_PATH = "D:\swisseph\ephe" # Windows (PowerShell) ```
When you supply a custom path Stellium uses it as-is: the folder is not created, and the bundled ephemeris files are not copied into it. Make sure it already contains every .se1 file you need for the objects and date range you plan to calculate.
---
Stellium includes a CLI for quick chart generation:
```bash
```python from stellium import ChartBuilder from stellium.components import ArabicPartsCalculator, MidpointCalculator
chart = (ChartBuilder.from_details("2000-01-06 12:00", "Seattle, WA") .add_component(ArabicPartsCalculator()) .add_component(MidpointCalculator()) .calculate())
Batch calculate charts and analyze with pandas DataFrames:
```python from stellium.analysis import BatchCalculator, ChartStats, charts_to_dataframe
Create relationship, timing, and synthesis charts:
```python from stellium import MultiChartBuilder, Native, SynthesisBuilder
Stellium 是一个功能强大的占星学计算与可视化工具库。它能够精确生成星盘图表及相关的天文数据,为开发者提供高度可定制的占星数据处理能力,支持从基础的行星位置计算到复杂的相位模式分析,是构建占星类应用的核心引擎。
Stellium 具备卓越的计算与可视化能力。它不仅支持生成详尽的终端报告(Terminal Report),涵盖行星位置、宫位系统及相位表,还能通过图形化方式输出精美的星盘图(Round Chart)与星历表(Graphic Ephemeris)。其高度模块化的设计允许用户灵活组合不同的计算引擎。
项目要求 Python 3.11 或更高版本。安装时会自动处理 pyswisseph、pytz、geopy、rich 和 svgwrite 等依赖项。需要注意的是,在 Python 3.12+ 环境下,由于 pyswisseph 尚未提供最新的 wheel 文件,安装过程可能需要系统已配置 C toolchain(C 编译工具链)。
可以通过 pip 直接安装:执行 `pip install stellium` 即可快速部署。若需进行二次开发,建议通过源码安装:先使用 `git clone` 克隆仓库,进入目录后执行 `pip install -e .` 进行可编辑模式安装。
Stellium 提供了直观的 API 用于生成星盘。用户可以通过 `ReportBuilder` 构建包含元数据、行星位置及相位模式的详细终端报告。同时,它也支持生成高质量的 SVG 格式星盘图与星历表,实现从数据计算到视觉呈现的无缝衔接。
Stellium 采用可组合、可配置且可扩展的设计理念。通过 `ChartBuilder` 的流式 API,用户可以轻松切换宫位系统(如 PlacidusHouses)、选择恒星黄道(Sidereal zodiac)或自定义相位引擎(Aspect engine)。此外,支持通过环境变量 `STELLIUM_EPHE_PATH` 自定义星历表文件路径,无需修改代码即可完成环境适配。
除了丰富的 Python API 外,Stellium 还内置了命令行界面(CLI),方便开发者快速生成星盘。其核心 API 设计遵循流式调用规范,能够通过添加不同的 Component(如 ArabicPartsCalculator)来扩展计算功能。
Stellium 支持高级工作流,通过 `add_component` 可以集成 Arabic Parts 或 Midpoint 计算模块。对于大规模数据处理,项目提供了 `BatchCalculator` 与 `pandas` 的深度集成,支持将批量计算的星盘数据转换为 DataFrame,实现高效的数据分析与统计。
stellium是一个不错的开源AI工具,提供了 astrology 和 birth-chart 等功能,适合数据可视化和 Python 开发者。
该工具使用 AGPL-3.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ AGPL 3.0 — 最严格的 Copyleft,网络服务端使用也需开源,SaaS 使用受限。
总体来看,开源AI工具:星座计算 是一款质量良好的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | stellium |
| 原始描述 | 开源AI工具:A modern Python library for astrological chart calculation, visualization, repor。⭐40 · Python |
| Topics | astrologypython |
| GitHub | https://github.com/katelouie/stellium |
| License | AGPL-3.0 |
| 语言 | Python |
收录时间:2026-06-15 · 更新时间:2026-06-16 · License:AGPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。