Euler diagrams in python
Project description
Euler's diagrams are non-empty Venn's diagrams. For further information about:
- the library: on URL https://eule.readthedocs.io;
- Euler diagrams: on wikipedia article https://en.wikipedia.org/wiki/Euler_diagram
Motivation
How to install
We run the command on desired installation environment:
pip install eule
Minimal example
We run command python example.py
on the folder with file example.py
and following content:
#!/usr/bin/env python
from eule import euler, euler_keys, euler_boundaries
sets = {
'a': [1, 2, 3],
'b': [2, 3, 4],
'c': [3, 4, 5],
'd': [3, 5, 6]
}
euler_diagram = euler(sets)
euler_keys_ = euler_keys(sets)
euler_boundaries_ = euler_boundaries(sets)
# Euler dictionary:
# {
# ('b', 'c'): [4],
# ('c', 'd'): [5],
# ('a', 'b', 'c', 'd'): [3],
# ('d',): [6],
# ('a', 'b'): [2],
# ('a',): [1]
# }
print(euler_diagram)
# Euler keys list:
# [('b', 'c'), ('c', 'd'), ('a', 'b', 'c', 'd'), ('d',), ('a', 'b'), ('a',)]
print(euler_keys_)
# Euler boundaries dictionary:
# {
# 'a': ['b', 'c', 'd'],
# 'b': ['a', 'c', 'd'],
# 'c': ['a', 'b', 'd'],
# 'd': ['a', 'b', 'c']
# }
print(euler_boundaries_)
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
eule-1.0.2.tar.gz
(5.9 kB
view details)
Built Distribution
eule-1.0.2-py3-none-any.whl
(6.4 kB
view details)
File details
Details for the file eule-1.0.2.tar.gz
.
File metadata
- Download URL: eule-1.0.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-76-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1df052ce01bd33925d426c417dc3dbabc3ab4498719d20c4a66081c8f15da5b6 |
|
MD5 | b602ef61dea5993b4093549e0a295cfa |
|
BLAKE2b-256 | dc035181a88bdfbfef3e369b5a022f7b35093b67a2228c270537b70249324181 |
File details
Details for the file eule-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: eule-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-76-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83e59be4a88ef26ed2d255afc3129300a4e491ee379f8b1320e0eab115636973 |
|
MD5 | 6b3c30de9ec39945f65fe110c8af3e76 |
|
BLAKE2b-256 | 5605e5c28a5dbbbed513b381f318757bdeb5b5b645516031b7496ba7280d2809 |