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
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
Close
Hashes for vacuum_map_parser_viomi-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61498310bd4cfdc31a61f7d5c40edcaf4d984a2fe282d0e8c82053f48c5ca19c |
|
MD5 | f5e4784d32257bfe12d3d5229700f204 |
|
BLAKE2b-256 | bdb3ce001828020eae73a91cc0115caf1e6b8be79ba8c90d18f5d6d817b56b73 |
Close
Hashes for vacuum_map_parser_viomi-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b09ef75a4e0489ed3fa9789f41d86317d06227c5992b2cc93609975bd9adaa5d |
|
MD5 | 0c0196db61af448267b27e305d60a7c0 |
|
BLAKE2b-256 | f5981861b2c6b8bef99883674d8c8f70382dc5f529deb22ea59437b6ce7cf84c |