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

Uploaded CPython 3.7+Windows x86-64

opendal-0.40.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

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

opendal-0.40.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (10.0 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.40.0.tar.gz.

File metadata

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

File hashes

Hashes for opendal-0.40.0.tar.gz
Algorithm Hash digest
SHA256 7245eef9abe9c8ba0dcf81f70df9bd9c74019e645e5a7f8e400d95904fbb3a9a
MD5 8309eac1b4ce4586752d422e39255ffe
BLAKE2b-256 26828372bffc76e1354453493dc584a6335673c72d40d315a0efba3406177e73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opendal-0.40.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.2.3

File hashes

Hashes for opendal-0.40.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a51f0e4d04f5b2548726379b294288895f13c67239cb51c874378d47b31fc762
MD5 da9c9b9339823dbb7d41adb5a862ac20
BLAKE2b-256 98a3b5475417713acda7ac9a4cdaba0c27f9ac63f45403465b4038180588a06d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opendal-0.40.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b574e63ff8b2cbd683ad474b3d299f7f21363db73a2c8f518d69b45ca94912f
MD5 234ab21420ce1907ee8ff2e6ad575d5a
BLAKE2b-256 8acccceaa61562fd086b347d6dda9dfa6f103857724b7a4921c6db524b3ecd54

See more details on using hashes here.

File details

Details for the file opendal-0.40.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.40.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d51fb057437cd24542ad830c55f06c03b996e9dbe32d3c148281793a26aad2ea
MD5 b03c8fce883645cff3aebe37fba83fc2
BLAKE2b-256 6b296a05cdb7a8a864048cb40fe0d95a75e1545309fac6808168f9b59ea444e5

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