Skip to main content

Make Your txt work like json

Project description

json txt

With the help of json txt you can use your txt file as a json file in a very simple way

Installation and Usage

  1. use pip install json_txt
  2. Make sure that your pip version is updated pip install --upgrade pip.
  3. Select the correct package for your environment:
  4. Import the package: import json_txt

Functions in the module

  1. extract_data method helps you extract all the key value pairs from the txt file to dict json_txt.extract_data(filename)

  2. Helps you detect weather the var is int or not returs bool json_txt.number_detect(letter)

Run Locally

Clone the project

  git clone https://github.com/kshitij1235/Json_txt/tree/main/dist

Install

  pip install json_txt

List of Functions

functions processs args
extract_data(filename) Extracts key value pair filename

Usage/Examples

way to write your txt

{
    sence:3
    height:5
    marks:23
}

//dont make any sub tree to write your data do it under one tree/{}

code

import json_txt

json_txt.extract_data('demo_file.txt')

Output

{'sence': 3, 'height': 5, 'marks': 23}

Badges

MIT License

Authors

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

json_txt-1.0.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

json_txt-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

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