Skip to main content

File pipeline

Project description

OARepoFilePipeline

Flask extension for OARepoFilePipeline.

Setup

In app configuration define:

  1. This repository RSA key pair (public_key, private_key)
  2. PIPELINE_FILE_SERVER RSA public key
  3. PIPELINE_FILE_SERVER URL

Optionally you can change:

  1. Signing algorithm for the JWT
  2. Encryption algorithm and method for the JWE
"""Private and public RSA keys for singing JWT token"""
PIPELINE_REPOSITORY_JWK =  {
    "private_key": "",
    "public_key": ""
}

"""Public RSA key of FILE_PIPELINE_SERVER to encrypt JWE token with payload"""
PIPELINE_JWK =  {
     "public_key": "",
}

"""FILE_PIPELINE_SERVER redirect url"""
PIPELINE_REDIRECT_URL = ''

"""Default algorithms"""
PIPELINE_SIGNING_ALGORITHM = "RS256"
PIPELINE_ENCRYPTION_ALGORITHM = "RSA-OAEP"
PIPELINE_ENCRYPTION_METHOD = "A256GCM"

Usage

Endpoint initiating pipeline is .../<id_>/<file_key>/pipeline. It accepts optional query parameters, such as pipeline, for suggested processing steps (preview_zip, preview_picture etc.). Then it redirect the client to a dedicated server

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

oarepo_file_pipeline-0.1.1.tar.gz (362.8 kB view details)

Uploaded Source

Built Distribution

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

oarepo_file_pipeline-0.1.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oarepo_file_pipeline-0.1.1.tar.gz
  • Upload date:
  • Size: 362.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oarepo_file_pipeline-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8286bd3466cc10bcb8f9a9ad448909386bb2989c21667ded2c22eff0133402e0
MD5 5db815d2c542111643d276f3cc5db150
BLAKE2b-256 b927c9857bc40e7db7522ea57f3cbdc66b9e7ce860e675d5f18ce72f97f28e41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for oarepo_file_pipeline-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37771d32ec838e95cbbdeb68e15f5405ad32f5a4a27eee2868837566b3db4e67
MD5 d43fd8f004cb3a88ca97899e80a59c19
BLAKE2b-256 2eb19840c52b814a77c7c365171e40a04047574c91d0d1cdf24711b322354b3a

See more details on using hashes here.

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