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 details)
Built Distribution
pyos-0.7.1-py2.py3-none-any.whl
(49.9 kB
view details)
File details
Details for the file pyos-0.7.1.tar.gz
.
File metadata
- Download URL: pyos-0.7.1.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a13c8f2d3fc948873fb4082658de579fa5ddd9e72c2f2dec347868941e6a41d8 |
|
MD5 | 857e1efe8b16e0baa98a5b22b0f867d2 |
|
BLAKE2b-256 | 5b5cfffdbdd2acf083ddfb1ef1fc3ece76519fce98be449dbcfbf7da7c312ac7 |
File details
Details for the file pyos-0.7.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pyos-0.7.1-py2.py3-none-any.whl
- Upload date:
- Size: 49.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f6181136910eee4034a1ad7bdce097e0593f40641a2d86e994b4a160d1f46f6 |
|
MD5 | b8be40099a96d5c6da0e25d6dcd4a765 |
|
BLAKE2b-256 | e81fff63af4af930fdbe8af232785255656dc9db39c0e86f44fce4274e1a1621 |