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
Release history Release notifications | RSS feed
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.35.0.tar.gz
(408.4 kB
view hashes)
Built Distributions
Close
Hashes for opendal-0.35.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eac2bf96ac4e5aeeba8dccdb21c90d37f67af670f56f1d7893138299875b489f |
|
MD5 | a80c0c6ef4c3e6567f1ea2f5a703ab52 |
|
BLAKE2b-256 | 56352f8d45b008502400934f286d4489688c6999f0e648156fe5a1e5e65d0853 |
Close
Hashes for opendal-0.35.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 071b13fd79c7876910870c8721f6865403a9d8e03ecfdc4e9d1dadd4483efe23 |
|
MD5 | 9ac9d3d380bafc37735624765f2ac079 |
|
BLAKE2b-256 | 7436cdc60e8be6646a9741ec5d8fa10ac0233e0066b6d99ad9771b159ac3db91 |
Close
Hashes for opendal-0.35.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de97dbbd050e223004b89d45b236ae0e59bf5b095874238d2743161cbfac91e |
|
MD5 | 0901aa40bb7e0c9a98e9e44dc022bcda |
|
BLAKE2b-256 | 7de1c3a4a491a775f341087df953d4ff89121907dcc88407c26c9f758b0011a8 |