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.38.1.tar.gz (452.5 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.38.1-cp37-abi3-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.7+Windows x86-64

opendal-0.38.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

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

opendal-0.38.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (9.8 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.38.1.tar.gz.

File metadata

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

File hashes

Hashes for opendal-0.38.1.tar.gz
Algorithm Hash digest
SHA256 9214bcc64671494734a37f03cf1fe040dd21469fad2bd476b29e4d4d11923cfb
MD5 ee989e184e79cc14c34f9e0ae0c72c18
BLAKE2b-256 6d6529bb4d946ae26296e729279d47d500f7556978b52de6d9edc9a33f0e8dea

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for opendal-0.38.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 279353e91b754ed6f93a6b5f26928b77cdc16be7adbc3c1cc60364a114ffb490
MD5 2009a3d2a2c3a5b700968209debd431a
BLAKE2b-256 f56ad0c156f3c9e5469466d4264c73b0648d86eb0692c88c75a6644077ec5907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opendal-0.38.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a6b775f04b240d05ba59ffea995cc509fe6f0dadc3fcf893f439d7d66e4190e
MD5 f72837b7e0549f96a1cf2e2dee99b806
BLAKE2b-256 c449b75024bf74b7c09aa3841f80427057852a167bfe41b42c15d46ef74711ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opendal-0.38.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 95e008199d33387a2cdcb004d314f9a3f132ff6ceb5cafafb90e5722bdd53fe5
MD5 0c46c346d22350d365146e37e900dede
BLAKE2b-256 27c1dd275b94a9fce88d926d8e346ff107eae4a6b7522de766861ee6a2b2b2c1

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