Skip to main content

Utils for making os standard path operationsinteroperable with Cloud blob storages

Project description

# smart_pathlib - utils for making common path operations interoperable with Cloud object storages

## What ?

smart_pathlib is highly inspired by smart_open and provide drop-in replacement for Python part of os, os.path, glob modules functions such as exists, stat, listdir, glob.

## Why ?

The goal is to provide a clean and Pythonic API for common file manipulations. It simplifies rapid application development, making your code that manipulates files interoperable with local file system and Cloud blob storage solutions such as S3, GCS, Azure Blob Storage.

## Example

A drop-in replacement os.path.exists that operates on different storage types:

`python # Test if a local file exists from smart_pathlib import exists assert exists('/Users/me/Downloads/test_file.txt') `

`python # Test if a file exists on GCS from smart_pathlib import exists assert exists('gs://my_bucket/test_file.txt') `

## Installation

You can select the “flavor” of smart_pathlib to install, depending on your storage provider:

` pip install smart_pathlib[gcp] # Install GCP deps `

Or install all packages using: ` pip install smart_pathlib[all] `

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

smart_pathlib-0.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

smart_pathlib-0.0.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file smart_pathlib-0.0.1.tar.gz.

File metadata

  • Download URL: smart_pathlib-0.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for smart_pathlib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c666906a3661cbb240e55e853fe2a374b4ac694f04fc98f37332e8e83476a689
MD5 35baff9535872516e2257f4648995b02
BLAKE2b-256 8cad9df693b0826c6827a998f8c37ef3b450ffc939604def1f72bbd408001a2f

See more details on using hashes here.

File details

Details for the file smart_pathlib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: smart_pathlib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for smart_pathlib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65da5b3b81067c9e02c197940c61815a2628ce54823eb105dba3492d64fb29e7
MD5 a7ae4933e7cd48009df4e82806cc63c6
BLAKE2b-256 9209e43c28492dcaa41ec79e5dc1c878dce0ae1b9765fed639d9433a27bf4f23

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