aliyun/aliyun-odps-python-sdk
ODPS Python SDK and data analysis framework
What it solves
This SDK gives you a clean, Pythonic way to work with Alibaba Cloud's ODPS data service. Instead of dealing with raw API calls or complex configuration, you can write ordinary Python code to explore tables, inspect schemas, and query your data. It also removes friction from day‑to‑day tasks like testing user‑defined functions (UDFs) and running SQL in a notebook.
How it works
You install the package with pip install pyodps[full] (or just pyodps if you do not need Jupyter). Then you create an ODPS object using your Access Key ID and Secret (with environment variables recommended) and point it at your project and endpoint. From there you can call methods like get_table() to fetch table metadata, run SQL via the IPython %sql magic, and define Python UDFs with decorators. A command‑line tool called pyou lets you feed sample input to a UDF and see its output locally, making debugging quick and safe.
Who it’s for
If you use Alibaba Cloud's ODPS (also known as MaxCompute) and prefer Python over hand‑crafted SQL or API calls, this SDK is for you. It suits data engineers, analysts, and data scientists who want to manage tables, run queries, and test UDFs in a familiar, interactive environment. It works with Python 3.7 or newer, and the README recommends Python 3.11.
Highlights
- Pip‑installable with a
[full]extra for Jupyter support. - Simple
ODPSobject to access tables and schema metadata. - IPython magic commands (
%load_ext odps,%enter,%sql) for inline SQL execution. - A
pyoudebugger for testing Python UDFs with sample input files. - Open‑source under Apache License 2.0 and supports a range of Python versions.
Related
- Project
- Project
- Project
- Project