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.39.0.tar.gz
(478.9 kB
view hashes)
Built Distributions
Close
Hashes for opendal-0.39.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bee1d33c5febdc9b41a1278ece9823a022128d0178d833e1ec59b9a2692234b |
|
MD5 | 3d52ea0462622045f186fa2e5ef24cb6 |
|
BLAKE2b-256 | ece027296c3538c017f85a892cd419d42dfa1f69442f89b4dc74d5b6f8211680 |
Close
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 |
Close
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 |