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.6.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

pyos-0.6.0-py2.py3-none-any.whl (47.0 kB view details)

Uploaded Python 2 Python 3

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

Hashes for pyos-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c4013276ae3f6e789b5508dadbd2ab032b13b1f99df3c2d78d62ecc3569f6536
MD5 c5f64bacb7f2ffc5bb79dfa960db86d3
BLAKE2b-256 0dc6cdd9dfa0d8f258cc451a7fded4e8910f920e2c32a6e37b30009293424077

See more details on using hashes here.

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

Hashes for pyos-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fd3a0e3fc86a2f30d10c5ab38861bd646bc03df93eadcbdeb5dbbff25a326eb8
MD5 89906c6febec331e2c474bc4344edbd2
BLAKE2b-256 8ef6d0a649f93e78c07e8fb913c1b41addf5de6f8ded91a66ec918e06d20c192

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