Skip to main content

Powerful and easy to use api for working with various human-readable data serialization formats

Project description

About

serialix is a powerful and easy-to-use tool that provides unified API for various human-readable data serialization formats (like json, yaml, etc). Due to the how this tool designed, all the supported formats share the identical base between each other, meaning that switching between them will be almost the same. This tool can also be extended for your purposes or even your own serialization format support.

Usage example

serialix is very easy to use:

>>> from serialix import Serialix, JSON_Format                        # Import `Serialix` main class
>>> default_settings = { 'version': '1.23.2' }                        # Specify the default values for our file
>>> cfg = Serialix(JSON_Format, './settings.json', default_settings)  # Create serialix object for `json` format.
                                                                      # Local file will be automatically created.
>>> cfg['version']                                                    # Read the `version` key
'1.23.2'
>>> cfg['version'] = '2.0.0'                                          # Change the `version` key value
>>> cfg['version']                                                    # Read the values of `version` key again
'2.0.0'
>>> cfg.commit()                                                      # Commit the changes to local `settings.json` file

Supported Languages

List of currently supported languages parsers.

  • Native Support
    • json

  • External Support
    • ujson (replacement for python built-in json parser)

    • yaml (version <= 1.2)

    • toml

Languages, listed in Native Support are supported by python without any external packages, while External Support requires external packages to be installed. For more detailed information go here: Intallation Guide

Documentation

All information about this package installation and usage is located in documentation on this link

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

serialix-2.4.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

serialix-2.4.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file serialix-2.4.0.tar.gz.

File metadata

  • Download URL: serialix-2.4.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for serialix-2.4.0.tar.gz
Algorithm Hash digest
SHA256 adb6a7d612df9f7eec4ab330d30381f78981f3b94e30a4526f094992b99a0145
MD5 ee88d491f6ab08279c711b364efe9a94
BLAKE2b-256 079fd540dc11cf6c59ac6822685adb9684e238b49da96970d54404dfff623ae5

See more details on using hashes here.

File details

Details for the file serialix-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: serialix-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for serialix-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2c80a5ea27ba6765e87d7ae333ac000fba89a3d9d3667d5e778f1b9f6ec27bf
MD5 b4fccb9610ecb6838deccbc355ad26e3
BLAKE2b-256 b41c613c0657d88622a2a91ffe7ec2664f973567df9305db800d0ee1dbde5a6a

See more details on using hashes here.

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