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.2.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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: matm_format-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 15c4bfa904f08f6fc1dfceab9f1bd228498b9c3e964a5446c4b58234c8498af6
MD5 1ba699c94a60dce7f4b4d214347ec2dd
BLAKE2b-256 a3b988c1a39322fc3d329fd1f706a3661d27e73d4ca46904a34aca84d1a6a623

See more details on using hashes here.

File details

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

File metadata

  • Download URL: matm_format-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a923139d3cdeadbe16cfb2e41da5021fade7fbe3ec21c383241cc3a6242514ea
MD5 6e8ecd00de1edc805aed50426fcb3193
BLAKE2b-256 9aabfe36f29361225f59b0353e52a293e16231d0e58f090c71683d0706e21c68

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