Skip to main content

Dack is a file format that can be stored in any text file, but will default to .cfg.

Dack primarily stores key value pairs or dictionaries. The syntax are thusly:
&>KEY:VALUE

Anything after &> and before : is a key.
Anything after the first : and before the next &> is a value.

The key may contain anything except &> or :, leading or trailing whitespace will by stripped.
The value may contain anything except &>, leading or trailing whitespace will by stripped.

If there is a &> without an associated : then it will be ignored, effectively acting as comments.
If the file contains duplicate key entries the first one will be used and the rest ignored with a warning.

This format has many benefits:

  • Very simple and readable
  • Very flexible and hard to break
  • Doesn't feel tedious to type in
  • Works with any text document filetype
  • Highly portable, won't break being posted in markdown or on social media

Dack has 10 public functions that are outlined here:

dack.to_pydict will convert a string of the Dack format into a python dict.
dack.from_pydict will convert a python dict into a string of the Dack format.
dack.save dack.load will save or load a dict to or from a file using that file's path.
dack.saveas dack.savefile dack.loadfrom dack.loadfile are like overrides for the save and load functions;
saveas and loadfrom only need the name of the file, savefile and loadfile needs the file name with it's extension.
dack.savebatch will save a dict of dictionaries as separate files in a directory.
dack.loadbatch will load files in a directory and return a dict of dictionaries, option to load recursively or not.

Metadata

Release files for dack 0.1.3

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

Source distribution (sdist)

Source distribution for dack 0.1.3
File Size Uploaded
dack-0.1.3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dack 0.1.3
File Interpreter ABI Platform
dack-0.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 10.4 kB

Release files / dack-0.1.3.tar.gz

Download URL dack-0.1.3.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c339ebb72a9e12d1742475dfd6473e439cf8606bd473acfc711df6b97db0bff8
BLAKE2b-256 checksum
How to use checksums
ee430ae09e4c7bdd193a41282972ad4dd2e082cd6377ae681555bdff93016c23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 20, 2026.

Transparency log

Release files / dack-0.1.3-py2.py3-none-any.whl

Download URL dack-0.1.3-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2e40f365ec7bbb2fc4dc96a1f20999809e1d5b9705a75140c1a75dc84d29ee15
BLAKE2b-256 checksum
How to use checksums
cf1af8729ddb34225b8c4b432f344ab431d2f5c53527f254eaf4e726f696f850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.0

2 release files

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