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.40.0.tar.gz
(507.5 kB
view hashes)
Built Distributions
Close
Hashes for opendal-0.40.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a51f0e4d04f5b2548726379b294288895f13c67239cb51c874378d47b31fc762 |
|
MD5 | da9c9b9339823dbb7d41adb5a862ac20 |
|
BLAKE2b-256 | 98a3b5475417713acda7ac9a4cdaba0c27f9ac63f45403465b4038180588a06d |
Close
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 |
Close
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 |