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
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:
# {'a,b': [2], 'b,c': [4], 'a,b,c,d': [3], 'c,d': [5], 'd': [6], 'a': [1]}
print(euler_diagram)
# Euler keys list:
# ['a,b', 'b,c', 'a,b,c,d', 'c,d', 'd', '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.0.tar.gz
(5.3 kB
view details)
Built Distribution
eule-1.0.0-py3-none-any.whl
(5.8 kB
view details)
File details
Details for the file eule-1.0.0.tar.gz
.
File metadata
- Download URL: eule-1.0.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.8.10 Linux/5.15.0-72-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c98f60094daa9ec4da664e7f27acfc41b9645e1515e7f14ac0e539fd3c9e7d0 |
|
MD5 | bd32ae75e31449decc466a8a4c1f47c8 |
|
BLAKE2b-256 | b2e6e1af78f36483e46f872ec3159aaf5a06b4cafecedbccb9385e43ab3d7fa5 |
File details
Details for the file eule-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: eule-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.8.10 Linux/5.15.0-72-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b607178b164862105eaab1465f246278c7013e5e2fe0b002bb7f5ca18ed27077 |
|
MD5 | 2486b12e228ef96c0a846c46ac89867f |
|
BLAKE2b-256 | c2ff7ae723d7d1454e8822fa5c76c91eafeafd2b7cca2987c7ea9231115f2dbf |