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.41.0.tar.gz (524.1 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.41.0-cp37-abi3-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.7+Windows x86-64

opendal-0.41.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.8 MB view details)

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

opendal-0.41.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (10.1 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.41.0.tar.gz.

File metadata

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

File hashes

Hashes for opendal-0.41.0.tar.gz
Algorithm Hash digest
SHA256 d5761ed82653a453650233e58372cda40df7708b6f29144414e05675127469b5
MD5 76eeac37aa09e886cb31c0b233bf4d7f
BLAKE2b-256 0db749ee4072334c8d2fdefde97baab7ad739ca5fce4a9638f6ccc32665ea388

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for opendal-0.41.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ba5abec90218220a41d64d910114f4864d11593be3f51475f37cb67c9b5e4a03
MD5 15b21d7b54af3d20f066c76235d2d791
BLAKE2b-256 faedb8bd7b15ca4828405ea1f226641ff0e13880a5a14eb436a031124bfb81d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opendal-0.41.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 314c1cb4140aa9b6da32c9e0a193247628dbd7ebcda427a709bafbbbc1351f0c
MD5 bcc5b22af82a6cc648cac9afea0065a4
BLAKE2b-256 c79f6e64495916ee61a5622c10f7a479556395501c5765ebc8efa24450d7f6d2

See more details on using hashes here.

File details

Details for the file opendal-0.41.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.41.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 db45b4915ad275f40aa27de2413299fcaf07fec7f77b7f8ab2f98e81a9298c3c
MD5 a690d9bd7461c1759588efb6085cafa5
BLAKE2b-256 ed999abda91f8afef5070b35017dfaa611c0d7cddd6f2eea2d866261df1410fb

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