Material shapes in pure python.
Project description
materialshapes-python
A complete Python port of the official Material Design 3 shape system from Android. It includes rounded polygon generation, shape morphing, and smooth transitions based on Google's original Java source.
Uses pycairo for 2D graphics rendering. Can be used with Python GUI libraries. A Kivy widget is already included.
Docs
There is no separate documentation yet.
The examples serve as the documentation and cover all major features. Check them out to understand usage and integration.
Install
You can easily install it from pip by executing:
pip3 install materialshapes --upgrade
Examples
File: kivy.py
Run using:
python3 -m examples.kivy
https://github.com/user-attachments/assets/31c2ae03-9be8-4a34-b95d-b7e7219773b1
File: loading_indicator.py
Run using:
python3 -m examples.loading_indicator
https://github.com/user-attachments/assets/c52553f1-c4f0-4af1-8360-f72acfd78949
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file materialshapes-0.3.tar.gz.
File metadata
- Download URL: materialshapes-0.3.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
141d4ceaaf4122379eb8147805d9a87e8e11bde90b03529cbae1a1689dfe6868
|
|
| MD5 |
96be84eb461b88c217e88710ffb05fb9
|
|
| BLAKE2b-256 |
5c708fe83033136092da1babf46222964980de564bb0893fce73ed8e42b71e49
|
File details
Details for the file materialshapes-0.3-py3-none-any.whl.
File metadata
- Download URL: materialshapes-0.3-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aa1ef131bc67bbd1f6a1e03efd0419cf148fd204bff69a5b41bbce09fe0e2f4
|
|
| MD5 |
1cc18031d8db1e3dce227e541c499b5c
|
|
| BLAKE2b-256 |
731619287efc5878ec8658269bb23d456f62774bbd57ffa4cb4602b34dd1e602
|