Skip to main content

OpenDAL Python Binding

Project description

OpenDAL Python Binding

Documentation: main

This crate intends to build a native python binding.

Installation

pip install opendal

Usage

import opendal

op = opendal.Operator("fs", root="/tmp")
op.write("test.txt", b"Hello World")
print(op.read("test.txt"))
print(op.stat("test.txt").content_length)

Or using the async API:

import asyncio

async def main():
    op = opendal.AsyncOperator("fs", root="/tmp")
    await op.write("test.txt", b"Hello World")
    print(await op.read("test.txt"))

asyncio.run(main())

Development

Setup virtualenv:

python -m venv venv

Activate venv:

source venv/bin/activate

Install maturin:

pip install maturin[patchelf]

Build bindings:

maturin develop

Run some tests:

maturin develop -E test
behave tests

Build API docs:

maturin develop -E docs
pdoc opendal

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

opendal-0.35.0.tar.gz (408.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

opendal-0.35.0-cp37-abi3-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.7+Windows x86-64

opendal-0.35.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

opendal-0.35.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (9.6 MB view details)

Uploaded CPython 3.7+macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

File details

Details for the file opendal-0.35.0.tar.gz.

File metadata

  • Download URL: opendal-0.35.0.tar.gz
  • Upload date:
  • Size: 408.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.15.3

File hashes

Hashes for opendal-0.35.0.tar.gz
Algorithm Hash digest
SHA256 a087c45cb4e184c49f875778f21b7eb43cae29ae0c86e7416d5b2e8e998c0a20
MD5 620acc74b10ad3950d7b7e3c06b92d78
BLAKE2b-256 9b4721ebe2a955d35b019d7a79926eaef7cc75eb3eb56fc45e229ba045981332

See more details on using hashes here.

File details

Details for the file opendal-0.35.0-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: opendal-0.35.0-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.15.3

File hashes

Hashes for opendal-0.35.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 eac2bf96ac4e5aeeba8dccdb21c90d37f67af670f56f1d7893138299875b489f
MD5 a80c0c6ef4c3e6567f1ea2f5a703ab52
BLAKE2b-256 56352f8d45b008502400934f286d4489688c6999f0e648156fe5a1e5e65d0853

See more details on using hashes here.

File details

Details for the file opendal-0.35.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for opendal-0.35.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 071b13fd79c7876910870c8721f6865403a9d8e03ecfdc4e9d1dadd4483efe23
MD5 9ac9d3d380bafc37735624765f2ac079
BLAKE2b-256 7436cdc60e8be6646a9741ec5d8fa10ac0233e0066b6d99ad9771b159ac3db91

See more details on using hashes here.

File details

Details for the file opendal-0.35.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for opendal-0.35.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4de97dbbd050e223004b89d45b236ae0e59bf5b095874238d2743161cbfac91e
MD5 0901aa40bb7e0c9a98e9e44dc022bcda
BLAKE2b-256 7de1c3a4a491a775f341087df953d4ff89121907dcc88407c26c9f758b0011a8

See more details on using hashes here.

Supported by

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