Faust Avro Code Generator
This is a Python library that generates Faust models from Avro schemas.
Installation
You can install the library using pip:
pip install faust_avro_code_gen
Configuration
You can configure the library for your application using either pyproject.toml or a standalone configuration file.
Using pyproject.toml
Add the following section to your pyproject.toml:
[tool.faust_avro_code_gen]
schema_dir = "path/to/your/schemas"
outfile = "path/to/your/models.py"
schema_registry_url = "http://localhost:8081"
faust_app_models_module = "models"
Using a standalone configuration file
Create a faust_avro_code_gen.toml file in your project root with the following content:
schema_dir = "path/to/your/schemas"
outfile = "path/to/your/models.py"
schema_registry_url = "http://localhost:8081"
faust_app_models_module = "models"
Usage
You can use the library from the command line as follows:
python -m faust_avro_code_gen
If you have already registered your schemas with a Schema Registry, you can also verify that the schemas are correctly rendered by running the following command:
python -m faust_avro_code_gen --verify
This will generate Faust models from the Avro schemas in the directory specified in your configuration.
Metadata
Release files for faust-avro-model-codegen 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faust_avro_model_codegen-0.1.8.tar.gz | 7.8 kB | Without provenance | Details for faust_avro_model_codegen-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faust_avro_model_codegen-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for faust_avro_model_codegen-0.1.8-py3-none-any.whl |
Total release size: 18.6 kB
Release files / faust_avro_model_codegen-0.1.8.tar.gz
| Download URL | faust_avro_model_codegen-0.1.8.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
705d8e69bd3f9c98ef1cede5c4a3f9eb15cf7d4d903ed49801c0059aded69949
|
|
BLAKE2b-256 checksum How to use checksums |
dd7ccc27dcb09c4a3630e6a739b01776087497da992bd803ac36afab0ab1d0f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Darwin/21.6.0
|
Release files / faust_avro_model_codegen-0.1.8-py3-none-any.whl
| Download URL | faust_avro_model_codegen-0.1.8-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a5b546970044cf3fc3e3ecc357fc878cc88a3fe85279b98283e5a61ae822202
|
|
BLAKE2b-256 checksum How to use checksums |
4bfd2807f378d191c35830e3222d85c67a5512226f9e94f1de74211ecc0927e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Darwin/21.6.0
|
Security for faust-avro-model-codegen 0.1.8
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.