Skip to main content

A Python interface to the ComplexRegions.jl Julia package

Project description

cxregions

This package is a Python interface to the ComplexRegions.jl Julia package, providing tools for working with complex regions defined by paths and curves. It allows users to create, manipulate, and analyze geometric shapes such as circular polygons and general polygons using Julia's computational capabilities from within Python.

Installation

To install the cxregions package, you can use pip:

pip install cxregions

The first time you import cxregions, it will set up a Julia environment and install the necessary Julia packages. This may take a few minutes.

Usage

Here is a simple example of how to use the cxregions package:

from cxregions import Polygon, Line, Arc

# Create curves
line1 = Line(0+0j, 2+2j)
print(line1.point(0.5))  # Should print 1+1j
arc1 = Arc(-1j, 1j, -1)
p = Polygon([4, 4 + 3j, 3j, -2j, 6 - 2j, 6])
print(p.winding(5 - 1j)) # Should print 1

Full documentation and examples can be found in the ComplexRegions.jl documentation. Most of the Julia methods shown there are members of the corresponding Python classes.

Project details


Download files

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

Source Distribution

cxregions-0.1.3.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

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

cxregions-0.1.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file cxregions-0.1.3.tar.gz.

File metadata

  • Download URL: cxregions-0.1.3.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for cxregions-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2b3edc331203ee837440fdbb9453618d9f205530da93eb4e5270ea4d4b23c6e6
MD5 e19ab021aca0950aadcd605fdc5679fe
BLAKE2b-256 9786f4c53b99a2c917970ca7756d4cb19ab366e9ea0ea39bddbf18960e80b616

See more details on using hashes here.

File details

Details for the file cxregions-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cxregions-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for cxregions-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8effcebdd25e26078c478b48cabda88172ded2a03750f7ba8a1454037a2aee36
MD5 ab8e549016663d0b0640ddc5578a9412
BLAKE2b-256 e28f8d8fa5c3c657d287c682eaf57115dca44a07a2e6d699e27c51fb9600d63a

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