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.6.0.tar.gz
(23.8 kB
view details)
Built Distribution
pyos-0.6.0-py2.py3-none-any.whl
(47.0 kB
view details)
File details
Details for the file pyos-0.6.0.tar.gz
.
File metadata
- Download URL: pyos-0.6.0.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4013276ae3f6e789b5508dadbd2ab032b13b1f99df3c2d78d62ecc3569f6536 |
|
MD5 | c5f64bacb7f2ffc5bb79dfa960db86d3 |
|
BLAKE2b-256 | 0dc6cdd9dfa0d8f258cc451a7fded4e8910f920e2c32a6e37b30009293424077 |
File details
Details for the file pyos-0.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pyos-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 47.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd3a0e3fc86a2f30d10c5ab38861bd646bc03df93eadcbdeb5dbbff25a326eb8 |
|
MD5 | 89906c6febec331e2c474bc4344edbd2 |
|
BLAKE2b-256 | 8ef6d0a649f93e78c07e8fb913c1b41addf5de6f8ded91a66ec918e06d20c192 |