Skip to main content

Cli tool for quickly translating JSON and YAML config files to Pkl.

Project description

JSON/YAML to Apple Pkl Converter

This tool provides a simple command-line interface to convert JSON or YAML files into Apple's Pkl format. It's designed to be easy to use for both developers and system administrators.

Features

  • Supports both JSON and YAML input formats.
  • Outputs in custom Apple Pkl format.
  • Command-line interface for easy integration into scripts and workflows.

Installation

To use this script, you'll need Python installed on your system. This script has been tested with Python 3.8 and above. Additionally, you'll need to install the PyYAML package if you intend to process YAML files.

You can install the required package using pip:

pip install PyYAML

Usage

To convert a file, simply run the script with the input and output file paths as arguments:

python main.py --input /path/to/input.json --output /path/to/output.pkl

Replace /path/to/input.json with the path to your source JSON or YAML file, and /path/to/output.pkl with the desired path for the output Pkl file.

Arguments

  • --input: Specifies the input file path. This file should be in JSON or YAML format.
  • --output: Specifies the output file path. The output will be in Apple's Pkl format.

Contributing

Contributions to this project are welcome! Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License

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

Picklejuice-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Picklejuice-0.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file Picklejuice-0.0.1.tar.gz.

File metadata

  • Download URL: Picklejuice-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for Picklejuice-0.0.1.tar.gz
Algorithm Hash digest
SHA256 20f1ae474a5300443e60c6cec6a53cddc77b9d38c762ea0945183ccc79248c7c
MD5 2f011dea909c03ed4d6eaac729df69e7
BLAKE2b-256 3b143245d6fd31e1ddc3c0f6b5be746f6c4750e75a807a7d15b7c6bdfe163614

See more details on using hashes here.

File details

Details for the file Picklejuice-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: Picklejuice-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for Picklejuice-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0771364d6fa5fedc60585fdd3b2e4f8373d40911865527497775ef2afbb9d061
MD5 21c0da74d0717b45c6edf7e638148f5c
BLAKE2b-256 17f65ce904c5d29afc278c5baf2c124cf3bdac84a4227be1d4775d51dd957433

See more details on using hashes here.

Supported by

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