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.4.tar.gz (29.7 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.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cxregions-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1d542ba680a1a5fccf04358f6310e86d035509f1d2a9d503328ad9b539f1a5ea
MD5 38d853716fda4ac990301aeb945d0a93
BLAKE2b-256 7cf61a6c25e46c37c4025d2d72dc0aa12f44db78f1dec56b5f948916b98f2f3a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cxregions-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0fa84d9f08ff4ca42a2bca2517cfd3984ab8537d34c5281843042e05a92313ff
MD5 5b0e75adaff72b17ff36c85630919c51
BLAKE2b-256 53b46505cc6081d7b39c0ee40cfb23efec5bedc2379edfb43be2bad17e5e454c

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