Skip to main content

Mountain of Absurd Things by Markups

Project description

MATM - Mountain of Absurd Things by Markups

Version: 1.0.0

Description

MATM is a data format. Supports strings, numbers, booleans. Files use .matm extension.

Installation

pip install matm-format

Functions

importmatm(file)

Reads .matm file and returns a dictionary.

Parameters:

  • file (str) - path to .matm file

Returns:

  • dict - loaded data
  • str - error message (if file is corrupted)

writematm(typo, var, value, file)

Appends a record to .matm file.

Parameters:

  • typo (str) - type: string, int, float, bool
  • var (str) - variable name
  • value - value
  • file (str) - path to .matm file

Example

Writing to file:

from matm import writematm

writematm("string", "name", "John", "data.matm") writematm("int", "age", 25, "data.matm") writematm("bool", "active", True, "data.matm")

Reading from file:

from matm import importmatm

data = importmatm("data.matm") print(data.get("name")) print(data.get("age")) print(data.get("active"))

.matm file format

Each line contains:

type name > value

Example data.matm content:

string name > John int age > 25 bool active > True float pi > 3.14

Data types

string - text int - integer number float - floating point number (dot or comma separator) bool - True or False

Error handling

On syntax error, an educational video opens. Error message returns in English.

License

MIT

Copyright (c) 2026 Pupil DotTif

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

matm_format-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

matm_format-1.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file matm_format-1.0.1.tar.gz.

File metadata

  • Download URL: matm_format-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for matm_format-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e7d1e132c70809dc7e01eae6aceba4e56ea730f4ca7a8bb5bcbb6f20b41ee984
MD5 988ad096d2789436f77d1664667949ef
BLAKE2b-256 11e641ade7fe3b3ce0ce47203c2d5e2f70d6eaa5f17cdc5241319062f5aa5e85

See more details on using hashes here.

File details

Details for the file matm_format-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: matm_format-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for matm_format-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8be4f2ab70d72e70483577d266f1ef11db70faba9cf067d64c58a5e4e9bde75c
MD5 e4f3f163c414df9076ddfe574c4eedec
BLAKE2b-256 d1a9a8a368bdf54ad4b07e2fc76120730b2945add29459507739679a2428e005

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