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.0.tar.gz (3.9 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.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: matm_format-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 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.0.tar.gz
Algorithm Hash digest
SHA256 18ba2bcc9ab8b613a661c06cd8e5c1342cae7e3a6f1fe461d88384aaf48f6298
MD5 36ac75741425bbad9f796a7e61d87bd8
BLAKE2b-256 2b82cc4143d4b65c6367b4b8758afd90acf20687c743004d1a8901a4c57e33b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: matm_format-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b677bbe5a57ba7eb6f1bc88ea84e2e432370f39cd9ec077e70b20ef5f4894343
MD5 07c717581fc455081877bba6044a204b
BLAKE2b-256 903ed699dd098665911a7337a1a58f894dbcc3a3433fed6dca093748c41a7dd7

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