Skip to main content

A python toml decoder and encoder

Project description

https://img.shields.io/pypi/v/atoml.svg https://travis-ci.org/frostming/atoml.svg?branch=master https://coveralls.io/repos/github/frostming/atoml/badge.svg?branch=master

This library is a Python implementation of TOML and conforms v0.4.0 specs. This library runs on Python 2.7 and 3.5+.

The name comes from the famous Japanese cartoon character 鉄腕アトム(Atom)


Installation

$ pip install atoml

Usage

The interface is the same as Python’s built-in json library:

  1. Use loads to read from a string object, load to read from a file object

  2. Use dumps to convert a string object to TOML string, dump to write into a file passed as second argument.

License

BSD2 License

Run Tests

This library passes all the tests in toml-test, to run it, update the submodule first:

$ git submodule init
$ git submodule update

Then, install pytest and run pytest in project root.

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

atoml-0.3.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

atoml-0.3.0-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file atoml-0.3.0.tar.gz.

File metadata

  • Download URL: atoml-0.3.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for atoml-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3fc80847fdbba411ca6ad053c75ed025db3487190c066ae6f84b7307062afe0e
MD5 84824fcf01e09c527417ea1aa5809e12
BLAKE2b-256 c8a8539af261b400b2fc4dc36d3cd19eab0fa4c613f8511d2638e8dda85da999

See more details on using hashes here.

Provenance

File details

Details for the file atoml-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for atoml-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4be6fb73015d8845395b8c1bf1f3070e621a3e90dbc81e7088b08b8b5592ab04
MD5 96b2a01d1b32842f06f7efc2d06ba6fc
BLAKE2b-256 e390671431de879890569a0351d7c2fe8efde0b28ac74b7a36093729428999dc

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page