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.0.tar.gz
(25.2 kB
view details)
Built Distribution
pyos-0.7.0-py2.py3-none-any.whl
(48.6 kB
view details)
File details
Details for the file pyos-0.7.0.tar.gz
.
File metadata
- Download URL: pyos-0.7.0.tar.gz
- Upload date:
- Size: 25.2 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 | d01fc416c21a641216bc1245d1e8fc1df7ede4379c3252267797b205b7f3d424 |
|
MD5 | b0956b2e4fa62e51918f188e66f35353 |
|
BLAKE2b-256 | 6824d6852be62528e5a09d575ee8325e3fbcd31268097a86fb9a524a3320950b |
File details
Details for the file pyos-0.7.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pyos-0.7.0-py2.py3-none-any.whl
- Upload date:
- Size: 48.6 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 | 301026030d7ec775ae6191be21a05dd66a5369e8c97d14f80568c13198882c0d |
|
MD5 | 2c6a6dd57fd39ee7e1648b117acab1ae |
|
BLAKE2b-256 | 8e7864db54298da2ce40f2f6da73825bf79879050fd5f176cdebf3277c4a8811 |