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, Mobius
# 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
# Möbius transformation
f = Mobius(1, 1, 1, -1) # f(z) = (z+1)/(z-1)
print(f(0)) # -1.0
print(f(line1)) # A Circle
Please see thefull documentation for more details.
Release files for cxregions 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cxregions-0.1.6.tar.gz | 89.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cxregions-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:108.6 kB
Release files / cxregions-0.1.6.tar.gz
| Download URL | cxregions-0.1.6.tar.gz |
|---|---|
| Size | 89.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a70ef8f65faf19593451832dc272997e5e461b03287c5133522139d63093187
|
|
BLAKE2b-256 checksum How to use checksums |
cae1ebb89da82804d53b70effd072736705c0067746533253259ae387c0770da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / cxregions-0.1.6-py3-none-any.whl
| Download URL | cxregions-0.1.6-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ead4bcd784dc428f1cc032dd36edbd133a81b958a590707894530beebfe1b4df
|
|
BLAKE2b-256 checksum How to use checksums |
677b57a5d6511994d152e4038c188bca09738ef13cf5dd0fd46b730a42d53b37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|