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.3.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.3-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datashare_python-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b93d977c9da8d4bc196d19f0bbd66b01b8adec7200a1eb8358133d7b8913741d
MD5 f016b302b4d6dc285a6dd9de45871d71
BLAKE2b-256 e93a5fcd78ee91e0a5ffebe47a7ffd3c5badfd2af0a140e9989d186ebb235216

See more details on using hashes here.

Provenance

The following attestation bundles were made for datashare_python-0.1.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for datashare_python-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9b6b1952f1f3c54695487e3e34be94385d087e9c220da83a9129641777e01fcc
MD5 d573a9c78d68232f313f744a2dc20a4a
BLAKE2b-256 732144625000f61a46c77d07648837a4fafb4f88257958204e22608c2b6d4975

See more details on using hashes here.

Provenance

The following attestation bundles were made for datashare_python-0.1.3-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