Skip to main content

Liftwing Python Package

Make request to machine learning models hosted on Lift Wing - the Wikimedia Foundation's ML model serving platform

The LiftWing python package works as a client for developers making API requests. With this package developers will be able to import their desired API and make requests to it.

Installation

Install the python package named liftwing using pip:

pip install liftwing

After installing the package you can list the available models

python -m liftwing

Using the package

We can make requests to a model server:

from liftwing import RevertRiskAPIModel

client = RevertRiskAPIModel()
result = client.request(payload={"lang": "en", "rev_id": "123456"})

print(result)

Result:

{
   "model_name":"revertrisk-language-agnostic",
   "model_version":"3",
   "wiki_db":"enwiki",
   "revision_id":"123456",
   "output":{
      "prediction":false,
      "probabilities":{
         "true":0.25512129068374634,
         "false":0.7448787093162537
      }
   }
}

Metadata

Release files for liftwing 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for liftwing 0.1.1
File Size Uploaded Provenance Actions
liftwing-0.1.1.tar.gz 5.0 kB Without provenance Details for liftwing-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for liftwing 0.1.1
File Interpreter ABI Platform Actions
liftwing-0.1.1-py3-none-any.whl Python 3 none any Details for liftwing-0.1.1-py3-none-any.whl

Total release size: 13.3 kB

Release files / liftwing-0.1.1.tar.gz

Download URL liftwing-0.1.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
06340dace2c442e8d801729e3aece0ea20d83b7fa39d7acd925f0fc1c3511423
BLAKE2b-256 checksum
How to use checksums
3c964640dc14a4055d4a1efa05450d576c18cf73d1b3ecc787a16ff12b0b9f7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / liftwing-0.1.1-py3-none-any.whl

Download URL liftwing-0.1.1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f45cbdc82a3c19d86f8b17f5dfb2bc39e893f563eb051d0eedeccb6a120e67cd
BLAKE2b-256 checksum
How to use checksums
b3e9be91a85b4ad2907dbd8e1322b628835073d61489c0fb27ad63334023d87a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Security for liftwing 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page