Skip to main content

Browse python objects as if they were files on disk

Project description

Coverage Travis CI Latest Version https://img.shields.io/pypi/wheel/pyos.svg https://img.shields.io/pypi/pyversions/pyos.svg https://img.shields.io/pypi/l/pyos.svg

A fresh way to interact with your python objects as though they were files on your filesystem.

Installation

As easy as:

  1. Install MongoDB

    Ubuntu:

sudo apt install mongodb
  1. 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


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)

Uploaded Source

Built Distribution

pyos-0.7.1-py2.py3-none-any.whl (49.9 kB view details)

Uploaded Python 2 Python 3

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

Hashes for pyos-0.7.1.tar.gz
Algorithm Hash digest
SHA256 a13c8f2d3fc948873fb4082658de579fa5ddd9e72c2f2dec347868941e6a41d8
MD5 857e1efe8b16e0baa98a5b22b0f867d2
BLAKE2b-256 5b5cfffdbdd2acf083ddfb1ef1fc3ece76519fce98be449dbcfbf7da7c312ac7

See more details on using hashes here.

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

Hashes for pyos-0.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8f6181136910eee4034a1ad7bdce097e0593f40641a2d86e994b4a160d1f46f6
MD5 b8be40099a96d5c6da0e25d6dcd4a765
BLAKE2b-256 e81fff63af4af930fdbe8af232785255656dc9db39c0e86f44fce4274e1a1621

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page