Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

easily draw shapely objects in autocad

Easily draw shapely objects in autocad by using pyautocad.

Installation

pip install shapelyAcad

Warning if you use this project make sure to pin the version, api is far from stable!

Usage:

from shapely.geometry import Point, LineString
from shapelyAcad import ShapelyAcad

s_acad = ShapelyAcad()

# draw point in AutoCAD
point = Point([6, 3])
s_acad.draw_shapely(point)
s_acad.draw_text("Sample Text", point)

# draw line in AutoCAD
# line = LineString([[3, 0], [3, 10], [3, 20], [3, 30]])
line = LineString([[3, 0, 0], [3, 10, 0], [3, 20, 0], [3, 30, 0]])
s_acad.draw_shapely(line, color=3)
s_acad.draw_profile(line, 5, 10)

# select objects from AutoCAD
list_of_shapley_objects = s_acad.get_shapelies_from_selection()

Contribute

Feel free to do some black math magic, add test or make suggestions.

Requirements

pyproject.toml to manage requirements and can be build by a newer build backend.

Build and Test

Install MakeFile for quality of life

After setting up a venv we use make install to build a fresh pulled repo

Code quality checks and testing needs to be passed and will be checked on every commit and in the pipeline. If code wont pass it wont commit so make sure to check it before with make check-all!

We use:

  • flit as a build-backend.
  • pytest for testing, manual by make test in a console.
  • flake8 and black for linting, manual by make lint in a console.
  • myPy for typechecking, manual by make typecheck in a console.
  • black and isort, manual by make format in a console.
  • bumpversion for changing the version

Testing

Make an effort to test each bit of functionality you add. Try to keep it simple.

Links

Metadata

Release files for shapelyAcad 0.0.1.dev5

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

Source distribution (sdist)

Source distribution for shapelyAcad 0.0.1.dev5
File Size Uploaded Provenance Actions
shapelyAcad-0.0.1.dev5.tar.gz 6.9 kB Without provenance Details for shapelyAcad-0.0.1.dev5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shapelyAcad 0.0.1.dev5
File Interpreter ABI Platform Actions
shapelyacad-0.0.1.dev5-py3-none-any.whl Python 3 none any Details for shapelyacad-0.0.1.dev5-py3-none-any.whl

Total release size: 10.7 kB

Release files / shapelyAcad-0.0.1.dev5.tar.gz

Download URL shapelyAcad-0.0.1.dev5.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5a743b4823c9caf98a4db688c1109a4e3d3c6512c3880185222040879c036ee2
BLAKE2b-256 checksum
How to use checksums
5c3daa2620bcebb05367aef2ecb1fac4cecf27f9f0386698abfe65381d8316d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / shapelyacad-0.0.1.dev5-py3-none-any.whl

Download URL shapelyacad-0.0.1.dev5-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba9f5c490cf3cff5cb5ce6207c50b86a49ceadc662a90ac5269a5ff2a96e05dc
BLAKE2b-256 checksum
How to use checksums
e0f56434b0535de4b9d19ba76b17da18509d2a5b0e2f0d1fe93ae49714fa3422
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for shapelyAcad 0.0.1.dev5

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