Skip to main content

Json library creator

Project description

jsoncreatoor

A library for working with JSON files.

Installation

pip install jsoncreatoor

How does the library work?

It's quite simple.

First, we need an empty space with one Python file. After that, we write the code:

import jsoncreatoor
# or for specific parts
from jsoncreatoor import example_json, create_json, json_config

Once we import the library, we have access to three functions: example_json, create_json, and json_config.

Main functionality of the library

example_json - creates a file named data.json with the following content:

{
    "Example_code": true,
    "Example": false,
    "data": 1,
    "Local": 0
}

create_json - creates a file with data provided by the user. For example:

from jsoncreatoor import create_json

# Example JSON data
data = {
    "Example_code": true,
    "Example": false,
    "data": 1,
    "Local": 0
}

create_json(data, "file_name", '')  # data uses the variable containing your code
# file_name - you don't need to write file_name.json, just the name; otherwise, it will be file_name.json.json
# directory - if you leave it empty, the file will be created in the same folder as your script

json_config - creates or overwrites an already existing file. If the file does not exist, it will be created. Example:

from jsoncreatoor import json_config

# Example JSON data
data = {
    "Example_code": true,
    "Example": false,
    "data": 1,
    "Local": 0
}

json_config(data, "file_name", '')  # similar to create_json

Good luck!

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

jsoncreatoor-0.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

JsonCreatoor-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsoncreatoor-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for jsoncreatoor-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f125cd7abe92704786ebebdeb6259f016156429e090ed5999c96f952f4f76aee
MD5 bc233842f37ef97f22c65a8624562e62
BLAKE2b-256 0f6bd8d39bf35341fdd03c880fb141a62421ce718b140537c6cc9fd231fecac9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: JsonCreatoor-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for JsonCreatoor-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1154d6140dc075d3623846e17650a2cdfca09f7741c16de3670420fe9143e68
MD5 01a1a70afcf2cfdfe13a89f37ab8bb37
BLAKE2b-256 86ad56efe33d34ed2f6d2efa4d847bd74c24b88300ccf4ce862451bfa4e9dcab

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