Skip to main content

Functionalities for Viomi vacuum map parsing

Project description

GitHub Latest Release PyPI PyPI - Downloads Ko-Fi buycoffee.to PayPal.Me Revolut.Me

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
  • PayPal
  • Credit card
  • Buy Me a Coffee at ko-fi.com
  • No fees
  • Single or monthly payment
  • buycoffee.to
  • BLIK
  • Bank transfer
  • Postaw mi kawę na buycoffee.to
    PayPal
  • PayPal
  • PayPal Logo
  • No fees
  • Revolut
  • Revolut
  • Credit Card
  • Revolut
  • No fees
  • Powered by

    PyCharm logo.

    Project details


    Download files

    Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

    Source Distribution

    vacuum_map_parser_viomi-0.1.2.tar.gz (15.0 kB view details)

    Uploaded Source

    Built Distribution

    If you're not sure about the file name format, learn more about wheel file names.

    vacuum_map_parser_viomi-0.1.2-py3-none-any.whl (13.9 kB view details)

    Uploaded Python 3

    File details

    Details for the file vacuum_map_parser_viomi-0.1.2.tar.gz.

    File metadata

    • Download URL: vacuum_map_parser_viomi-0.1.2.tar.gz
    • Upload date:
    • Size: 15.0 kB
    • Tags: Source
    • Uploaded using Trusted Publishing? No
    • Uploaded via: poetry/1.5.1 CPython/3.11.12 Linux/6.11.0-1012-azure

    File hashes

    Hashes for vacuum_map_parser_viomi-0.1.2.tar.gz
    Algorithm Hash digest
    SHA256 bfe2dd24428eb873fb8b1296fce843b9022fdccdda078521f4d6cdcbfd4ffc67
    MD5 07e1f04f5b1c463fd9a68f07a08a8a4a
    BLAKE2b-256 83741bc26685464abd2688d9b43c7ece53bcec3a3541cf005054b9315a32e3cc

    See more details on using hashes here.

    File details

    Details for the file vacuum_map_parser_viomi-0.1.2-py3-none-any.whl.

    File metadata

    File hashes

    Hashes for vacuum_map_parser_viomi-0.1.2-py3-none-any.whl
    Algorithm Hash digest
    SHA256 e8edf45af34e7788e5e6fc52fb2452a947dbd5a84e40530097a07cd757bb1075
    MD5 8415e60447d477f402600a95c9dc9019
    BLAKE2b-256 ca48d4b0ef1a93f2bc204ce1ded9dd66247fed1c64fc820c54499f7c3f3aee72

    See more details on using hashes here.

    Supported by

    AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page