This release is a pre-release and may not be stable for production use.
Translatio Delineationis Recens (formerly EzDXF) Library
A Python library to create and modify DXF drawings, compatible with Python 3.7 and above.
Overview
Translatio Delineationis Recens (formerly EzDXF) is an interface library for the DXF file format. The package is designed to facilitate the creation and manipulation of DXF documents, with compatibility across various DXF versions. It empowers users to seamlessly load and edit DXF files while preserving all content, except for comments.
Any unfamiliar DXF tags encountered in the document are gracefully ignored but retained for future modifications. This feature enables the processing of DXF documents containing data from third-party applications without any loss of valuable information.
Installation
pip install translatio-delineationis-recens
Or install from source:
git clone https://github.com/yourusername/translatio-delineationis-recens.git
cd translatio-delineationis-recens
pip install -e .
Basic Usage
import translatio_delineationis_recens as tdr
# Create a new DXF document
doc = tdr.new('R2010') # or R12, R2000, R2004, R2007, R2013, R2018
# Add new entities to modelspace
msp = doc.modelspace()
msp.add_line((0, 0), (10, 10))
msp.add_circle((0, 0), radius=5)
# Save the document
doc.saveas('example.dxf')
# Open an existing DXF document
doc = tdr.readfile('example.dxf')
# Iterate through all entities in modelspace
msp = doc.modelspace()
for entity in msp:
if entity.dxftype() == 'LINE':
print(f"Line from {entity.dxf.start} to {entity.dxf.end}")
elif entity.dxftype() == 'CIRCLE':
print(f"Circle at {entity.dxf.center} with radius {entity.dxf.radius}")
Features
- Create new DXF documents
- Read and modify existing DXF files
- Support for various DXF versions (R12, R2000, R2004, R2007, R2010, R2013, R2018)
- Comprehensive entity support (lines, circles, arcs, text, dimensions, etc.)
- Block management
- Layer management
- Viewport configuration
- Extended entity data (XDATA)
- Object attribute access via Python properties
Requirements
- Python 3.7 or higher
License
MIT License
Documentation
For more detailed documentation, see the Docs directory.
Metadata
Release files for translatio-delineationis-recens 1.4.1b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| translatio_delineationis_recens-1.4.1b1.tar.gz | 1.2 MB | Without provenance | Details for translatio_delineationis_recens-1.4.1b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| translatio_delineationis_recens-1.4.1b1-py3-none-any.whl | Python 3 | none | any | Details for translatio_delineationis_recens-1.4.1b1-py3-none-any.whl |
Total release size: 2.6 MB
Release files / translatio_delineationis_recens-1.4.1b1.tar.gz
| Download URL | translatio_delineationis_recens-1.4.1b1.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
631fc67c36438f5fca8b6313b57f08bc0183788aa5741aeb0d998d853111c11b
|
|
BLAKE2b-256 checksum How to use checksums |
7459d101c0598f0c14c81e16d944f7ed0461862a87280391c6b32107c4f0b922
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.4
|
Release files / translatio_delineationis_recens-1.4.1b1-py3-none-any.whl
| Download URL | translatio_delineationis_recens-1.4.1b1-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcc8089397a28aa67c9372550173f79b8150f8dae0e126f6d869f14524c99bf8
|
|
BLAKE2b-256 checksum How to use checksums |
130a3262323d4ddce1bdaf8d08c1f32a2fe730ef7c346bacac46f502e1e5eb8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.4
|
Security for translatio-delineationis-recens 1.4.1b1
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.