Skip to main content

Stream HTTP data to Apache Arrow format for efficient processing and analytics.

Project description

http-to-arrow

http-to-arrow provides Arrow-backed containers for streaming HTTP and ETL-style ingestion workflows.

The package uses a standard source layout so code lives under src/http_to_arrow/ rather than the project root.

Package-specific tests live under tests/ inside this workspace member, while the monorepo root can still host shared integration tests when needed.

Included exports

  • ArrowRecordContainer
  • UnknownFieldPolicy
  • MissingFieldPolicy
  • CoercionPolicy

Explicit schema

import pyarrow as pa

from http_to_arrow import ArrowRecordContainer

container = ArrowRecordContainer(
    schema=pa.schema([
        pa.field("id", pa.int64()),
        pa.field("name", pa.string()),
    ])
)

container.append({"id": 1, "name": "alpha"})

Inferred schema

from http_to_arrow import ArrowRecordContainer

container = ArrowRecordContainer(schema=None)

container.append({"ID": 1})
container.append({"id": 2, "name": "beta"})

table = container.to_table()
assert table.to_pydict() == {
    "ID": [1, 2],
    "name": [None, "beta"],
}

Notes

  • schema=None enables inferred mode.
  • Inferred mode widens as new fields appear and backfills older rows with nulls.
  • Conflicting inferred field types widen when possible and otherwise fall back to string.
  • to_table() raises when inferred mode has neither an explicit schema nor any appended records.

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

http_to_arrow-0.1.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

http_to_arrow-0.1.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: http_to_arrow-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for http_to_arrow-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2b9392417160fe49405b512e84fc3cb58315d1d4ba8b9d96b6d751a6edb537c5
MD5 564f61c037cb86b72acabb4e9e517eeb
BLAKE2b-256 0b8dcf8b1437a81a74960520ac813c51f83faab2f65ca05070afb9fa848de1d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for http_to_arrow-0.1.2.tar.gz:

Publisher: publish-http-to-arrow.yml on ProxayFox/proxay-pylibs

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

File details

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

File metadata

  • Download URL: http_to_arrow-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for http_to_arrow-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 98b2c198dc83db45aee9e318dafe0d734d9d858da607be607596895ad9594708
MD5 787e92a3cbde094b496f55088d2dba29
BLAKE2b-256 399e74e2293f5444d981f34a131e6d5dae905848d65b8332d17b7044f94136eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for http_to_arrow-0.1.2-py3-none-any.whl:

Publisher: publish-http-to-arrow.yml on ProxayFox/proxay-pylibs

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