Skip to main content

No project description provided

Project description

README

WARNING THIS LIB IS INCOMPLETE.

Faust Avro Codec Codegen

This project is a Python-based code generator that creates Faust topics and codecs from Avro schemas. It is dependent on faust-avro-model-codegen.

Prerequisites

  • Python 3.10 or higher
  • Faust
  • Avro
  • pydantic
  • faust-avro-model-codegen

Installation

Clone the repository:

git clone https://github.com/bboggs-streambit/faust_avro_codec_codegen.git

Navigate to the project directory:

cd faust_avro_codec_codegen

Install the required dependencies:

poetry install

Configuration

The configuration for the code generator is done via a TOML file. You can either use a pyproject.toml file under the [tool.faust_avro_codec_codegen] section or a standalone faust_avro_code_gen.toml file.

Here is an example configuration:

[tool.faust_avro_codec_codegen]
schema_dir = "schemas"
outfile = "models.py"
faust_app_models_module = "models"
faust_app_module = "app:app"
faust_settings_module = "settings"

Usage

To generate the Faust topics and codecs, run the __main__.py script:

python -m faust_avro_codec_codegen

This will generate the Faust topics and codecs based on the Avro schemas in the directory specified in the configuration file. The generated code will be written to the output file specified in the configuration file.

Contributing

Contributions are welcome. Please submit a pull request.

License

This project is licensed under the MIT License.

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

faust_avro_codec_codegen-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file faust_avro_codec_codegen-0.1.0.tar.gz.

File metadata

  • Download URL: faust_avro_codec_codegen-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.13 Darwin/21.6.0

File hashes

Hashes for faust_avro_codec_codegen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc1e1d01bb95e50241643f0c153f44822c675c5d8d6d2a8bd5777c01cad7ef29
MD5 42f602481c25e6a30ef5979f34f96a4f
BLAKE2b-256 9b444f3acba2eae251d548474d825466e061e3f38b5c1ef1ba62148179d7cfb5

See more details on using hashes here.

File details

Details for the file faust_avro_codec_codegen-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for faust_avro_codec_codegen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d031b184a07c887903e39fe6e2b5a98822ae2b9e59e89416eff677335526e41d
MD5 2c65abeca73acee01cacf7b22e68115d
BLAKE2b-256 c5752caa6cd0410a1b834dde5c87f5eec1be9c52c3a71614e86d6549cc186f12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page