Democritus functions for working with YAML.
Project description
Democritus Yaml
Democritus functions[1] for working with YAML.
[1] Democritus functions are simple, effective, modular, well-tested, and well-documented Python functions.
We use d8s
(pronounced "dee-eights") as an abbreviation for democritus
(you can read more about this here).
Installation
pip install d8s-yaml
Usage
You import the library like:
from d8s_yaml import *
Once imported, you can use any of the functions listed below.
Functions
-
def yaml_files(path, *, include_yml_extensions: bool = False): """."""
-
def yaml_read(yaml_data: str): """."""
-
def is_yaml(possible_yaml_data: str) -> bool: """."""
-
def yaml_write(data: Json, **kwargs) -> str: """."""
-
def yaml_clean(yaml_data: str) -> str: """Standardize the given yaml data."""
-
def yaml_standardize(yaml_data: str) -> str: """Standardize the given yaml data by reading and writing it."""
-
def yaml_sort(yaml_data: str) -> str: """."""
Development
👋 If you want to get involved in this project, we have some short, helpful guides below:
If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.
Credits
This package was created with Cookiecutter and Floyd Hightower's Python project template.
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
Built Distribution
File details
Details for the file d8s_yaml-0.6.0.tar.gz
.
File metadata
- Download URL: d8s_yaml-0.6.0.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60a2d5e7f800a25c9a29110936f903e1f92f12abb30e2d067e26a9735df2ca14 |
|
MD5 | 7217dd45cbc07849539bd3c684210973 |
|
BLAKE2b-256 | e84e5fd86af7a1eb90b0bb4515afa042d97c86d3e8266aff68bc1fe67c6ab8ff |
File details
Details for the file d8s_yaml-0.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: d8s_yaml-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f2c8680ca2613b8474d6a6cc8ff5132e243cf69c2be33594916ff22c2bd58c2 |
|
MD5 | ed17e68f85a83bc8a64808a9a4cb9e9a |
|
BLAKE2b-256 | efbd62264fc15e82a742325ab88b801b2ac8c2b687a1b38e5e776bf96087610d |