Skip to main content

mjooln

Environmentally Friendly File Handling

PyPI Python versions License: Apache 2.0 pipeline status

mjooln is a small, dependency-free Python toolbox for file and folder handling. Two ideas make it more than a pathlib wrapper:

  • Atom — a identifier that is unique, sortable, human-readable, and can be found inside arbitrary text just by scanning for its shape.
  • Store — a folder with a persistent identity, so you can find it by name from anywhere on disk without remembering its path.

Install

pip install mjooln

Optional extras:

pip install mjooln[encryption]  # AES file encryption
pip install mjooln[yaml]        # YAML read/write for File

Quickstart

Atom: identifiers that sort, search, and read like sentences

from mjooln import Atom

a = Atom("sensor")
str(a)
# '20260722T191721u217069Z___sensor___39A238F6_83FE_40DB_BDA5_FABDE915016A'

a.way    # 'sensor'
a.time   # datetime(2026, 7, 22, 19, 17, 21, ..., tzinfo=timezone.utc)

Atoms sort chronologically as plain strings, and can be found inside arbitrary text -- handy for scanning file names:

Atom.find_one(f"my_file_{a}.json.gz")  # == a

Store: a folder you can find by name, from anywhere

from mjooln import Store

store = Store.make("~/projects/my_data")
store.file("readme.txt").write("hello")

# ... later, from anywhere, without knowing the path:
same_store = Store.get("my_data")
[f.name for f in same_store.list()]
# ['readme.txt']

Store is a subclass of Folder, so it behaves like one -- list(), file(), walk(), etc. all work directly on it.

Folder and File: everyday file handling

from mjooln import Folder

fo = Folder("~/projects/my_data")
fi = fo.file("data.json")
fi.write_json({"hello": "world"})
fi.read_json()
# {'hello': 'world'}

fi = fi.compress()  # data.json.gz
fi.checksum()        # sha256 hex digest

Modules

  • core — Atom, Atoms, Toml, settings, exceptions
  • filesystem — Path, Folder, File, Store, Serializer, Compressor
  • encryption — Crypt (optional, pip install mjooln[encryption])

See docs/PRINCIPLES.md for the design rationale behind the project.

License

Apache-2.0. See LICENSE.

Release files for mjooln 0.11.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mjooln 0.11.2
File Size Uploaded
mjooln-0.11.2.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mjooln 0.11.2
File Interpreter ABI Platform
mjooln-0.11.2-py3-none-any.whl Python 3 none any Details

Total release size: 60.5 kB

Release files / mjooln-0.11.2.tar.gz

Download URL mjooln-0.11.2.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5e23f8fb371e32caf0576ff9428c160fae91ff4f1ff7d830dc212f361e28db90
BLAKE2b-256 checksum
How to use checksums
fe12392288a4e83fda78fbd557bdc3b3a6ceb375c1bd23f35518c1903ebb81ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mjooln-0.11.2-py3-none-any.whl

Download URL mjooln-0.11.2-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbe9b415cd175ff567dc64e4ad7b6616e0da6267636e0e12d61b188c8ae95a40
BLAKE2b-256 checksum
How to use checksums
6246aa571e05e5b7e942157e50c43bb604c7651f5cfdaf7f207eab680b442353
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.16.1

2 release files

0.16.0

2 release files

0.12.0

2 release files

This release

0.11.2 This release

2 release files

0.11.1

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.2

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.18

2 release files

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0.5

1 release file

0.6.0.4

1 release file

0.6.0.3

1 release file

0.6.0.2

1 release file

0.5.0.9

1 release file

0.5.0.8

1 release file

0.5.0.7

1 release file

0.5.0.6

1 release file

0.5.0.3

1 release file

0.5.0.2

1 release file

0.5.0.1

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.9

1 release file

0.3.8

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page