Skip to main content
https://img.shields.io/pypi/v/geometor-model.svg https://img.shields.io/github/license/geometor/model.svg

A symbolic engine for defining and verifying geometric constructions.

Overview

geometor.model is the foundational library for the GEOMETOR initiative. It establishes a rigorous system for defining classical geometric constructions using symbolic algebra.

In this system: - Points are information. - Lines and Circles are operations.

We leverage the power of SymPy to define elements as exact algebraic expressions rather than floating-point approximations.

CLI Usage

The geometor-model package includes a command-line interface (CLI) for building and experimenting with geometric models interactively or via scripts.

To start the CLI REPL:

$ python -m geometor.model

Features: * Interactive REPL with rich output. * Concise syntax for creating Points, Lines, Circles, Polygons, and more. * Support for auto-labeling points. * Pipe scripts for batch processing.

For detailed usage instructions, see the CLI Usage section in the documentation.

Key Features

  • Symbolic Precision: All elements are defined using symbolic algebra.

  • Intersection Discovery: Automatically finds intersection points as new lines and circles are added.

  • Ancestral Tracking: Maintains the history and dependencies of every element.

  • Serialization: Save and load models to JSON for analysis and visualization.

Usage

from geometor.model import *

# Initialize model
model = Model("vesica")

# Set given points
A = model.set_point(0, 0, classes=["given"])
B = model.set_point(1, 0, classes=["given"])

# Construct lines and circles
model.construct_line(A, B)
model.construct_circle(A, B)
model.construct_circle(B, A)

# Analyze
model.report_summary()

Resources

Metadata

Release files for geometor-model 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geometor-model 0.5.0
File Size Uploaded Provenance Actions
geometor_model-0.5.0.tar.gz 1.1 MB Without provenance Details for geometor_model-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geometor-model 0.5.0
File Interpreter ABI Platform Actions
geometor_model-0.5.0-py3-none-any.whl Python 3 none any Details for geometor_model-0.5.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / geometor_model-0.5.0.tar.gz

Download URL geometor_model-0.5.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
ff6849d68195958886bd0e79fad74af775862d7647d99d96ebe3538f97cd0fed
BLAKE2b-256 checksum
How to use checksums
30d58ce5dbb1b0bccb712df879cbb7f2dac75b8acb3a885b477e3bb83d6099e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.3

Release files / geometor_model-0.5.0-py3-none-any.whl

Download URL geometor_model-0.5.0-py3-none-any.whl
Size 39.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22afb829a0c0e07380a93e52aa0d9453e0833b497047d95d18f2954ca179ff92
BLAKE2b-256 checksum
How to use checksums
73c6019655bf51c56133c49778a302464e4f952a0eae904b6ff2926b1c97ee4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.3

Security for geometor-model 0.5.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page