Skip to main content

A package that manages JN formatted files (CustJSON specific JSON varient)

Project description

‏‎

CustJSON

A python package that makes its own little custom variant of JSON. Still easy to read, just no nested values (yet)

WARNING

By using this package, the code writer does not take responsibility if you use this package and data gets leaked or stolen due to the CustJSON format being plain text.




Usage

Opening, Closing, Deleting and Creating files

To start using the package, make an initialization object using this code:

i = custjson.Init()

This line of code initializes the package's features, which by proxy means you have to run CustJSON's functions via i.function(foo,bar)

To create a file directly and load it into the package's memory, type:

i.create_file("filename-without-extension")

Replace "filename-without-extension" with the filename of your choice WITHOUT THE EXTENSION. It automatically assigns the file a .jn extension.

To load a file that already exists to the package's memory, type:

i.open_file("path/to/file/filename.jn")

Again, replace "path/to/file/filename.jn" with the path to your file (including your file AND the .jn extension.)

To delete a file, make sure it's loaded in memory, and then type:

i.delete_file()

To close a file, it's the same process, but with a different command. Type:

i.close_file()

Reading and Writing to files

To read and write to .JN files, you first have to load them into CustJSON's memory as shown before, then you can simply use the commands

i.read_value_from_name("valueNameHere")
i.read_line(lineNumber)

Replace each placeholder with its respective value, for example if you wanted to get the value of the key "space", you'd do:

i.read_value_from_name("space")

and replace lineNumber with... the line number you want to read from the current file...

‏‎

You have now learned how to use CustJSON. Yaaay!

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

custjson-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

custjson-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file custjson-0.1.0.tar.gz.

File metadata

  • Download URL: custjson-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for custjson-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ca0dc64aed89683f90db518d7b7aae0229509562ba5a3232bd78843e6d224d4
MD5 edd0ee1000934b2618eba7c7512ed320
BLAKE2b-256 79f5c0f91213d01f282e0dd632785c816dc475f7aba5dc2f38d0c87215d65a64

See more details on using hashes here.

File details

Details for the file custjson-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: custjson-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for custjson-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ad403ed5866edf979f4e9a368877e76a8bb87f1070e4ef4f411e1939bf62445
MD5 31fd3341e27dbca7803dcdca4786835b
BLAKE2b-256 13db5412bde003881b80c1244c03f1cb7a5898d0cd52e0cb1407370c3052112a

See more details on using hashes here.

Supported by

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