Skip to content

Commit

Permalink
Update READMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfabbri committed Jun 13, 2024
1 parent 28d3380 commit ac2b5ad
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ Define your protocols for webservices, protobuf, Avro, etc., in one place, and a
- Generate source code for integration with your favorite languages.
- Example python code for processing messages using the schema definitions.

The main readme for the installable python package is [dist-readme.md](dist-readme.md).

## Generated Documenation

Basic markdown documentation is generated by the [generate.py](interface_gen/generate.py) script:
An example of the markdown documentation is generated by the [generate.py](interface_gen/generate.py) script:

[docs/generated](docs/generated/index.md)

Expand Down
41 changes: 38 additions & 3 deletions dist-readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,42 @@ languages and serialization frameworks, including:
- SQL DDL (create table)
- .. and of the other formats supported by [Avrotize](https://github.com/clemensv/avrotize).

For more details see the [code
repostitory](https://github.com/getditto/interface-gen) and its
[README.md](https://github.com/getditto/interface-gen/blob/main/README.md)
## Quick Start

1. Create a virtual environment (optional but recommended), and activate it:

```
python -m venv venv
source venv/bin/activate
```

2. Install the package:

```
python -m pip install interface-gen
```

3. Set up your protocol definitions and output directory.

```
mkdir -p my-protocols/v1.0
mkdir my-output
```

Place your Avro IDL definition files (.avdl) in `my-protocols/v1.0`

4. Run the generator:

```
ifgen -i -p my-protocols -o my-output
```

## More Details

For more details see the source code docs:

- Python [interface\_gen/README.md](interface_gen/README.md)
- Main [README.md](https://github.com/getditto/interface-gen/blob/main/README.md)
- The [code repostitory](https://github.com/getditto/interface-gen)

0 comments on commit ac2b5ad

Please sign in to comment.