Skip to main content

json-to-files

PyPI Changelog Tests License

Create separate files on disk based on a JSON object

Installation

Install this tool using pip:

pip install json-to-files

Usage

This tool takes a JSON file that looks like this:

{
    "foo.txt": "The contents of foo.txt",
    "bar/baz.txt": "The contents of baz.txt"
}

And uses it to write out the following files on disk:

  • foo.txt containing "The contents of foo.txt"
  • bar/baz.txt containing "The contents of baz.txt"

You can run it like this:

json-to-files bundle.json

Or you can specify a directory to write those files to:

json-to-files bundle.json -d /tmp/other-directory

The bundles.json file name is optional - if omitted, this tool will read from standard input:

cat bundle.json | json-to-files

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd json-to-files
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for json-to-files 0.1

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

Source distribution (sdist)

Source distribution for json-to-files 0.1
File Size Uploaded Provenance Actions
json-to-files-0.1.tar.gz 6.8 kB Without provenance Details for json-to-files-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for json-to-files 0.1
File Interpreter ABI Platform Actions
json_to_files-0.1-py3-none-any.whl Python 3 none any Details for json_to_files-0.1-py3-none-any.whl

Total release size: 14.3 kB

Release files / json-to-files-0.1.tar.gz

Download URL json-to-files-0.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
870aec33c2963e8db2f1bda28d64f189c14b6e33d4ce5ca6de9b0e18261eedc5
BLAKE2b-256 checksum
How to use checksums
27e5e64d2949d322b92333b771b49e34551b4cf9a6139b8444b23f8ab6189736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / json_to_files-0.1-py3-none-any.whl

Download URL json_to_files-0.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a1301eb5440b887c36a73ddec3663762a4fb0de21c6fff54832242868f87ea7
BLAKE2b-256 checksum
How to use checksums
bb93aebcad9d449a6791a45ab9df377ce626e807c6f6b7f9352e4854831d5ab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for json-to-files 0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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