Skip to main content

E360 File Service Client

pipeline status

E360 File Service Client for Python (Python 3.12+).

Development

This package depends on clients_core, resolved from the internal e360-pypi Artifactory index. On a corporate network (or VPN), install and run checks:

pip install uv
export UV_INDEX_URL=https://rwes-artifactory01.internal.imsglobal.com/artifactory/api/pypi/e360-pypi/simple
uv sync --group dev
uv run pytest
uv run ruff check file_service_client tests

Introduction

Utilises the E360-File-Service microservice.

Features

  • Create a file
  • Get a file's information
  • Get a file's binary content
  • Delete a file

Usage

import pathlib
from uuid import UUID

from clients_core.simple_rest_client import SimpleRestClient
from file_service_client import FileServiceClient

USER_ID = UUID("00000000-0000-0000-0000-000000000001")
base_url = "https://your-file-service.example.com/api/v1.0.0/files/"
client = FileServiceClient(SimpleRestClient(base_url), user_id=USER_ID)

my_file = pathlib.Path("image.png")

# Create a file
client.create(my_file)

# Get file info
asset_id = UUID("b3bbb1b8-a774-4a0f-9ab6-c76047f7fdce")
client.get_by_id(asset_id)

# Get binary data and create a file
data = client.get_file_bytes(asset_id)
pathlib.Path("image.png").write_bytes(data)

# Delete
client.delete_by_id(asset_id)

Pre-commit

pre-commit install --install-hooks --overwrite

Metadata

Release files for file-service-client 2.3.1

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

Built distribution (wheel)

Table of built distributions (wheels) for file-service-client 2.3.1
File Interpreter ABI Platform
file_service_client-2.3.1-py3-none-any.whl Python 3 none any Details

Release files / file_service_client-2.3.1-py3-none-any.whl

Download URL file_service_client-2.3.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f7ae9181e9bd3784b0e666d79c41714b400e6dc8699f8e7f133efd6bfd3c6cc
BLAKE2b-256 checksum
How to use checksums
a37b80f0bcc201af65f92c9b8d4ada030e8703aa1ecd53f5f61c76df0bed1db1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for file-service-client 2.3.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.

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