Browse python objects as if they were files on disk
Project description
A fresh way to interact with your python objects as though they were files on your filesystem.
Installation
As easy as:
Install MongoDB
Ubuntu:
sudo apt install mongodb
Install pyos:
pip install pyos
Usage example
> ipython
In [1]: from pyos.pyos import *
In [2]: ls()
[4]:
import mincepy
import urllib.request
import json
ids = []
with urllib.request.urlopen('https://raw.githubusercontent.com/ozlerhakan/mongodb-json-files/master/datasets/restaurant.json') as url:
for line, _ in zip(url, range(399)):
data = json.loads(line.decode())
data.pop('_id')
ids.append(mincepy.Dict(data).save())
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
pyos-0.7.1.tar.gz
(27.7 kB
view hashes)
Built Distribution
pyos-0.7.1-py2.py3-none-any.whl
(49.9 kB
view hashes)