Skip to main content

Apache OpenDAL™ Python Binding

Project description

Apache OpenDAL™ Python Binding

PyPI Website

Documentation: main

This package intends to build a native python binding for Apache OpenDAL.

Installation

pip install opendal

Usage

fs service example:

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())

s3 service example:

import opendal

op = opendal.Operator("s3", root="/tmp", bucket="your_bucket_name", region="your_region")
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("s3", root="/tmp", bucket="your_bucket_name", region="your_region")
    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

Build bindings:

maturin develop

Run some tests:

# Ensure the dependencies are installed
maturin develop -E test
# To run `test_write.py` and use `fs` operator
OPENDAL_TEST=fs OPENDAL_FS_ROOT=/tmp pytest -vk test_write

Build API docs:

maturin develop -E docs
pdoc -t ./template opendal

License and Trademarks

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.

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.45.14.tar.gz (782.3 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.45.14-cp313-cp313t-manylinux_2_28_aarch64.whl (16.1 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

opendal-0.45.14-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.6 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

opendal-0.45.14-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (15.6 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARMv7l

opendal-0.45.14-cp313-cp313t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (30.5 MB view details)

Uploaded CPython 3.13tmacOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

opendal-0.45.14-cp311-abi3-win_amd64.whl (15.0 MB view details)

Uploaded CPython 3.11+Windows x86-64

opendal-0.45.14-cp311-abi3-manylinux_2_28_aarch64.whl (16.1 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

opendal-0.45.14-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.6 MB view details)

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

opendal-0.45.14-cp311-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (15.6 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARMv7l

opendal-0.45.14-cp311-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (30.6 MB view details)

Uploaded CPython 3.11+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

opendal-0.45.14-cp310-cp310-win_amd64.whl (15.0 MB view details)

Uploaded CPython 3.10Windows x86-64

opendal-0.45.14-cp310-cp310-manylinux_2_28_aarch64.whl (16.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

opendal-0.45.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

opendal-0.45.14-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (15.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARMv7l

opendal-0.45.14-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (30.5 MB view details)

Uploaded CPython 3.10macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: opendal-0.45.14.tar.gz
  • Upload date:
  • Size: 782.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for opendal-0.45.14.tar.gz
Algorithm Hash digest
SHA256 6efa48efc77ff24ccbdc310c2252f92d90a626e065ce4bb659ec20a3a84d8b1e
MD5 b36d13c4b856d938a9cc309cf8c2683d
BLAKE2b-256 8a3d59fc8da8191fd68f2750543b13d6fb29e0857b81ce10f11c6942c9ce248f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14.tar.gz:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp313-cp313t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 de76bfba28a9fa296fcdaad10ef5da72b23b387c5012239b43514d656068335b
MD5 ab307b2f6a12df2ffbfef43da562215b
BLAKE2b-256 4b82f328b2160692339fdb83939cdde0f1ca300d648ace10fd84ce26db9aae68

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp313-cp313t-manylinux_2_28_aarch64.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c6485a504ea1cdc90829c8c66bce339549f900470e384a35fb5de2fdb151ea42
MD5 36d1e10bff2b3d1bad47323053dac2d3
BLAKE2b-256 b2372a2be7bdcb1594ad48863bfaa20091ff88ad74890dc19a852bf335d0338a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 901bd4edd011bf6fe262d7b920dd70176e37037bd74da62cc0862fba5b9da7be
MD5 8efdf6e2a8ba92f43e7ae6a72b13e0bc
BLAKE2b-256 cee4bb7778f79b9be1b6197abd05f54d38520e9a514b68be33e0778f0d07c217

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp313-cp313t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp313-cp313t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 7cf22ac17d5693348e066e9cf23bff7d1a23cac1f7de59a5fca08b66712a846e
MD5 276b810b1477bc4235ca01f6c7be1f8c
BLAKE2b-256 4e7c55ac8535d37c95aab89e1c24426ddb857c5e8209d8433978df1d0ff9f630

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp313-cp313t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: opendal-0.45.14-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 15.0 MB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for opendal-0.45.14-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 47d41e1a412b82fd772ba4e0dd29c8848345a4312d630e0753a4330a6b5f9681
MD5 2f8460c549c5a4048348f6cfcd5ddefa
BLAKE2b-256 9cf813c9466a25de0d935aec6102264c8e49fabdd1775e86ab382960d5cdf3b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp311-abi3-win_amd64.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp311-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2961f1478d3419767fb8c42e97093afbbbed9ff339bf25e3bc05c18f39127356
MD5 3e387c2bd9a51aee8a9846f06c9cda9f
BLAKE2b-256 ede4c542e8424bc44d5a36fa9c5000afa97b042f0d26a0d3b0754e63216e981f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp311-abi3-manylinux_2_28_aarch64.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6f828bd163abfdf2d68935ce47ce9a7f22ee0e2f352e1dd3dcb26f4ee3259800
MD5 243c84213476fd4a370b6800fd926f81
BLAKE2b-256 70bdaa7d809f4f3584c2a69225266e9af14dacd00017084a885cc419d4a28642

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp311-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp311-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 d51bb62384af1959306bb5750ec9fab53c4f9b0d4737e270d704c90dd62bcdaf
MD5 90a5f1ada1624d4a0bc25f822128ce3e
BLAKE2b-256 f4c01bd48e513dbf74db6ee31088a1252986c7730896a5272b89b8eb2705b97f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp311-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp311-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp311-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 036309db35765fadb22602c02dff718da77788ce08a291714aa0aa454e0dbff2
MD5 71348cfe52c04a06fad66de4a9560d27
BLAKE2b-256 d73a9aa73a26b6a5f22aeb380c2ebbeb09f4eff8483730de92cd2f3a25fd09db

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp311-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: opendal-0.45.14-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 15.0 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for opendal-0.45.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7f822591598eeb56c010eacddbd315e02517c738afffc7c207a9688fd4b436a7
MD5 6ea5d7927c29abce59f6e31bc2af3e3a
BLAKE2b-256 05aaf4ea5fc6e9635c52e36f9804b6c2628e1711c29fdb8ded759fcafcd993b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp310-cp310-win_amd64.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 100ffad58de7ac8f795f893e4cd7527d875dfd6923dad57d0f475d8436929aa0
MD5 53aee53c1e2ca5502dfe55eaa7c973e9
BLAKE2b-256 ce17239366a6cbbf5cfac3483cb31d19ed82ea796ea36962e5356fb5bd72777f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp310-cp310-manylinux_2_28_aarch64.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b7924e667303d5d646516509654dd1ce11f434587c2a448489a0f6fa62ee374a
MD5 94fed16162c52a7aa3ffdc6c5153b3a5
BLAKE2b-256 23cc4bd5ba573beb8c558cda65a6bcba94c1eee7a4b831361951aa8b1c94b162

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 13fa9af23dfa57bf3fc83bb3f7fa0402aa885ed21666d9232f573cfd1397a7ce
MD5 5d2853de3846cfa2a041abd27b7c13b1
BLAKE2b-256 d33a1e9d7b6993384ee96d3d8f292a3c7f02920237944cb676881735fc80fa4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opendal-0.45.14-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for opendal-0.45.14-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 500b0a25f7c5d11ade03f2e261ea3cb7634bb4720e86bc5c452dc13ece799bca
MD5 207bb19a366e14f0a0477a5bc96a3ab9
BLAKE2b-256 895b67aced5fcd665b382b0cd137f0dc38609d58aed399d96be642f7a88c148f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opendal-0.45.14-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: release_python.yml on apache/opendal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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