kragniz / json-sempai Goto Github PK
View Code? Open in Web Editor NEWUse JSON files as if they are python modules
License: MIT License
Use JSON files as if they are python modules
License: MIT License
i.e.
{'array': [{"nested": "but undotted"}]}
Please, remove this library. Bad way to load json... 21 fork... It is terrifying
Recommend: json-sempy
To quote the license
The Software shall be used for Good, not Evil.
Like:
Load the URLs at the boot of your interface in a config or factory asynchronously. Then use $sce to parse the string and instantiate it as a template variable from environment variables of your app (timeStamp, etc.).
One of my co-workers suggested that we use this. I don't know if he's joking.
I hope he is.
I'm concerned that someone might be foolish enough to actually try to use this.
Possible resolution: move documentation pertaining to hating yourself and the world further up in the readme.
Other possible resolution: destroy this project and all references to it, removing it from github and pypi.
In my production server I keep needing to do:
def crud_handler():
request = __import__('user_posted_json')
eval(request.method)(db_connection, request.args)
Please consider allowing this syntax so my code looks cleaner:
def crud_handler():
request = __import__('user_posted_json')
request.method(db_connection, request.args)
I think adding a __call__
method on DottedDict that wraps eval should do it.
Needs to support BSON also, so we can do horrible dirty things like load Mongo data off disk, as a module, w/o a MongoDB server.
configure file? just like lua table style
One does not simply use m
without vowel after. The correct version is senpai
, せんぱい.
I am a masochist. I cannot stop until I unleash this wretched beast and let it wreak havoc upon my world.
But for serious now, any idea why "pip install json-sempai" won't also download the "tests" directory? fyi, I'm on a windows machine.
Someone might actually use this.
Ever since I saw this I have been unable to sleep. Please fix.
To appease the AbsurdJS crowd: https://github.com/nerdfiles/css-sempai
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.