Skip to main content

A Python package to create and visualize Wardley Maps

Project description

WardleyMap

WardleyMap is a Python package designed for creating and visualizing Wardley Maps. Wardley Maps provide a visual representation of the strategic landscape and the positioning of components within it, facilitating better decision-making in business strategy and technology development.

Features

  • Parse and interpret Wardley Map syntax.
  • Visualize maps using matplotlib for easy integration into Python workflows.
  • Export maps to SVG format for embedding in web applications or documents.
  • Streamlit integration for interactive web-based map visualization.

Installation

Install WardleyMap using pip:

pip install wardleymap

Ensure you have Python 3.6 or newer installed.

Quick Start

To create and visualize a Wardley Map, follow these steps:

from wardleymap import WardleyMap

# Define the structure of your Wardley Map using a string.
map_definition = """
title Business Value Chain
anchor Customer [0.95, 0.9]
component User Needs [0.8, 0.8]
component Website [0.6, 0.6]
component Hosting [0.3, 0.4]
User Needs -> Website
Website -> Hosting
"""

# Initialize a WardleyMap object with your map definition.
wm = WardleyMap(map_definition)

# Get the map text
maptext = wm.getMapText()

# Return this as JSON
return jsonify(maptext)

Documentation

For detailed usage and API documentation, please refer to the docs directory.

Contributing

Contributions to WardleyMap are welcome! Please read the CONTRIBUTING.md file for guidelines on how to contribute to this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • Special thanks to the open-source community for the invaluable tools and libraries.
  • Inspired by Simon Wardley's work on mapping and strategy.

Example Usage

Below is an example of how to use the wardleymap package to create and visualize a Wardley Map:

from wardleymap import WardleyMap

# Define the structure of your Wardley Map using a string.
map_definition = """
title Business Value Chain
anchor Customer [0.95, 0.9]
component User Needs [0.8, 0.8]
component Website [0.6, 0.6]
component Hosting [0.3, 0.4]
User Needs -> Website
Website -> Hosting
"""

# Initialize a WardleyMap object with your map definition.
wm = WardleyMap(map_definition)

# Get the map text
maptext = wm.getMapText()

# Return this as JSON
return jsonify(maptext)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wardleymap-0.1.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

wardleymap-0.1.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file wardleymap-0.1.2.tar.gz.

File metadata

  • Download URL: wardleymap-0.1.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for wardleymap-0.1.2.tar.gz
Algorithm Hash digest
SHA256 85254b07a906d193113f405dd4fff54a2bc65b864b26d43277b59a42aba9e5d7
MD5 570e9c2f888742e34e91630c134b7bf2
BLAKE2b-256 30b817fcc077c5365ae92b79579320c504a82c22bc5a94961d645d62ba3788ab

See more details on using hashes here.

Provenance

File details

Details for the file wardleymap-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: wardleymap-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for wardleymap-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6914fdea579cf69ebcc0e93c4ce59c735dd5b4f1a8c130e4936906c53426e3ea
MD5 207e8e1ab9c8fc17d103e7d28d6ca3ad
BLAKE2b-256 dd81af9685078fc111a8a0db5d867edf9541a257216d1d258e1a8897ac1864c9

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page