Functionalities for Viomi vacuum map parsing
Project description
Vacuum map parser - Viomi
Map data parser that can be used to parse maps generated by Viomi vacuums.
Installation
pip install vacuum-map-parser-viomi
Usage
from vacuum_map_parser_base.config.color import ColorsPalette
from vacuum_map_parser_base.config.drawable import Drawable
from vacuum_map_parser_base.config.image_config import ImageConfig
from vacuum_map_parser_base.config.size import Sizes
from vacuum_map_parser_base.config.text import Text
from vacuum_map_parser_viomi.map_data_parser import ViomiMapDataParser
palette: ColorsPalette = ColorsPalette()
sizes: Sizes = Sizes()
drawables: list[Drawable] = [Drawable.PATH, Drawable.CHARGER]
image_config: ImageConfig = ImageConfig()
texts: list[Text] = []
raw_map: bytes = b''
parser = ViomiMapDataParser(palette, sizes, drawables, image_config, texts)
unpacked_map = parser.unpack_map(raw_map)
parsed_map = parser.parse(unpacked_map)
Special thanks
The code of this library was initially created by @halfbakery as a part of Xiaomi Cloud Map Extractor.
Support
If you want to support my work with a donation you can use one of the following platforms:
Platform | Payment methods | Link | Comment |
---|---|---|---|
Ko-fi |
|
|
|
buycoffee.to |
|
||
PayPal |
|
|
|
Revolut |
|
|
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
File details
Details for the file vacuum_map_parser_viomi-0.1.1.tar.gz
.
File metadata
- Download URL: vacuum_map_parser_viomi-0.1.1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f56f8f3b02db39e5c633bb771d825580911c6c5648588424235ea6caafe4cf5f |
|
MD5 | 1cff72fcdcdc2d3c8031edc8ab7be07b |
|
BLAKE2b-256 | fcf139bab47b4af2336f7b8fce117c1918edc7d568000562947246d397fb37fa |
File details
Details for the file vacuum_map_parser_viomi-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: vacuum_map_parser_viomi-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98bbdd2604b77513488a2b997fe0c1c709c0d67c8dc3d4bad7e40ca33e328a59 |
|
MD5 | 03d4f60afa3504b99dd16bd8700a56a0 |
|
BLAKE2b-256 | bf26acd286ddc19003235821921651f16b9fc6bff6db2d94d3754e60288a61f9 |