Skip to main content

Use json files with the import statement

Project description

https://travis-ci.org/kragniz/json-sempai.png?branch=master https://pypip.in/d/json-sempai/badge.png

Have you ever been kept awake at night, desperately feeling a burning desire to do nothing else but directly import json files in python [1]? Now you can!

Usage

Slap a json file somewhere on your python path. tester.json:

{
    "hello": "world",
    "this": {
        "can": {
            "be": "nested"
        }
    }
}

Now import jsonsempai and your json file!

>>> import jsonsempai
>>> import tester
>>> tester
<module 'tester' from 'tester.json'>
>>> tester.hello
u'world'
>>> tester.this.can.be
u'nested'
>>>

Installing

Install from pip:

$ pip install json-sempai

or clone this repo and install from source:

$ python setup.py install

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-sempai-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file json-sempai-0.1.0.tar.gz.

File metadata

  • Download URL: json-sempai-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for json-sempai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e651bd683b14ceec50934ec28431486995cd182898243a573108d9d60e23239
MD5 c0f5ee0f2c985fc4419264ccf567e464
BLAKE2b-256 f53825b590b00abfb3a457636f2b2b960c1b10e4c6b422fd2d44b2a9b3d9f2e0

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