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

Uploaded CPython 3.7+Windows x86-64

opendal-0.39.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.39.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (9.7 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.39.0.tar.gz.

File metadata

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

File hashes

Hashes for opendal-0.39.0.tar.gz
Algorithm Hash digest
SHA256 843945f4b219c849cb355b8df005276530e30bcfb4b71c17712830c150a225ef
MD5 2c0cc7f731fdfe482ed0b583537420a5
BLAKE2b-256 704efcf1f626976e59ab7aec67819d27cc2e13957e38774d4ee8b16a1962d13e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opendal-0.39.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.1.0

File hashes

Hashes for opendal-0.39.0-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2bee1d33c5febdc9b41a1278ece9823a022128d0178d833e1ec59b9a2692234b
MD5 3d52ea0462622045f186fa2e5ef24cb6
BLAKE2b-256 ece027296c3538c017f85a892cd419d42dfa1f69442f89b4dc74d5b6f8211680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opendal-0.39.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1d2620eea8eeab50007ed4c51bf522280e1a40bc332b092cb50ab4d6ee16c87
MD5 e31696d706f08542bf9a0f6425a1e2dd
BLAKE2b-256 f1858a1a68581f79a8fe1f5004e70058d7cafb66d8824b9f05ca0fcd22a5e968

See more details on using hashes here.

File details

Details for the file opendal-0.39.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.39.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fe930359e97075247fccfdadca5798da0f74046a02f7ddd43e6bf069184c8216
MD5 3b46bbe967c3e19a5046a6dbc22ffb30
BLAKE2b-256 022645c21b94e20cd4ec72b5e458ee640a6b24e85a870cd7edf542e526155cc4

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