Skip to main content

Gaphor is the simple modeling tool written in Python.

Project description

Gaphor - UML/SysML Modeling

Build Hypothesis Tests Docs build state PyPI PyPI - Downloads Matrix

Maintainability Test Coverage Translation Status Sourcery standard-readme compliant All Contributors.org

Gaphor is a UML and SysML modeling application written in Python. It is designed to be easy to use, while still being powerful. Gaphor implements a fully-compliant UML 2 data model, so it is much more than a picture drawing tool. You can use Gaphor to quickly visualize different aspects of a system as well as create complete, highly complex models.

Gaphor Demo

📑 Table of Contents

📜 Background

Gaphor is a UML and SysML modeling application written in Python. We designed it to be easy to use, while still being powerful. Gaphor implements a fully-compliant UML 2 data model, so it is much more than a picture drawing tool. You can use Gaphor to quickly visualize different aspects of a system as well as create complete, highly complex models.

Gaphor is designed around the following principles:

  • Simplicity: The application should be easy to use. Only some basic knowledge of UML or SysML is required.
  • Consistency: UML is a graphical modeling language, so all modeling is done in a diagram.
  • Workability: The application should not bother the user every time they do something non-UML-ish.

Gaphor is a GUI application. It has a modern GTK-based interface and uses Cairo for consistent rendering.

Gaphor is a library. You can use it from scripts and Jupyter notebooks and interact with models programmatically.

Non-Goals:

  • Generating UML diagrams from source code. pynsource or pyreverse might be what you are looking for.
  • Generating source code from diagrams or creating other concrete executable artifacts including use of fUML or ALF.

Although it would be possible to incorporate these features, these aren't the goals of this project. However, if these are important capabilities for you, you may be able to extend Gaphor by creating a plugin.

💾 Install

Download on Flathub

You can find the latest version on the gaphor.org website. Gaphor ships installers for macOS and Windows. Those can be found there. The Python package is also available on PyPI.

All releases are available on GitHub.

If you want to start developing on Gaphor, have a look at the Installation section of our documentation.

🔦 Usage

If using Gaphor for the first time you will be presented with a greeter dialog at startup in which you can select one of 5 models available to you to work in:

  • Generic: (or blank) template
  • UML: Unified Modeling Language template
  • SysML: Systems Modeling Language template
  • RAAML: Risk Analysis and Assessment Modeling language template
  • C4 Model: a lean graphical notation technique for modelling the architecture of software systems template

After you select a template, the main Gaphor window will load, and you will be ready to start modeling. Gaphor will automatically select the correct profile based on the template that you selected, but you can also select other modeling profiles if needed by clicking on the button next to the Profile dropdown menu at the top of your window.

To select an element you want to place, for example a Class, click on the icon in the Toolbox and then again on the diagram. This will place a new Class item on the diagram and add a new Class to the model (it shows up in the Model Browser).

Portions of the toolbox may also be collapsed depending on the type of diagram you are modeling with. You can expand the collapsed portions of the toolbox if needed.

If you want to know more, please read our documentation on https://docs.gaphor.org.

♥ Contributing

Thanks goes to these wonderful people (emoji key):

2old4it
2old4it

🐛
2old4this
2old4this

🐛
3fla1416
3fla1416

🐛
Adam Bjurstrom
Adam Bjurstrom

🐛
Adam Boduch
Adam Boduch

💻 ⚠️ 🐛
Alen Šiljak
Alen Šiljak

🐛
Alexander Wilms
Alexander Wilms

🐛
Alexis Howells
Alexis Howells

📖
Amor Ali
Amor Ali

🐛
Amy Y
Amy Y

🌍
Andrei
Andrei

🐛
Andrew
Andrew

🐛
Arjan Molenaar
Arjan Molenaar

💻 🐛 📖 👀 💬 🐛 🔌 ⚠️
Aurélien Joga
Aurélien Joga

📖
Bill ZHANG
Bill ZHANG

🌍
Björn Strömberg
Björn Strömberg

🐛
Blippost
Blippost

🤔
Brandan Glendenning
Brandan Glendenning

📖
Brock Tibert
Brock Tibert

🐛
Can Lehmann
Can Lehmann

💻
Christian Hoff
Christian Hoff

💻
DKX47
DKX47

🐛
Dan Yeaw
Dan Yeaw

💻 ⚠️ 📖 📦 🚇 🐛 💬
Daniel Bergløv
Daniel Bergløv

🤔
Daniel Nylander
Daniel Nylander

🌍
DimShadoWWW
DimShadoWWW

🐛
Douglas B
Douglas B

📖
Encolpe DEGOUTE
Encolpe DEGOUTE

🌍
Enno Gröper
Enno Gröper

💻
Enno Zickler
Enno Zickler

🐛
Ercalvez
Ercalvez

🌍
Erwan Bousse
Erwan Bousse

🤔 🐛
Eryk Michalak
Eryk Michalak

🌍
Felipe Nogueira
Felipe Nogueira

🌍
Fell-x27
Fell-x27

🐛
Fran Diéguez
Fran Diéguez

🌍
Gabriel Gian
Gabriel Gian

🌍
Gleb Smirnov
Gleb Smirnov

🐛
Greg Stewart
Greg Stewart

🐛
Gytree
Gytree

🐛
Günther Wagner
Günther Wagner

🐛
Hamish Mcintyre-Bhatty
Hamish Mcintyre-Bhatty

🐛
HighKingofMelons
HighKingofMelons

🐛
Igor Lerinc
Igor Lerinc

🐛
Ikko Ashimine
Ikko Ashimine

💻
Jacob Crabill
Jacob Crabill

🐛
Jacobo Aragunde Pérez
Jacobo Aragunde Pérez

🐛
Jan
Jan

🐛
Jean-Luc Tibaux
Jean-Luc Tibaux

🌍
JensPfeifle
JensPfeifle

📖
Jonathan
Jonathan

🤔 🐛 🌍 💻
Jonathan E. Magen
Jonathan E. Magen

🤔
JonnathanRiquelmo
JonnathanRiquelmo

🌍
Jordi Mallach
Jordi Mallach

🌍
Jorge DLG
Jorge DLG

🐛
Juha-Matti Kokkonen
Juha-Matti Kokkonen

🐛
Julius Rüberg
Julius Rüberg

🐛
JuliusBrueggemann
JuliusBrueggemann

🐛
K.B.Dharun Krishna
K.B.Dharun Krishna

🌍
Kapil Thangavelu
Kapil Thangavelu

🐛
KhazAkar
KhazAkar

🐛
Kian-Meng Ang
Kian-Meng Ang

📖
Lazerbeak12345
Lazerbeak12345

🐛
Lordy
Lordy

🐛
Mark Kennedy
Mark Kennedy

🤔 💻 🐛
Mark-Daniel Lüthje
Mark-Daniel Lüthje

🌍
Mat
Mat

💻
Matthew Maclaine
Matthew Maclaine

🐛
Maxim
Maxim

🐛
Mek101
Mek101

🐛
Michael Patrick Tkacik
Michael Patrick Tkacik

🐛
Mikhail Bessonov
Mikhail Bessonov

🐛
Mikkel Aunsbjerg Jakobsen
Mikkel Aunsbjerg Jakobsen

🐛
Nedko Arnaudov
Nedko Arnaudov

🐛
Patrik
Patrik

🤔
Paweł Pająk
Paweł Pająk

🐛
Petal
Petal

📖 🌍
Phil_Smurf
Phil_Smurf

🤔
Philip Goto
Philip Goto

🌍
Rafael Muñoz Cárdenas
Rafael Muñoz Cárdenas

🐛
RenStone83
RenStone83

🐛
Richard Bamford
Richard Bamford

🐛
Rui Maciel
Rui Maciel

🤔
Sabri Ünal
Sabri Ünal

🌍 💻
Sascha Holzhauer
Sascha Holzhauer

🐛 📖
SebCanet
SebCanet

🤔
Sebi
Sebi

🐛
Seong-ho Cho
Seong-ho Cho

🌍
Sergej A.
Sergej A.

🌍
Sophie Herold
Sophie Herold

💻 ️️️️♿️
Steve Kossouho
Steve Kossouho

🐛 💻
Steven Liu
Steven Liu

🐛
Sycophantic-Witty
Sycophantic-Witty

🐛
Thomas
Thomas

🐛
Thomas Firchau
Thomas Firchau

📖
Tiemen Schuijbroek
Tiemen Schuijbroek

🐛 💻
Tobias Bernard
Tobias Bernard

🎨 🤔
TomBous
TomBous

🐛
Tomasz Drożdż
Tomasz Drożdż

🤔
Tony
Tony

🚧
Viicos
Viicos

🐛
Xander982
Xander982

🖋 🐛
YantaoZhao
YantaoZhao

🐛 🤔
Yauhen Kirylau
Yauhen Kirylau

📖 📦 🤔 🐛
Zsolt Sandor
Zsolt Sandor

🤔 🐛 💻 📖
\s\m
\s\m

📖
albanobattistella
albanobattistella

🌍
bayerl
bayerl

📖
cloud-erik
cloud-erik

🤔
deifemu
deifemu

🐛
freddii
freddii

🤔 📖
freezed-or-frozen
freezed-or-frozen

🐛
fu7mu4
fu7mu4

🌍
gavr123456789
gavr123456789

🤔
ghillebrand
ghillebrand

🤔
greedyj4ck
greedyj4ck

🐛
johnvon
johnvon

🌍
jposada202020
jposada202020

🌍
kellenmoura
kellenmoura

🐛
lightonflux
lightonflux

🐛
lukman83
lukman83

🐛
madiharvey
madiharvey

🤔 🐛
mcdigregorio
mcdigregorio

🐛
melisdogan
melisdogan

📖
mikekidner
mikekidner

🐛 💻
milotype
milotype

🌍 📖
mskorkowski
mskorkowski

🐛
noblevirk
noblevirk

🤔
nomisge
nomisge

🐛 🤔
ovari
ovari

🤔 🌍 🐛
perovsek
perovsek

🌍 🐛
peter88213
peter88213

🐛
qsodev
qsodev

🐛
samirodj
samirodj

🐛
seryafarma
seryafarma

📖
shobeira
shobeira

🐛
sib@c
sib@c

🐛 🤔
tompkins-ct
tompkins-ct

🐛
tronta
tronta

🐛
vikdevelop
vikdevelop

🌍
wrobell
wrobell

💻 ⚠️ 🐛 🎨
Óscar Fernández Díaz
Óscar Fernández Díaz

🌍 💻
Евгений Лежнин
Евгений Лежнин

🌍
Пётр Сабанов
Пётр Сабанов

🌍
品雪
品雪

🐛

This project follows the all-contributors specification. Contributions of any kind are welcome!

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a first-timers-only tag for issues that should be ideal for people who are not very familiar with the codebase yet.
  2. Fork the repository on GitHub to start making your changes to the main branch (or branch off of it).
  3. Write a test which shows that the bug was fixed or that the feature works as expected.
  4. Send a pull request and bug the maintainers until it gets merged and published. :smile:

See the contributing guide!

🌍 Translations

Translation of Gaphor is mostly done using Weblate.

For the Linux Flatpak, the desktop entry comment string can be translated at our Flatpak repository.

Thank you so much for your effort in helping us keep it available in many languages!

Translation status

♿️ Code of Conduct

We value your participation and want everyone to have an enjoyable and fulfilling experience. As a GNOME Circle project, all participants are expected to follow the GNOME Code of Conduct, and to show respect, understanding, and consideration to one another. Thank you for helping make this a welcoming, friendly community for everyone.

©️ License

Copyright © Arjan Molenaar and Dan Yeaw

Licensed under the Apache License v2.

Summary: You can do what you like with Gaphor, as long as you include the required notices. This permissive license contains a patent license from the contributors of the code.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

gaphor-2.23.1.tar.gz (584.9 kB view hashes)

Uploaded Source

Built Distribution

gaphor-2.23.1-py3-none-any.whl (815.8 kB view hashes)

Uploaded Python 3

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