Treat your data as your code
Project description
Crazy Imports - treat your data as your code
crazyimports
module allows you to use your data as if it was python modules
Installation
pip install crazyimports
Simple example
Create example.json
file with this content
{"number": 42}
Than in the same directory create test.py
file
import crazyimports.json
import example
print(example.number)
Then when you run python test.py
you would see 42
output in your command line
This and other examples you can find in examples/
folder
Supported file extensions
.json
for JSON files.sqlite3
for SQLite3 database files
Inspiration
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crazyimports-0.0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for crazyimports-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b26783593f628959788eaf9b74f779597e518d08d16ed6c7d459b5fadb826aa |
|
MD5 | 2ce84e7477e8e82920b3b370ea06a0e7 |
|
BLAKE2b-256 | 112d08a09f6d4876a84925eb86b4d0dffc47cee455b81029738f336e9bcdf05f |