Skip to main content

Maintainability

Test Coverage

Faust Avro

Avro codec and schema registry support for Faust.

Getting Started

First Time Setup

  • Get asdf
  • Install python: asdf install python
  • Get poetry
    • curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
    • As with any code asking you to do this from the internet, you should really first download get-poetry.py and inspect it to make sure it doesn't do anything bad, then run the copy you inspected.
    • Or you can just pip install poetry to stick it inside the main python install by asdf. If you switch python versions and get errors about reshimming poetry, that version of python doesn't have poetry installed.

Install needed packages

poetry install

Activate environment

Most directions here assume you have the poetry-created virtualenv active. Some form of source .venv/bin/activate (or source .venv/bin/activate.(csh|fish)) should activate the environment for you, or you can configure your shell to auto-activate, eg:

$ cat ~/.config/fish/functions/cd.fish
#!/bin/env fish

function cd -d "change directory, and activate virtualenvs, if available"
    # first and foremost, change directory
    builtin cd $argv

    # find a parent git directory
    if git rev-parse --show-toplevel >/dev/null ^/dev/null
        set gitdir (realpath (git rev-parse --show-toplevel))
    else
        set gitdir ""
    end

    # if that directory contains a virtualenv in a ".venv" directory, activate it
    if test \( -z "$VIRTUAL_ENV" -o "$VIRTUAL_ENV" != "$gitdir/.venv" \) -a -f "$gitdir/.venv/bin/activate.fish"
        source $gitdir/.venv/bin/activate.fish
    end

    # deactivate an active virtualenv if not int a git directory with an ".venv"
    if test -n "$VIRTUAL_ENV" -a "$VIRTUAL_ENV" != "$gitdir/.venv"
        deactivate
    end
end

Add pre-commit hooks

Install git pre-commit hooks via pre-commit install. These will auto-run black and isort to ensure your code is pretty no matter what editor you use. This must be done inside an activated environment.

Running tests

pytest

Metadata

Release files for faust-avro 0.4.1

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

Source distribution (sdist)

Source distribution for faust-avro 0.4.1
File Size Uploaded Provenance
faust_avro-0.4.1.tar.gz 15.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for faust-avro 0.4.1
File Interpreter ABI Platform
faust_avro-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 34.2 kB

Release files / faust_avro-0.4.1.tar.gz

Download URL faust_avro-0.4.1.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9380a31178b8bac3d543826d44b02a82c0a8a05be8d1dbbf8f26e6700e1de0f1
BLAKE2b-256 checksum
How to use checksums
09293213b9b90d3a0f42f1ba8821396e6862f05c4c5e78e4166c25af0226d8d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0b5 CPython/3.8.5 Linux/5.3.0-1035-azure

Release files / faust_avro-0.4.1-py3-none-any.whl

Download URL faust_avro-0.4.1-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a45e59c365eb335268f5724ce9c3476ee0d27047af948453ab79ad73480ace1
BLAKE2b-256 checksum
How to use checksums
66c28e333ab7a15292c223c3efdb8942d58b4ba5202d8d69c738c031a4b119ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0b5 CPython/3.8.5 Linux/5.3.0-1035-azure

Security for faust-avro 0.4.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.

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