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.36.1.tar.gz (419.4 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.36.1-cp37-abi3-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.7+Windows x86-64

opendal-0.36.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view details)

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

opendal-0.36.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (9.6 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.36.1.tar.gz.

File metadata

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

File hashes

Hashes for opendal-0.36.1.tar.gz
Algorithm Hash digest
SHA256 78de719b7183863e81e9bc8c5897555ad6efba17e50f6aab7343a5784073f2b2
MD5 ddeecb29455da9f564fb5d4a7745aee2
BLAKE2b-256 f1c75db9459f7f617956bfb9b85c2aa4531b41dff6a3131151da51a07ec6d0bd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for opendal-0.36.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8bd098026f64f4b41018964f17909ad06041d32acbe727b73b5ce54977c47478
MD5 78f1fefa71681194ea7351542f3b44ef
BLAKE2b-256 228a371f5bc236e4d2d3c9cef76189076e477dd717d85319414a3c791b1ad344

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opendal-0.36.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c5560d87b97193f4fecf83b8e9f1acb2220a07b828a2f1cf699a86b03f5f6a87
MD5 64baba9fd438a58b83ac95310f62f9b9
BLAKE2b-256 0de43066517132eb748a3ad1d88e7b2daa91c14569fc891c665bcc011378791b

See more details on using hashes here.

File details

Details for the file opendal-0.36.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.36.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 44aeae9b52446bc4a527cb77dfe821b2df8641dbe22a3d2e6a6a9c0092ddb300
MD5 8bb9d909d73750973cabe616528ecb8d
BLAKE2b-256 9c232c5f4a36ac6434c1b25b59c113b7f718bcb499dee64655a2254c2e419c12

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