Skip to main content

Implement Datashare task in Python

Project description


Datashare

Better analyze information, in all its forms




Documentation: https://icij.github.io/datashare-python


Implement your own Datashare tasks, written in Python

Most AI, Machine Learning, Data Engineering happens in Python. Datashare now lets you extend its backend with your own tasks implemented in Python.

Turning your own ML pipelines into Datashare tasks is very simple, learn about it inside documentation.

Turning your own ML pipelines into Datashare tasks is very simple.

Actually, it's almost as simple as cloning our template repo:

$ git clone git@github.com:ICIJ/datashare-python.git

replacing existing app tasks with your own:

from icij_worker import AsyncApp

app = AsyncApp("app")


@app.task
def hello_world() -> str:
    return "Hello world"

installing uv to set up dependencies and running your async Datashare worker:

$ cd datashare-python
$ curl -LsSf https://astral.sh/uv/install.sh | sh
$ uv run ./scripts/worker_entrypoint.sh
[INFO][icij_worker.backend.backend]: Loading worker configuration from env...
...
}
[INFO][icij_worker.backend.mp]: starting 1 worker for app datashare_python.app.app
...

you'll then be able to execute task by starting using our HTTP client (and soon using Datashare's UI).

Learn more reading our documentation !

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datashare_python-0.1.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datashare_python-0.1.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file datashare_python-0.1.1.tar.gz.

File metadata

  • Download URL: datashare_python-0.1.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for datashare_python-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a6b64ff99da3451a7ec136e2a5db7f667421d99f220ffa66f63a8ece053a122d
MD5 5e9f0fb1dc3d3a1febf8a3a7fb81fea0
BLAKE2b-256 f305b51fa372925c83491aaac2175a386279d6a513d9a26ebb9315cfe8083397

See more details on using hashes here.

Provenance

The following attestation bundles were made for datashare_python-0.1.1.tar.gz:

Publisher: publish.yml on ICIJ/datashare-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datashare_python-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datashare_python-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be6b05c039203d98439dd7a3e46a2bca0b01b29a41d286d63ff40a4d22818347
MD5 0b6c083ab3e5d2fb6692d23f127f4bc5
BLAKE2b-256 1ae2b201ecbdd05e6d229c1f192a93e374e0470d33687053ec86b18096f82dcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for datashare_python-0.1.1-py3-none-any.whl:

Publisher: publish.yml on ICIJ/datashare-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page