ProcWorld
Advanced Procedural World Generator library for Python. Generate maps with biomes, rivers, lakes, mountains, and elevation. Export maps to JSON or PNG for games, simulations, or visualizations.
Features
-
Procedural terrain generation with multiple biomes:
- Forests, plains, mountains, deserts, water
-
Rivers and lakes placement
-
Elevation map generation
-
Terminal display with emojis
-
Export to JSON for programmatic use
-
Export to PNG for visual representation
-
Fully modular and library-ready
-
Seeded randomness for reproducible worlds
Installation
pip install procworld
Optional dependency for PNG export:
pip install Pillow
Usage
from procworld import WorldGenerator
# Create a world
world = WorldGenerator(width=40, height=20)
world.generate()
# Display in terminal
print(world.display())
# Export to JSON
world.export_json("example_world.json")
# Export to PNG
world.export_png("example_world.png")
# Access raw data
terrain_map = world.get_map()
elevation_map = world.get_elevation()
print(f"Seed used: {world.seed}")
Parameters
width(int): Width of the world map (default 50)height(int): Height of the world map (default 20)seed(int, optional): Seed for reproducible worlds. Random if None
Export Functions
export_json(filename="world.json"): Save map and elevation data as JSONexport_png(filename="world.png", cell_size=20): Save map as PNG image
Contributing
- Fork the repository
- Create a new branch for your feature
- Submit a pull request with improvements or new biomes
License
MIT License © veliqq
Example Output (Terminal)
🌾🌾🌲🌲🌾🌾🌊🌾🌾🌲
🌲🌲🌾🌾🌾🌊🌊🌲🌾🌾
🌾🌾🌾🌲🌲🌲🌾🌾🌾🌲
⛰️⛰️🌾🌾🌾🌾🌾🌲🌲🌾
🌾🌾🌾🌾💧💧💧🌾🌲🌲
ProcWorld makes generating and visualizing procedural worlds simple, fast, and fun!
Metadata
Release files for procworld 0.1.0
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 |
|---|---|---|---|---|
| procworld-0.1.0.tar.gz | 3.9 kB | Without provenance | Details for procworld-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| procworld-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for procworld-0.1.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / procworld-0.1.0.tar.gz
| Download URL | procworld-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0c5d13a824ff325a5ada27ca22d08304ee38e4de13eaac0f360a54b082e717e
|
|
BLAKE2b-256 checksum How to use checksums |
97531998c8f1c8b4b2fb75b3a179baf5ee612782fae8de18371feafb9caede1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / procworld-0.1.0-py3-none-any.whl
| Download URL | procworld-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8953e469fa3af9285d5991e82ec418c51274b78d90322b57f924e36ab40ac666
|
|
BLAKE2b-256 checksum How to use checksums |
667b18b0c2643a124892154001a3cff68fbc6650d439f25afb3c39cbe5fd2e3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for procworld 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.