Skip to main content

Description

nifi_ffv3 is a Python library for packaging and unpacking data in the application/flowfile-v3 format, commonly used in Apache NiFi.

Features

  • Packages data into a byte stream compatible with flowfile-v3.
  • Allows adding custom attributes to the flowfile.
  • Handles large file sizes.

Installation

pip install nifi_ffv3

Usage

import io
from nifi_ffv3 import package_flowfile

# Data to be packaged
data = b"Hello, world!"
input_stream = io.BytesIO(data)

# Create an output byte stream
output_stream = io.BytesIO()

# Define custom attributes (optional)
attributes = {"filename": "example.txt", "author": "John Doe"}

# Package the data in flowfile-v3 format
package_flowfile(input_stream, output_stream, attributes=attributes)

# Access the packaged flowfile
flowfile_data = output_stream.getvalue()

Contribution

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

Apache-2.0 license

Download files

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

Source Distribution

nifi_ffv3-0.1.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

nifi_ffv3-0.1.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file nifi_ffv3-0.1.2.tar.gz.

File metadata

  • Download URL: nifi_ffv3-0.1.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for nifi_ffv3-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1c03c10e5ff1683e119c51dc9c13ef96f62a2d680d30a9b277e396491b42b006
MD5 c21fd8c2f6caa957e73346a5a42671cf
BLAKE2b-256 3889cf27fcc4e4a9e988faaad2411ed6984e6c47870e18255f862a9606d5c4fd

See more details on using hashes here.

File details

Details for the file nifi_ffv3-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: nifi_ffv3-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for nifi_ffv3-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c72718a98a517898d8329a46ce11a7f5c7bf678c9c41c109864ee3f55dc7a3d7
MD5 b7f905dde66788db8652f71645c3852d
BLAKE2b-256 13c4474c207d04386f9ccf5990717d6d17d08fc67fcd43c4c86a0d2d874301f0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.0

2 files

Supported by

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