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.
Metadata
Release files for faust-avro-codec-codegen 0.1.0
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_codec_codegen-0.1.0.tar.gz | 4.0 kB | Without provenance | Details for faust_avro_codec_codegen-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faust_avro_codec_codegen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for faust_avro_codec_codegen-0.1.0-py3-none-any.whl |
Total release size: 9.8 kB
Release files / faust_avro_codec_codegen-0.1.0.tar.gz
| Download URL | faust_avro_codec_codegen-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc1e1d01bb95e50241643f0c153f44822c675c5d8d6d2a8bd5777c01cad7ef29
|
|
BLAKE2b-256 checksum How to use checksums |
9b444f3acba2eae251d548474d825466e061e3f38b5c1ef1ba62148179d7cfb5
|
| 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_codec_codegen-0.1.0-py3-none-any.whl
| Download URL | faust_avro_codec_codegen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d031b184a07c887903e39fe6e2b5a98822ae2b9e59e89416eff677335526e41d
|
|
BLAKE2b-256 checksum How to use checksums |
c5752caa6cd0410a1b834dde5c87f5eec1be9c52c3a71614e86d6549cc186f12
|
| 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-codec-codegen 0.1.0
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.