Skip to main content

About This

A package created for the purpose of the generation of random maps/images. Utilizes numpys for image storage and openCV for visualization. Built around a Canvas class that adds functionality for "drawing" to a numpy.

Included modules

Includes 4 modules: drawHelper, dataGen, pathfinding, and pynputHelper. drawHelper is the main module containing the Canvas class with contain important drawing functions, saving functions, and visualization. dataGen allows for the random generation of canvases utilizing drawHelper. pathfinding implements an a* algorithm for finding an optimal path between a source point and a destination point. pynputHelper includes a few helper functions that allow for an abstracted usage of pynput handling initialization etc.

Important functions to start

Initialize a Canvas object - Canvas(width, height, color_channels, pixel_to_point_ratio) Note: Currently pixel_to_point_ratio is incomplete and recommended to be set to one.
Generate a random Canvas - randomizer(canvas: dh.Canvas, object_size = 1, allow_intersection = False, choices: list = [1,2,3,4,5], weights = [0.1,0.2,0.3,0.2,0.1], ratio_rangeA = 0.1, ratio_rangeB = 1.0, circle_size_rangeA = 1/12, circle_size_rangeB = 1/6, margin_start_widthC = 1/9, margin_end_widthC = 8/9, margin_start_heightC = 1/9, margin_end_heightC = 8/9, margin_start_widthR = 1/9, margin_end_widthR = 5/9, margin_start_heightR = 1/9, margin_end_heightR = 5/9, add_rangeAW = 1/12, add_rangeBW = 1/3, add_rangeAH = 1/12, add_rangeBH = 1/3)
Utilize A* algorithm - a_star_algorithm(canvas: dh.Canvas, src, dest)

Contact Me

Email - DMGsquaredbusiness@gmail.com

Metadata

Release files for pydrawgen 0.1.0

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

Source distribution (sdist)

Source distribution for pydrawgen 0.1.0
File Size Uploaded Provenance Actions
pydrawgen-0.1.0.tar.gz 10.2 kB Without provenance Details for pydrawgen-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydrawgen 0.1.0
File Interpreter ABI Platform Actions
pydrawgen-0.1.0-py3-none-any.whl Python 3 none any Details for pydrawgen-0.1.0-py3-none-any.whl

Total release size: 21.9 kB

Release files / pydrawgen-0.1.0.tar.gz

Download URL pydrawgen-0.1.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
64b4f20eca670b842444ab515a305a773552e2b513e1566cc634af4281a25d3c
BLAKE2b-256 checksum
How to use checksums
cd38609116cfd7237ae286b2a01b1d901b93037c4ab40feb3bdfbd16110c9dda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / pydrawgen-0.1.0-py3-none-any.whl

Download URL pydrawgen-0.1.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a933a6dfb0645b8c1e885dde5f2c1f86dd38e2f4113b830c28f7ab7d1c590ee4
BLAKE2b-256 checksum
How to use checksums
16e98b6e91e3d2e9da430de10b92f680a527e94ecd170dfd978d3a509b50a4dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for pydrawgen 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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